新增游戏绑定方式,修改任务排行
This commit is contained in:
@ -20,4 +20,5 @@ type Games struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
BoundType interface{} // 1:qq绑定 2:wx绑定 3:all
|
||||
}
|
||||
|
||||
@ -23,4 +23,6 @@ type Rewards struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
TotalNum interface{} // 奖励总数量,NULL表示不限量
|
||||
UsedNum interface{} // 已使用数量
|
||||
}
|
||||
|
||||
@ -16,8 +16,6 @@ type StoreTaskRewards struct {
|
||||
TaskId interface{} // 门店任务ID
|
||||
RewardId interface{} // 奖励ID
|
||||
StoreId interface{} // 门店ID
|
||||
Quantity interface{} // 奖励数量(如发放多少个奖励)
|
||||
Status interface{} // 状态:1=正常,0=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
|
||||
@ -10,12 +10,13 @@ import (
|
||||
|
||||
// Games is the golang structure for table games.
|
||||
type Games struct {
|
||||
Id int64 `json:"id" orm:"id" description:""` //
|
||||
GameId int64 `json:"gameId" orm:"game_id" description:"腾讯游戏 id"` // 腾讯游戏 id
|
||||
GameName string `json:"gameName" orm:"game_name" description:"游戏名称"` // 游戏名称
|
||||
GameCode string `json:"gameCode" orm:"game_code" description:"游戏代号"` // 游戏代号
|
||||
Avatar string `json:"avatar" orm:"avatar" description:"图标"` // 图标
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"` // 删除时间
|
||||
Id int64 `json:"id" orm:"id" description:""` //
|
||||
GameId int64 `json:"gameId" orm:"game_id" description:"腾讯游戏 id"` // 腾讯游戏 id
|
||||
GameName string `json:"gameName" orm:"game_name" description:"游戏名称"` // 游戏名称
|
||||
GameCode string `json:"gameCode" orm:"game_code" description:"游戏代号"` // 游戏代号
|
||||
Avatar string `json:"avatar" orm:"avatar" description:"图标"` // 图标
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"` // 删除时间
|
||||
BoundType int `json:"boundType" orm:"bound_type" description:"1:qq绑定 2:wx绑定 3:all"` // 1:qq绑定 2:wx绑定 3:all
|
||||
}
|
||||
|
||||
@ -21,4 +21,6 @@ type Rewards struct {
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
TotalNum uint64 `json:"totalNum" orm:"total_num" description:"奖励总数量,NULL表示不限量"` // 奖励总数量,NULL表示不限量
|
||||
UsedNum uint64 `json:"usedNum" orm:"used_num" description:"已使用数量"` // 已使用数量
|
||||
}
|
||||
|
||||
@ -10,13 +10,11 @@ import (
|
||||
|
||||
// StoreTaskRewards is the golang structure for table store_task_rewards.
|
||||
type StoreTaskRewards struct {
|
||||
Id int64 `json:"id" orm:"id" description:"任务奖励关联ID"` // 任务奖励关联ID
|
||||
TaskId int64 `json:"taskId" orm:"task_id" description:"门店任务ID"` // 门店任务ID
|
||||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID"` // 奖励ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"门店ID"` // 门店ID
|
||||
Quantity int `json:"quantity" orm:"quantity" description:"奖励数量(如发放多少个奖励)"` // 奖励数量(如发放多少个奖励)
|
||||
Status int `json:"status" orm:"status" description:"状态:1=正常,0=禁用"` // 状态:1=正常,0=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
Id int64 `json:"id" orm:"id" description:"任务奖励关联ID"` // 任务奖励关联ID
|
||||
TaskId int64 `json:"taskId" orm:"task_id" description:"门店任务ID"` // 门店任务ID
|
||||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID"` // 奖励ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"门店ID"` // 门店ID
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
package model
|
||||
|
||||
type Game struct {
|
||||
GameId int64 `json:"gameId" orm:"game_id"` // 腾讯游戏 id
|
||||
GameName string `json:"gameName" orm:"game_name"` // 游戏名称
|
||||
GameCode string `json:"gameCode" orm:"game_code"` // 游戏代号
|
||||
Avatar string `json:"avatar" orm:"avatar"` // 图标
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
GameId int64 `json:"gameId" orm:"game_id"` // 腾讯游戏 id
|
||||
GameName string `json:"gameName" orm:"game_name"` // 游戏名称
|
||||
GameCode string `json:"gameCode" orm:"game_code"` // 游戏代号
|
||||
Avatar string `json:"avatar" orm:"avatar"` // 图标
|
||||
Id int64 `json:"id" orm:"id"`
|
||||
BoundType int64 `json:"boundType" orm:"bound_type"` // 绑定类型 1:qq 2:wx 3: all
|
||||
}
|
||||
|
||||
// GameListIn 游戏列表入参
|
||||
@ -22,10 +23,11 @@ type GameListOut struct {
|
||||
|
||||
// AddGameIn 新增游戏入参
|
||||
type AddGameIn struct {
|
||||
GameName string `json:"gameName"`
|
||||
GameCode string `json:"gameCode"`
|
||||
Avatar string `json:"avatar"`
|
||||
GameId int64 `json:"gameId"`
|
||||
GameName string `json:"gameName"`
|
||||
GameCode string `json:"gameCode"`
|
||||
Avatar string `json:"avatar"`
|
||||
GameId int64 `json:"gameId"`
|
||||
BoundType int64 `json:"boundType"`
|
||||
}
|
||||
|
||||
// AddGameOut 新增游戏出参
|
||||
@ -35,11 +37,12 @@ type AddGameOut struct {
|
||||
|
||||
// UpdateGameIn 更新游戏入参
|
||||
type UpdateGameIn struct {
|
||||
GameName string `json:"gameName"`
|
||||
GameCode string `json:"gameCode"`
|
||||
Avatar string `json:"avatar"`
|
||||
GameId int64 `json:"gameId"`
|
||||
Id int64 `json:"id"`
|
||||
GameName string `json:"gameName"`
|
||||
GameCode string `json:"gameCode"`
|
||||
Avatar string `json:"avatar"`
|
||||
GameId int64 `json:"gameId"`
|
||||
Id int64 `json:"id"`
|
||||
BoundType int64 `json:"boundType"`
|
||||
}
|
||||
|
||||
// UpdateGameOut 更新游戏出参
|
||||
|
||||
Reference in New Issue
Block a user