实现角色接口增删改查
This commit is contained in:
@ -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:"Admin" summary:"(系统管理员)管理员登录"`
|
||||
Username string `json:"username" v:"required" dc:"用户名"`
|
||||
Password string `json:"password" v:"required" dc:"密码"`
|
||||
}
|
||||
@ -13,7 +13,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:"Merchant" summary:"(商户管理员)商户登录"`
|
||||
Usernaem string `json:"username" v:"required" dc:"用户名"`
|
||||
Password string `json:"password" v:"required" dc:"密码"`
|
||||
}
|
||||
@ -27,7 +27,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:"Store" summary:"(门店管理员)门店登录"`
|
||||
Username string `json:"username" v:"required" dc:"用户名"`
|
||||
Password string `json:"password" v:"required" dc:"密码"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user