初始
This commit is contained in:
25
api/v1/common/req.go
Normal file
25
api/v1/common/req.go
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* @desc:公共接口相关
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu<yxh669@qq.com>
|
||||
* @Date: 2022/3/30 9:28
|
||||
*/
|
||||
|
||||
package common
|
||||
|
||||
// PageReq 公共请求参数
|
||||
type PageReq struct {
|
||||
DateRange []string `p:"dateRange"` //日期范围
|
||||
PageNum int `p:"pageNum"` //当前页码
|
||||
PageSize int `p:"pageSize"` //每页数
|
||||
OrderBy string //排序方式
|
||||
NotInPlan bool `p:"notInPlan"` //是否过滤周计划中的id
|
||||
}
|
||||
|
||||
type Author struct {
|
||||
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
|
||||
}
|
||||
|
||||
type Paging struct {
|
||||
IsPaging string `json:"isPaging" dc:"是否开启分页功能 YES开启 NO不开启(空字符串也不开启分页;默认)"` //是否开启分页功能 YES开启 NO不开启(空字符串也不开启分页;默认)
|
||||
}
|
Reference in New Issue
Block a user