实现奖励类型的增删改查
This commit is contained in:
24
internal/model/do/reward_types.go
Normal file
24
internal/model/do/reward_types.go
Normal file
@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// RewardTypes is the golang structure of table reward_types for DAO operations like Where/Data.
|
||||
type RewardTypes struct {
|
||||
g.Meta `orm:"table:reward_types, do:true"`
|
||||
Id interface{} // 奖励类型ID
|
||||
Name interface{} // 奖励类型名称(如积分、优惠券)
|
||||
Description interface{} // 奖励类型描述
|
||||
Source interface{} // 来源:1=系统默认,2=门店自定义
|
||||
StoreId interface{} // 门店ID,系统默认类型为NULL
|
||||
Status interface{} // 状态:1=正常,0=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
26
internal/model/do/rewards.go
Normal file
26
internal/model/do/rewards.go
Normal file
@ -0,0 +1,26 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Rewards is the golang structure of table rewards for DAO operations like Where/Data.
|
||||
type Rewards struct {
|
||||
g.Meta `orm:"table:rewards, do:true"`
|
||||
Id interface{} // 奖励ID
|
||||
RewardTypeId interface{} // 奖励类型ID
|
||||
Name interface{} // 奖励名称(如100积分、5元优惠券)
|
||||
Description interface{} // 奖励描述
|
||||
Source interface{} // 来源:1=系统内置,2=门店自定义
|
||||
StoreId interface{} // 门店ID,系统内置奖励为NULL
|
||||
Value interface{} // 奖励值(如积分数额、优惠金额)
|
||||
Status interface{} // 状态:1=正常,0=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
24
internal/model/do/store_task_rewards.go
Normal file
24
internal/model/do/store_task_rewards.go
Normal file
@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// StoreTaskRewards is the golang structure of table store_task_rewards for DAO operations like Where/Data.
|
||||
type StoreTaskRewards struct {
|
||||
g.Meta `orm:"table:store_task_rewards, do:true"`
|
||||
Id interface{} // 任务奖励关联ID
|
||||
TaskId interface{} // 门店任务ID
|
||||
RewardId interface{} // 奖励ID
|
||||
StoreId interface{} // 门店ID
|
||||
Quantity interface{} // 奖励数量(如发放多少个奖励)
|
||||
Status interface{} // 状态:1=正常,0=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
Reference in New Issue
Block a user