Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectIdOmitReq ¶
type ObjectIdOmitReq struct {
ObjectIdReq `json:"id" form:"id" binding:"omitempty,len=24"`
}
type ObjectIdReq ¶
type ObjectIdReq struct {
Id string `json:"id" form:"id" binding:"required,len=24"`
}
type PageReq ¶
type PageReq struct { Page int `json:"page" form:"page,default=1" binding:"required,gte=1"` Size int `json:"size" form:"size,default=20" binding:"required,gte=1,lte=1000"` }
func (PageReq) FindPage ¶
func (req PageReq) FindPage(opt *options.FindOptions) *options.FindOptions
type TimeStringReq ¶
type TimeStringReq struct { // 格式 2006-01-02 15:04:05 StartTime string `json:"startTime" form:"startTime"` EndTime string `json:"endTime" form:"endTime"` }
func (TimeStringReq) FieldMongoBson ¶
func (req TimeStringReq) FieldMongoBson() (bson.M, bool)
func (TimeStringReq) FieldSQLCond ¶
func (req TimeStringReq) FieldSQLCond(field string) []builder.Cond
type TimestampReq ¶
type TimestampReq struct { // Unix 时间戳 StartTimestamp int64 `json:"startTimestamp" form:"startTimestamp,default=0" binding:"omitempty,min=0"` EndTimestamp int64 `json:"endTimestamp" form:"endTimestamp,default=0" binding:"omitempty,gtefield=StartTimestamp"` }
func (TimestampReq) FieldMongoBson ¶
func (req TimestampReq) FieldMongoBson() (bson.M, bool)
func (TimestampReq) FieldSQLCond ¶
func (req TimestampReq) FieldSQLCond(field string) []builder.Cond
type UidOmitReq ¶
type UidOmitReq struct {
UidReq `json:"uid" form:"uid" binding:"omitempty,min=1"`
}
Click to show internal directories.
Click to hide internal directories.