Files
isp-admin-service/domain/params.go
T

24 lines
388 B
Go

package domain
import "time"
const (
DefaultOrderField = "created_at"
DefaultOrderType = "DESC"
)
type LimitOffestParams struct {
Limit int `validate:"required"`
Offset int
}
type OrderParams struct {
Field string
Type string `validate:"oneof=asc desc ASC DESC"`
}
type DateFromToParams struct {
From time.Time `validate:"required"`
To time.Time `validate:"required"`
}