调整接口分组

This commit is contained in:
chy
2025-06-27 15:35:56 +08:00
parent ba28d0621a
commit 854d6c2120
18 changed files with 83 additions and 83 deletions

View File

@ -6,7 +6,7 @@ import (
)
type ListReq struct {
g.Meta `path:"/reward" method:"get" tags:"Reward" summary:"(系统、商户、门店后台)获取奖励列表"`
g.Meta `path:"/reward" method:"get" tags:"Backend/Reward" summary:"(系统、商户、门店后台)获取奖励列表"`
Name string `json:"name" dc:"名称"`
Page int `json:"page" dc:"页数"`
Size int `json:"size" dc:"每页数量"`
@ -21,7 +21,7 @@ type ListRes struct {
}
type CreateReq struct {
g.Meta `path:"/reward" method:"post" tags:"Reward" summary:"(系统、商户、门店后台)创建奖励"`
g.Meta `path:"/reward" method:"post" tags:"Backend/Reward" summary:"(系统、商户、门店后台)创建奖励"`
StoreId int64 `json:"storeId" dc:"门店ID"`
Name string `json:"name" v:"required#名称不能为空" dc:"名称"`
RewardTypeId int64 `json:"rewardTypeId" v:"required#奖励类型ID不能为空" dc:"奖励类型ID"`
@ -47,7 +47,7 @@ type CreateRes struct {
}
type UpdateReq struct {
g.Meta `path:"/reward" method:"put" tags:"Reward" summary:"(系统、商户、门店后台)更新奖励"`
g.Meta `path:"/reward" method:"put" tags:"Backend/Reward" summary:"(系统、商户、门店后台)更新奖励"`
Id int64 `json:"id" v:"required#id不能为空" dc:"ID"`
Name string `json:"name" dc:"名称"`
RewardType int `json:"rewardType" dc:"奖励类型"`
@ -73,7 +73,7 @@ type UpdateRes struct {
}
type DeleteReq struct {
g.Meta `path:"/reward/{id}" method:"delete" tags:"Reward" summary:"(系统、商户、门店后台)删除奖励"`
g.Meta `path:"/reward/{id}" method:"delete" tags:"Backend/Reward" summary:"(系统、商户、门店后台)删除奖励"`
Id int64 `in:"path" json:"id" v:"required#ID不能为空" dc:"ID"`
Source int `json:"source" v:"required#来源不能为空" dc:"来源" d:"1"`
}
@ -211,7 +211,7 @@ type CallbackRes struct {
}
type GetLiftReq struct {
g.Meta `path:"/reward/getLift" method:"post" tags:"Reward" summary:"(PC)奖励领取"`
g.Meta `path:"/reward/getLift" method:"post" tags:"PC/Reward" summary:"(PC)奖励领取"`
RewradType int `json:"rewardType" v:"required#奖励类型不能为空" dc:"奖励类型"`
RewradId int `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励id"`
PopenId string `json:"popenid" v:"required#popenId不能为空" dc:"popenId不能为空"`
@ -231,7 +231,7 @@ type GetLiftRes struct {
}
type GetGoodsListReq struct {
g.Meta `path:"/reward/goods" method:"get" tags:"Reward" summary:"(tencent)获取物品列表"`
g.Meta `path:"/reward/goods" method:"get" tags:"PC/Reward" summary:"(PC)获取物品列表"`
Appfilter string `json:"appfilter" dc:"按照gid过滤游戏"`
BigTime int64 `json:"bigTime" v:"required#大时间不能为空" dc:"大时间:如果要控制时间范围,大的时间传这里"`
Pageidx string `json:"pageidx" dc:"分页索引"`
@ -249,7 +249,7 @@ type GetGoodsListRes struct {
}
type GetGoodsReq struct {
g.Meta `path:"/reward/getGoods" method:"post" tags:"Reward" summary:"物品兑换"`
g.Meta `path:"/reward/getGoods" method:"post" tags:"PC/Reward" summary:"(PC)物品兑换"`
Water Water `json:"water" v:"required#物品流水从背包列表获取的water透传回来water类型参考GetGift接口的water结构" dc:"礼包列表"`
AreaId int64 `json:"areaId" dc:"大区Id"`
GameId int64 `json:"gid" v:"required#游戏id不能为空" dc:"游戏Id"`
@ -260,7 +260,7 @@ type GetGoodsRes struct {
}
type GetGoodsDetailsReq struct {
g.Meta `path:"/reward/goodsDetails" method:"post" tags:"Reward" summary:"(PC)物品详情"`
g.Meta `path:"/reward/goodsDetails" method:"post" tags:"PC/Reward" summary:"(PC)物品详情"`
Winningtime int64 `json:"winningtime" dc:"用户领取礼包时间"`
Orderid string `json:"orderid" v:"required#流水订单id不能为空" dc:"用户领取流水订单id"`
IsActinfo int64 `json:"IsActinfo" dc:"是否需要活动相关信息 0默认需要 1不需要"`
@ -274,7 +274,7 @@ type GetGoodsDetailsRes struct {
}
type OperateTaskRewardReq struct {
g.Meta `path:"/reward/taskReward" method:"post" tags:"Reward" summary:"添加任务奖励"`
g.Meta `path:"/reward/taskReward" method:"post" tags:"Backend/Reward" summary:"(系统管理员、商户管理员、门店管理员)添加任务奖励"`
Type int `json:"type" v:"required#操作类型只能为1或2,1是添加、2是删除" dc:"操作类型"`
TaskId int64 `json:"taskId" v:"required#任务id不能为空" dc:"任务Id"`
RewardId int64 `json:"rewardId" v:"required#奖励id不能为空" dc:"奖励Id"`
@ -284,7 +284,7 @@ type OperateTaskRewardRes struct {
}
type GetUserRewardsCanClaimListReq struct {
g.Meta `path:"/reward/canClaim" method:"get" tags:"Reward" summary:"(PC)获取用户可领取的奖励列表"`
g.Meta `path:"/reward/canClaim" method:"get" tags:"PC/Reward" summary:"(PC)获取用户可领取的奖励列表"`
StoreId int64 `json:"storeId" dc:"门店id"`
NetbarAccount string `json:"netbarAccount" dc:"网吧账号"`
TaskId string `json:"taskId" dc:"任务id" v:"required#任务id不能为空"`