调整已登录任务列表接口

This commit is contained in:
chy
2025-06-27 15:00:59 +08:00
parent ae19e9917e
commit ba28d0621a
6 changed files with 34 additions and 6 deletions

View File

@ -3,7 +3,7 @@ package v1
import "github.com/gogf/gf/v2/frame/g"
type AdminLoginReq struct {
g.Meta `path:"/admin/login" method:"post" tags:"Admin" summary:"(系统后台)管理员登录"`
g.Meta `path:"/admin/login" method:"post" tags:"Backend/Admin" summary:"(系统后台)管理员登录"`
Username string `json:"username" v:"required" dc:"用户名"`
Password string `json:"password" v:"required" dc:"密码"`
}
@ -14,7 +14,7 @@ type AdminLoginRes struct {
}
type MerchantLoginReq struct {
g.Meta `path:"/merchant/login" method:"post" tags:"Merchant" summary:"(商户门店后台)商户登录"`
g.Meta `path:"/merchant/login" method:"post" tags:"Backend/Merchant" summary:"(商户门店后台)商户登录"`
Username string `json:"username" dc:"用户名"`
Phone string `json:"phone" v:"regex:^1[3-9]\\d{9}$" dc:"手机号"`
Code string `json:"code" dc:"验证码"`