gamelife 自定义客户端集成游戏任务接口
This commit is contained in:
40
internal/model/storeTaskReward.go
Normal file
40
internal/model/storeTaskReward.go
Normal file
@ -0,0 +1,40 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// StoreTaskReward 门店任务奖励关联表
|
||||
type StoreTaskReward struct {
|
||||
g.Meta `orm:"table:store_task_rewards"`
|
||||
Id int64 `json:"id" dc:"任务奖励关联ID" orm:"id,primary"`
|
||||
TaskId int64 `json:"taskId" dc:"门店任务ID" orm:"task_id"`
|
||||
RewardId int64 `json:"rewardId" dc:"奖励ID" orm:"reward_id"`
|
||||
StoreId int64 `json:"storeId" dc:"门店ID" orm:"store_id"`
|
||||
}
|
||||
|
||||
// StoreTaskRewardCreateIn 创建任务奖励关联入参
|
||||
type StoreTaskRewardCreateIn struct {
|
||||
OperatorId int64
|
||||
OperatorRole string
|
||||
TaskId int64 // 门店任务ID
|
||||
RewardId int64 // 奖励ID
|
||||
StoreId int64 // 门店ID
|
||||
}
|
||||
|
||||
// StoreTaskRewardCreateOut 创建任务奖励关联出参
|
||||
type StoreTaskRewardCreateOut struct {
|
||||
Id int64 // 创建成功后返回的ID
|
||||
}
|
||||
|
||||
// StoreTaskRewardDeleteIn 删除任务奖励关联入参
|
||||
type StoreTaskRewardDeleteIn struct {
|
||||
Id int64 // 任务奖励关联ID
|
||||
OperatorId int64
|
||||
OperatorRole string
|
||||
}
|
||||
|
||||
// StoreTaskRewardDeleteOut 删除任务奖励关联出参
|
||||
type StoreTaskRewardDeleteOut struct {
|
||||
Success bool // 是否删除成功
|
||||
}
|
||||
Reference in New Issue
Block a user