实现任务绑定奖励的接口
This commit is contained in:
16
internal/model/do/task_rewards.go
Normal file
16
internal/model/do/task_rewards.go
Normal file
@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// TaskRewards is the golang structure of table task_rewards for DAO operations like Where/Data.
|
||||
type TaskRewards struct {
|
||||
g.Meta `orm:"table:task_rewards, do:true"`
|
||||
TaskId interface{} // 任务ID
|
||||
RewardId interface{} // 奖励ID
|
||||
}
|
||||
11
internal/model/entity/task_rewards.go
Normal file
11
internal/model/entity/task_rewards.go
Normal file
@ -0,0 +1,11 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
// TaskRewards is the golang structure for table task_rewards.
|
||||
type TaskRewards struct {
|
||||
TaskId int64 `json:"taskId" orm:"task_id" description:"任务ID"` // 任务ID
|
||||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID"` // 奖励ID
|
||||
}
|
||||
Reference in New Issue
Block a user