forked from ebhomengo/niki
1
0
Fork 0
niki/param/sort.go

14 lines
262 B
Go
Raw Permalink Normal View History

package param
type SortDirection string
const (
AscSortDirection = SortDirection("asc")
DescSortDirection = SortDirection("desc")
)
type SortRequest struct {
Field string `query:"sort_field"`
Direction SortDirection `query:"sort_direction"`
}