生成表结构,开始实现接口逻辑

This commit is contained in:
2025-05-29 16:22:48 +08:00
parent a048f45aa3
commit e8a8e36d61
21 changed files with 277 additions and 211 deletions

View File

@ -1 +1,37 @@
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"`
}