调整接口分组
This commit is contained in:
@ -3,7 +3,7 @@ package v1
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/rewardType" method:"get" tags:"RewardType" summary:"(系统、商户、门店后台)获取奖励类型列表"`
|
||||
g.Meta `path:"/rewardType" method:"get" tags:"Backend/RewardType" summary:"(系统、商户、门店后台)获取奖励类型列表"`
|
||||
Name string `json:"name" dc:"名称"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
@ -17,7 +17,7 @@ type ListRes struct {
|
||||
}
|
||||
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/rewardType" method:"post" tags:"RewardType" summary:"(系统、商户、门店后台)创建奖励类型"`
|
||||
g.Meta `path:"/rewardType" method:"post" tags:"Backend/RewardType" summary:"(系统、商户、门店后台)创建奖励类型"`
|
||||
Name string `json:"name" v:"required#名称不能为空" dc:"名称"`
|
||||
StoreId int64 `json:"storeId" dc:"门店ID"`
|
||||
Source int `json:"source" v:"in:1,2#来源只能为1或2" dc:"来源"`
|
||||
@ -29,7 +29,7 @@ type CreateRes struct {
|
||||
}
|
||||
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/rewardType" method:"put" tags:"RewardType" summary:"(系统、商户、门店后台)更新奖励类型"`
|
||||
g.Meta `path:"/rewardType" method:"put" tags:"Backend/RewardType" summary:"(系统、商户、门店后台)更新奖励类型"`
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"Id"`
|
||||
Name string `json:"name" v:"required#名称不能为空" dc:"名称"`
|
||||
StoreId int64 `json:"storeId" dc:"门店ID"`
|
||||
@ -41,7 +41,7 @@ type UpdateRes struct {
|
||||
}
|
||||
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/rewardType/{id}" method:"delete" tags:"RewardType" summary:"(系统、商户、门店后台)删除奖励类型"`
|
||||
g.Meta `path:"/rewardType/{id}" method:"delete" tags:"Backend/RewardType" summary:"(系统、商户、门店后台)删除奖励类型"`
|
||||
Id int64 `in:"path" json:"id" v:"required#ID不能为空" dc:"Id"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user