package v1 import "github.com/gogf/gf/v2/frame/g" type InfoReq struct { g.Meta `path:"/store/admin/info" method:"get" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)获取门店管理员信息"` } type InfoRes struct { Id int64 `json:"id"` StoreId int64 `json:"storeId"` Username string `json:"username"` Realname string `json:"realname"` IsPrimary bool `json:"isPrimary"` } type ListReq struct { 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不能为空"` } type ListRes struct { List interface{} `json:"list"` Total int `json:"total"` } type CreateReq struct { 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#用户名不能为空"` Password string `json:"password" v:"required#密码不能为空"` Password2 string `json:"password2" v:"required#确认密码不能为空|same:password"` Phone string `json:"phone" v:"required#手机号不能为空"` StoreRoleId int `json:"storeRoleId" v:"required#角色ID不能为空"` } type CreateRes struct { Id int64 `json:"id"` } type UpdateReq struct { 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不能为空"` Phone string `json:"phone" v:"required#手机号不能为空"` } type UpdateRes struct { Success bool `json:"success"` } type EditPasswordReq struct { 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#新密码不能为空"` } type EditPasswordRes struct { Success bool `json:"success"` } type DeleteReq struct { g.Meta `path:"/store/admin/{id}" method:"delete" tags:"Backend/StoreAdmin" summary:"(系统、商户门店后台)删除门店管理员"` Id int64 `in:"path" json:"id" v:"required#门店管理员ID不能为空"` } type DeleteRes struct { Success bool `json:"success"` }