调整接口分组
This commit is contained in:
@ -27,14 +27,14 @@ type MerchantLoginRes struct {
|
||||
}
|
||||
|
||||
type MerchantCodeReq struct {
|
||||
g.Meta `path:"/merchant/code" method:"post" tags:"Merchant" summary:"(商户门店后台)商户获取短信验证码"`
|
||||
g.Meta `path:"/merchant/code" method:"post" tags:"Backend/Merchant" summary:"(商户门店后台)商户获取短信验证码"`
|
||||
Phone string `json:"phone" v:"required" dc:"手机号"`
|
||||
}
|
||||
|
||||
type MerchantCodeRes struct{}
|
||||
|
||||
type MerchantRegisterReq struct {
|
||||
g.Meta `path:"/merchant/register" method:"post" tags:"Merchant" summary:"(商户门店后台)商户注册"`
|
||||
g.Meta `path:"/merchant/register" method:"post" tags:"Backend/Merchant" summary:"(商户门店后台)商户注册"`
|
||||
Username string `json:"username" v:"required" dc:"用户名"`
|
||||
Phone string `json:"phone" v:"required|regex:^1[3-9]\\d{9}$" dc:"手机号"`
|
||||
Code string `json:"code" v:"required" dc:"验证码"`
|
||||
@ -49,7 +49,7 @@ type MerchantRegisterRes struct {
|
||||
}
|
||||
|
||||
type StoreLoginReq struct {
|
||||
g.Meta `path:"/store/login" method:"post" tags:"Store" summary:"(商户门店后台)门店登录"`
|
||||
g.Meta `path:"/store/login" method:"post" tags:"Backend/Store" summary:"(商户门店后台)门店登录"`
|
||||
Username string `json:"username" v:"required" dc:"用户名"`
|
||||
Password string `json:"password" v:"required" dc:"密码"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user