23 lines
853 B
Go
23 lines
853 B
Go
package v1
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
type CreateReq struct {
|
|
g.Meta `path:"/storeTaskReward" method:"post" tags:"StoreTaskReward" summary:"(商户、门店后台)创建门店任务奖励"`
|
|
TaskId string `json:"taskId" v:"required#任务 Id 不能为空" dc:"任务 Id"`
|
|
RewardId int64 `json:"rewardId" v:"required#奖励ID不能为空" dc:"奖励ID"`
|
|
StoreId int64 `json:"storeId" v:"required#门店ID不能为空" dc:"门店ID"`
|
|
}
|
|
|
|
type CreateRes struct {
|
|
Id int64 `json:"id"`
|
|
}
|
|
|
|
type DeleteReq struct {
|
|
g.Meta `path:"/storeTaskReward/{id}" method:"delete" tags:"StoreTaskReward" summary:"(商户、门店后台)删除门店任务奖励"`
|
|
Id int64 `in:"path" json:"id" v:"required#门店任务奖励ID不能为空" dc:"门店任务奖励ID"`
|
|
}
|
|
type DeleteRes struct {
|
|
Success bool `json:"success" dc:"是否成功"`
|
|
}
|