Files
arenax-server/internal/model/rewardType.go
2025-07-07 10:07:57 +08:00

78 lines
2.2 KiB
Go

package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RewardType 奖励类型表
type RewardType struct {
Id int64 `json:"id" orm:"id" description:"奖励类型ID"` // 奖励类型ID
Name string `json:"name" orm:"name" description:"类型名称"` // 类型名称
Code string `json:"code" orm:"code" description:"唯一编码"` // 唯一编码
IconUrl string `json:"iconUrl" orm:"icon_url" 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:"软删除时间"` // 软删除时间
TencentTypeId int `json:"tencentTypeId" orm:"tencent_type_id" description:"腾讯奖励类型ID"`
}
// RewardTypeCreateIn 创建奖励类型入参
type RewardTypeCreateIn struct {
OperatorId int64
OperatorRole string
Name string
TencentTypeId int
Source int
StoreId int64
}
// RewardTypeCreateOut 创建奖励类型出参
type RewardTypeCreateOut struct {
Id int64
}
// RewardTypeUpdateIn 更新奖励类型入参
type RewardTypeUpdateIn struct {
OperatorId int64
OperatorRole string
Id int64
Name string
TencentTypeId int
StoreId int64
}
// RewardTypeUpdateOut 更新奖励类型出参
type RewardTypeUpdateOut struct {
Success bool
}
// RewardTypeDeleteIn 删除奖励类型入参
type RewardTypeDeleteIn struct {
Id int64
OperatorId int64
OperatorRole string
}
// RewardTypeDeleteOut 删除奖励类型出参
type RewardTypeDeleteOut struct {
Success bool
}
// RewardTypeListIn 获取奖励类型列表入参
type RewardTypeListIn struct {
Page int
Size int
Name string
StoreId int64
Status int
Source int
OperatorId int64
OperatorRole string
}
// RewardTypeListOut 获取奖励类型列表出参
type RewardTypeListOut struct {
List []RewardType
Total int
}