生成奖励相关代码,实现新增门店奖励

This commit is contained in:
2025-06-06 15:49:46 +08:00
parent e40f9987db
commit 2054256a8c
33 changed files with 972 additions and 98 deletions

View File

@ -0,0 +1,26 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// Rewards is the golang structure for table rewards.
type Rewards struct {
Id int64 `json:"id" orm:"id" description:"奖励唯一标识符"` // 奖励唯一标识符
RewardTypeId int64 `json:"rewardTypeId" orm:"reward_type_id" description:"奖励类型ID"` // 奖励类型ID
RewardScope int `json:"rewardScope" orm:"reward_scope" description:"奖励范围1=系统奖励2=门店奖励"` // 奖励范围1=系统奖励2=门店奖励
Name string `json:"name" orm:"name" description:"奖励名称"` // 奖励名称
Code string `json:"code" orm:"code" description:"奖励编号"` // 奖励编号
Description string `json:"description" orm:"description" description:"奖励描述"` // 奖励描述
Status int `json:"status" orm:"status" description:"状态1=启用2=禁用"` // 状态1=启用2=禁用
Stock int `json:"stock" orm:"stock" description:"奖励库存0表示无限制"` // 奖励库存0表示无限制
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"奖励有效开始时间"` // 奖励有效开始时间
ExpireAt *gtime.Time `json:"expireAt" orm:"expire_at" 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:"软删除时间戳"` // 软删除时间戳
}