修改奖励类型

This commit is contained in:
2025-06-24 19:53:39 +08:00
parent e28c44ecbb
commit 1c0b9a2d93
42 changed files with 666 additions and 1060 deletions

View File

@ -6,27 +6,23 @@ import (
// RewardType 奖励类型表
type RewardType struct {
Id int64 `json:"id" dc:"奖励类型ID" orm:"id,primary"`
Name string `json:"name" dc:"奖励类型名称(如积分、优惠券)" orm:"name"`
Description string `json:"description" dc:"奖励类型描述" orm:"description"`
Source int `json:"source" dc:"来源1=系统默认2=门店自定义" orm:"source"`
StoreId int64 `json:"storeId" dc:"门店ID系统默认类型为NULL" orm:"store_id"`
Status int `json:"status" dc:"状态1=正常2=禁用" orm:"status"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间" orm:"created_at"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间" orm:"updated_at"`
DeletedAt *gtime.Time `json:"deletedAt" dc:"软删除时间戳" orm:"deleted_at"`
StoreName string `json:"storeName" dc:"门店名称" orm:"storeName"`
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
Description string
Source int
StoreId int64
Status int
OperatorId int64
OperatorRole string
Name string
TencentTypeId int
Source int
StoreId int64
}
// RewardTypeCreateOut 创建奖励类型出参
@ -36,13 +32,12 @@ type RewardTypeCreateOut struct {
// RewardTypeUpdateIn 更新奖励类型入参
type RewardTypeUpdateIn struct {
OperatorId int64
OperatorRole string
Id int64
Name string
Description string
StoreId int64
Status int
OperatorId int64
OperatorRole string
Id int64
Name string
TencentTypeId int
StoreId int64
}
// RewardTypeUpdateOut 更新奖励类型出参
@ -71,6 +66,7 @@ type RewardTypeListIn struct {
Name string
StoreId int64
Status int
Source int
}
// RewardTypeListOut 获取奖励类型列表出参