修改上下文参数传递,实现门店登录

This commit is contained in:
2025-06-04 17:30:08 +08:00
parent caf3d42fe5
commit 5f55223cd5
19 changed files with 237 additions and 13 deletions

View File

@ -8,4 +8,5 @@ type MerchantAdminInfoReq struct {
g.Meta `path:"/merchant/info" method:"get" tags:"MerchantAdmin" summary:"(商户管理员)获取商户管理员信息"`
}
type MerchantAdminInfoRes struct {
Name string
}

View File

@ -35,3 +35,14 @@ type UpdateReq struct {
type UpdateRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type DeleteReq struct {
g.Meta `path:"/store" method:"delete" tags:"Store" summary:"(商户管理员)删除门店"`
Id int64 `json:"id" v:"required" dc:"门店ID"`
}
type DeleteRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type BatchDeleteReq struct {
g.Meta `path:"/store/batch" method:"delete" tags:"Store" summary:"(商户管理员)批量删除门店"`
Ids []int `json:"ids" v:"required" dc:"门店ID"`
}