MSP-7036 add default sorting
This commit is contained in:
1 parent
4da0d51b5b
commit
71e0768231
4 files changed
+29
-12
No files matched your search
@@ -2,6 +2,11 @@ package domain
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
DefaultOrderField = "created_at"
|
||||
DefaultOrderType = "DESC"
|
||||
)
|
||||
|
||||
type LimitOffestParams struct {
|
||||
Limit int `validate:"required"`
|
||||
Offset int
|
||||
|
||||
Reference in new issue
Block a user