Files
arenax-server/internal/model/storeTaskReward.go

23 lines
1.2 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/frame/g"
"time"
)
type StoreTaskReward struct {
g.Meta `orm:"table:store_task_rewards"`
Id int64 `orm:"id" json:"id"` // 奖励唯一标识符
TaskId int64 `orm:"task_id" json:"task_id"` // 任务ID关联tasks表的id
StoreId string `orm:"store_id" json:"store_id"` // 门店ID
Name string `orm:"name" json:"name"` // 奖励名称
RewardTypeId string `orm:"reward_type_id" json:"reward_type_id"` // 奖励类型ID
TotalNum int32 `orm:"total_num" json:"total_num"` // 奖励总数
UsedNum int32 `orm:"used_num" json:"used_num"` // 已使用数量
LimitNum int32 `orm:"limit_num" json:"limit_num"` // 限制数量
CoverImage string `orm:"cover_image" json:"cover_image"` // 封面图URL
CreatedAt time.Time `orm:"created_at" json:"created_at"` // 创建时间
UpdatedAt time.Time `orm:"updated_at" json:"updated_at"` // 更新时间
DeletedAt time.Time `orm:"deleted_at" json:"deleted_at"` // 软删除时间戳
}