You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
901 B
28 lines
901 B
2 years ago
|
package models
|
||
|
|
||
|
var OrderText = map[string]string{
|
||
|
"ascend": "ASC",
|
||
|
"desend": "DESC",
|
||
|
}
|
||
|
|
||
|
type ContentsQueryFilters struct {
|
||
|
IDs []uint `json:"ids" form:"ids"`
|
||
|
CategoryID uint `json:"categoryId" form:"categoryId"`
|
||
|
Status []uint `json:"status" form:"status"`
|
||
|
Promotes []int `json:"promotes" form:"promotes"`
|
||
|
}
|
||
|
|
||
|
type ContentsQuery struct {
|
||
|
Pagination Pagination `json:"pagination" form:"pagination"`
|
||
|
Sorter Sorter `json:"sorter" form:"sorter"`
|
||
|
Filters ContentsQueryFilters `json:"filters" form:"filters"`
|
||
|
WithCategory bool `json:"withCategory" form:"withCategory"'`
|
||
|
WithUser bool `json:"withUser" form:"withUser"'`
|
||
|
}
|
||
|
|
||
|
type ContentQuery struct {
|
||
|
ID uint `json:"id" form:"id"`
|
||
|
WithCategory bool `json:"withCategory" form:"withCategory"'`
|
||
|
WithUser bool `json:"withUser" form:"withUser"'`
|
||
|
}
|