You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* @desc:公共接口相关
|
|
|
|
*
|
|
|
|
* <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 //排序方式
|
|
|
|
}
|
|
|
|
|
|
|
|
// PageReq 公共请求参数
|
|
|
|
type Page64Req struct {
|
|
|
|
DateRange []string `p:"dateRange"` //日期范围
|
|
|
|
PageNum int64 `p:"pageNum"` //当前页码
|
|
|
|
PageSize int64 `p:"pageSize"` //每页数
|
|
|
|
OrderBy string //排序方式
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListRes 列表公共返回
|
|
|
|
type ListRes struct {
|
|
|
|
CurrentPage int `json:"currentPage"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ListRes 列表公共返回
|
|
|
|
type List64Res struct {
|
|
|
|
CurrentPage int `json:"currentPage"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
type Author struct {
|
|
|
|
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
|
|
|
|
}
|