1
This commit is contained in:
19
api/v1/common/captcha.go
Normal file
19
api/v1/common/captcha.go
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @desc:验证码参数
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu
|
||||
* @Date: 2022/3/2 17:47
|
||||
*/
|
||||
|
||||
package common
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type CaptchaReq struct {
|
||||
g.Meta `path:"/get" tags:"验证码" method:"get" summary:"获取验证码"`
|
||||
}
|
||||
type CaptchaRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
Key string `json:"key"`
|
||||
Img string `json:"img"`
|
||||
}
|
||||
19
api/v1/common/req.go
Normal file
19
api/v1/common/req.go
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @desc:公共接口相关
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu<yxh669@qq.com>
|
||||
* @Date: 2022/3/30 9:28
|
||||
*/
|
||||
|
||||
package common
|
||||
|
||||
import "github.com/tiger1103/gfast/v3/internal/app/common/model"
|
||||
|
||||
// PageReq 公共请求参数
|
||||
type PageReq struct {
|
||||
model.PageReq
|
||||
}
|
||||
|
||||
type Author struct {
|
||||
Authorization string `p:"Authorization" in:"header" dc:"Bearer {{token}}"`
|
||||
}
|
||||
21
api/v1/common/res.go
Normal file
21
api/v1/common/res.go
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @desc:返回响应公共参数
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu<yxh669@qq.com>
|
||||
* @Date: 2022/10/27 16:30
|
||||
*/
|
||||
|
||||
package common
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// EmptyRes 不响应任何数据
|
||||
type EmptyRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
}
|
||||
|
||||
// ListRes 列表公共返回
|
||||
type ListRes struct {
|
||||
CurrentPage int `json:"currentPage"`
|
||||
Total interface{} `json:"total"`
|
||||
}
|
||||
Reference in New Issue
Block a user