update version
This commit is contained in:
parent
43af89bf21
commit
615aa4e963
|
@ -0,0 +1,7 @@
|
||||||
|
package notification
|
||||||
|
|
||||||
|
const (
|
||||||
|
SortOrderDesc = "-order"
|
||||||
|
SortOrderAsc = "order"
|
||||||
|
SortDefault = "-lastPushAt"
|
||||||
|
)
|
2
model.go
2
model.go
|
@ -18,6 +18,7 @@ type PushRequest struct {
|
||||||
Category string `json:"category,omitempty"`
|
Category string `json:"category,omitempty"`
|
||||||
Sound *Sound `json:"sound,omitempty"`
|
Sound *Sound `json:"sound,omitempty"`
|
||||||
Link string `json:"link"` // for webpush
|
Link string `json:"link"` // for webpush
|
||||||
|
Order int `json:"order"` // for sort
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sound ...
|
// Sound ...
|
||||||
|
@ -45,6 +46,7 @@ type Query struct {
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Page int64 `json:"page,omitempty"`
|
Page int64 `json:"page,omitempty"`
|
||||||
Limit int64 `json:"limit,omitempty"`
|
Limit int64 `json:"limit,omitempty"`
|
||||||
|
Sort string `json:"sort,omitempty"` // SortDefault, SortOrderDesc, SortOrderAsc
|
||||||
}
|
}
|
||||||
|
|
||||||
type query struct {
|
type query struct {
|
||||||
|
|
Loading…
Reference in New Issue