Files
arenax-server/internal/model/rewardType.go
2025-06-24 19:53:39 +08:00

77 lines
1.9 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
// RewardType 奖励类型表
type RewardType struct {
Id int64 `json:"id" dc:"奖励类型ID"`
Name string `json:"name" dc:"奖励类型名称(如积分、优惠券)"`
TencentTypeId int `json:"tencentTypeId" dc:"腾讯奖励类型ID仅系统奖励有效"`
Source int `json:"source" dc:"来源1=腾讯系统2=本系统3=其他"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
DeletedAt *gtime.Time `json:"deletedAt" dc:"软删除时间戳"`
}
// 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 {
OperatorId int64
OperatorRole string
Page int
Size int
Name string
StoreId int64
Status int
Source int
}
// RewardTypeListOut 获取奖励类型列表出参
type RewardTypeListOut struct {
List []RewardType
Total int
}