删除奖励、奖励类型门店奖励相关

This commit is contained in:
2025-06-17 14:26:11 +08:00
parent 00024acea2
commit 047f053d9d
62 changed files with 117 additions and 2260 deletions

View File

@ -1,68 +0,0 @@
package model
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
type RewardType struct {
g.Meta `orm:"table:reward_type"`
Id int64 `json:"id" dc:"ID" orm:"id,primary"`
Name string `json:"name" dc:"名称" orm:"name"`
Code string `json:"code" dc:"代号" orm:"code"`
Status int `json:"status" dc:"状态1=启用2=禁用" orm:"status"`
Description string `json:"description" dc:"描述" orm:"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:"删除时间"`
//StoreId int `json:"storeId" dc:"门店ID" orm:"store_id"`
StoreName string `json:"storeName" dc:"门店名称" orm:"store_name"`
}
type RewardTypeIn struct {
Page int
Size int
RoleName string
OperatorId int
}
type RewardTypeOut struct {
List []RewardType
Total int
}
type CreateRewardTypeIn struct {
Name string
Code string
Description string
Status int
StoreId int
}
type CreateRewardTypeOut struct {
Id int64
}
// UpdateRewardTypeIn 更新奖励类型传入参数
type UpdateRewardTypeIn struct {
Id int64
Name string
Code string
Description string
Status int
StoreId int
}
// UpdateRewardTypeOut 更新奖励类型返回参数
type UpdateRewardTypeOut struct {
Success bool
}
// DeleteRewardTypeIn 删除奖励类型传入参数
type DeleteRewardTypeIn struct {
Id int64
}
// DeleteRewardTypeOut 删除奖励类型返回参数
type DeleteRewardTypeOut struct {
Success bool
}