Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DayStatRequest ¶
type DayStatRequest struct {
SearchRequest
StartDay string `form:"startDay" format:"2006-01-02"`
EndDay string `form:"endDay" format:"2006-01-02"`
}
DayStatRequest 通用日统计请求。都为空时,默认获取当周数据
func (*DayStatRequest) StatAtRange ¶
func (in *DayStatRequest) StatAtRange() ([]time.Time, error)
func (*DayStatRequest) StatAtRangeOrLastWeek ¶
func (in *DayStatRequest) StatAtRangeOrLastWeek() []time.Time
func (*DayStatRequest) StatDayRange ¶
func (in *DayStatRequest) StatDayRange() ([]uint, error)
func (*DayStatRequest) StatDayRangeOrLastWeek ¶
func (in *DayStatRequest) StatDayRangeOrLastWeek() []uint
type ResponseModel ¶
type ResponseModel struct {
ID uint `json:"id" copy:"ID"`
CreatedTime string `json:"createdTime" copy:"createdAt"`
UpdatedTime string `json:"updatedTime" copy:"updatedAt"`
}
ResponseModel 通用响应基础模型
type SearchRequest ¶
type SearchRequest struct {
// 数据开始位置
Start int `form:"start"`
// 返回数据条数
Limit int `form:"limit"`
// 排序规则:sort=otc_type,-created_at,*custom
// 以符号开头,可选符号:(+或空 正序)(- 倒序)(* 自定义复杂排序标识关键词)
Sort string `form:"sort"`
}
SearchRequest 通用搜索请求
Click to show internal directories.
Click to hide internal directories.