调整接口分组
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/merchant" method:"get" tags:"Merchant" summary:"(系统管理员)获取商户列表"`
|
||||
g.Meta `path:"/merchant" method:"get" tags:"Backend/Merchant" summary:"(系统管理员)获取商户列表"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
Status int `json:"status" dc:"状态:1=启用,2=禁用"`
|
||||
@ -18,21 +18,21 @@ type ListRes struct {
|
||||
}
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/merchant" method:"post" tags:"Merchant" summary:"(系统管理员)创建商户"`
|
||||
g.Meta `path:"/merchant" method:"post" tags:"Backend/Merchant" summary:"(系统管理员)创建商户"`
|
||||
}
|
||||
type CreateRes struct {
|
||||
Id int64 `json:"id" dc:"商户ID"`
|
||||
}
|
||||
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/merchant" method:"put" tags:"Merchant" summary:"(系统管理员、商户管理员)更新商户"`
|
||||
g.Meta `path:"/merchant" method:"put" tags:"Backend/Merchant" summary:"(系统管理员、商户管理员)更新商户"`
|
||||
}
|
||||
type UpdateRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
|
||||
type AuditReq struct {
|
||||
g.Meta `path:"/merchant/audit" method:"post" tags:"Merchant" summary:"(系统管理员)商户审核"`
|
||||
g.Meta `path:"/merchant/audit" method:"post" tags:"Backend/Merchant" summary:"(系统管理员)商户审核"`
|
||||
Id int64 `json:"id" v:"required" dc:"商户ID"`
|
||||
AuditStatus int `json:"auditStatus" v:"required" dc:"审核状态:2=审核通过,3=审核拒绝" `
|
||||
AuditRemark string `json:"auditRemark" dc:"审核备注"`
|
||||
|
||||
Reference in New Issue
Block a user