调整接口分组
This commit is contained in:
@ -3,7 +3,7 @@ package v1
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type InfoReq struct {
|
||||
g.Meta `path:"/store/admin/info" method:"get" tags:"StoreAdmin" summary:"(系统、商户门店后台)获取门店管理员信息"`
|
||||
g.Meta `path:"/store/admin/info" method:"get" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)获取门店管理员信息"`
|
||||
}
|
||||
|
||||
type InfoRes struct {
|
||||
@ -11,7 +11,7 @@ type InfoRes struct {
|
||||
Username string `json:"username"`
|
||||
}
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/store/admin" method:"get" tags:"StoreAdmin" summary:"(系统、商户门店后台)门店管理员列表"`
|
||||
g.Meta `path:"/store/admin" method:"get" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)门店管理员列表"`
|
||||
Page int `json:"page" v:"required#页数不能为空"`
|
||||
Size int `json:"size" v:"required#页大小不能为空"`
|
||||
StoreId int64 `json:"storeId" v:"required#门店ID不能为空"`
|
||||
@ -22,7 +22,7 @@ type ListRes struct {
|
||||
}
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/store/admin" method:"post" tags:"StoreAdmin" summary:"(系统、商户门店后台)创建门店管理员"`
|
||||
g.Meta `path:"/store/admin" method:"post" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)创建门店管理员"`
|
||||
Realname string `json:"realname" v:"required#真实姓名不能为空"`
|
||||
StoreId int64 `json:"storeId" v:"required#门店ID不能为空"`
|
||||
Username string `json:"username" v:"required#用户名不能为空"`
|
||||
@ -36,7 +36,7 @@ type CreateRes struct {
|
||||
}
|
||||
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/store/admin" method:"put" tags:"StoreAdmin" summary:"(系统、商户门店后台)更新门店管理员"`
|
||||
g.Meta `path:"/store/admin" method:"put" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)更新门店管理员"`
|
||||
Id int64 `json:"id" v:"required#门店管理员ID不能为空"`
|
||||
Realname string `json:"realname" v:"required#真实姓名不能为空"`
|
||||
StoreRoleId int `json:"storeRoleId" v:"required#角色ID不能为空"`
|
||||
@ -46,7 +46,7 @@ type UpdateRes struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
type EditPasswordReq struct {
|
||||
g.Meta `path:"/store/admin/password" method:"post" tags:"StoreAdmin" summary:"(系统、商户门店后台)修改门店管理员密码"`
|
||||
g.Meta `path:"/store/admin/password" method:"post" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)修改门店管理员密码"`
|
||||
Id int64 `json:"id" v:"required#门店管理员ID不能为空"`
|
||||
OldPass string `json:"oldPass" v:"required#旧密码不能为空"`
|
||||
NewPass string `json:"newPass" v:"required#新密码不能为空"`
|
||||
@ -55,7 +55,7 @@ type EditPasswordRes struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/store/admin/{id}" method:"delete" tags:"StoreAdmin" summary:"(系统、商户门店后台)删除门店管理员"`
|
||||
g.Meta `path:"/store/admin/{id}" method:"delete" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)删除门店管理员"`
|
||||
Id int64 `in:"path" json:"id" v:"required#门店管理员ID不能为空"`
|
||||
}
|
||||
type DeleteRes struct {
|
||||
|
||||
Reference in New Issue
Block a user