38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
package v1
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
type AdminLoginReq struct {
|
|
g.Meta `path:"/admin/login" method:"post" tags:"Admin" summary:"(系统管理员)管理员登录"`
|
|
Username string `json:"username" v:"required" dc:"用户名"`
|
|
Password string `json:"password" v:"required" dc:"密码"`
|
|
}
|
|
type AdminLoginRes struct {
|
|
g.Meta `mime:"application/json"`
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type MerchantLoginReq struct {
|
|
g.Meta `path:"/merchant/login" method:"post" tags:"Merchant" summary:"(商户管理员)商户登录"`
|
|
Usernaem string `json:"username" v:"required" dc:"用户名"`
|
|
Password string `json:"password" v:"required" dc:"密码"`
|
|
}
|
|
type MerchantLoginRes struct {
|
|
g.Meta `mime:"application/json"`
|
|
Token string `json:"token"`
|
|
}
|
|
type MerchantRegisterReq struct {
|
|
}
|
|
type MerchantRegisterRes struct {
|
|
}
|
|
|
|
type StoreLoginReq struct {
|
|
g.Meta `path:"/store/login" method:"post" tags:"Store" summary:"(门店管理员)门店登录"`
|
|
Username string `json:"username" v:"required" dc:"用户名"`
|
|
Password string `json:"password" v:"required" dc:"密码"`
|
|
}
|
|
type StoreLoginRes struct {
|
|
g.Meta `mime:"application/json"`
|
|
Token string `json:"token"`
|
|
}
|