邹方成 45815bfb7d chore: 清理无用文件与优化代码结构
refactor(utils): 修复密码哈希比较逻辑错误
feat(user): 新增按状态筛选优惠券接口
docs: 添加虚拟发货与任务中心相关文档
fix(wechat): 修正Code2Session上下文传递问题
test: 补充订单折扣与积分转换测试用例
build: 更新配置文件与构建脚本
style: 清理多余的空行与注释
2025-12-18 17:35:55 +08:00

51 lines
4.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.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameActivities = "activities"
// Activities 活动
type Activities struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键ID" json:"id"` // 主键ID
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP(3);comment:更新时间" json:"updated_at"` // 更新时间
Name string `gorm:"column:name;not null;comment:活动名称" json:"name"` // 活动名称
Banner string `gorm:"column:banner;comment:活动横幅/海报URL" json:"banner"` // 活动横幅/海报URL
ActivityCategoryID int64 `gorm:"column:activity_category_id;comment:活动所属分类IDactivity_categories.id可空" json:"activity_category_id"` // 活动所属分类IDactivity_categories.id可空
Status int32 `gorm:"column:status;not null;default:1;comment:状态1进行中 2下线" json:"status"` // 状态1进行中 2下线
PriceDraw int64 `gorm:"column:price_draw;comment:活动门票价格" json:"price_draw"` // 活动门票价格
IsBoss int32 `gorm:"column:is_boss;comment:Boss: 1 是 0 不是" json:"is_boss"` // Boss: 1 是 0 不是
AllowItemCards bool `gorm:"column:allow_item_cards;not null;default:1;comment:是否允许使用道具卡" json:"allow_item_cards"` // 是否允许使用道具卡
AllowCoupons bool `gorm:"column:allow_coupons;not null;default:1;comment:是否允许使用优惠券" json:"allow_coupons"` // 是否允许使用优惠券
StartTime time.Time `gorm:"column:start_time;comment:开始时间" json:"start_time"` // 开始时间
EndTime time.Time `gorm:"column:end_time;comment:结束时间" json:"end_time"` // 结束时间
DrawMode string `gorm:"column:draw_mode;not null" json:"draw_mode"`
PlayType string `gorm:"column:play_type;not null" json:"play_type"`
MinParticipants int64 `gorm:"column:min_participants;not null" json:"min_participants"`
IntervalMinutes int64 `gorm:"column:interval_minutes;not null" json:"interval_minutes"`
ScheduledTime time.Time `gorm:"column:scheduled_time" json:"scheduled_time"`
LastSettledAt time.Time `gorm:"column:last_settled_at" json:"last_settled_at"`
RefundCouponID int64 `gorm:"column:refund_coupon_id;not null" json:"refund_coupon_id"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
Image string `gorm:"column:image;comment:活动图片地址" json:"image"` // 活动图片地址
CommitmentAlgo string `gorm:"column:commitment_algo;default:commit-v1" json:"commitment_algo"`
CommitmentSeedMaster []byte `gorm:"column:commitment_seed_master" json:"commitment_seed_master"`
CommitmentSeedHash []byte `gorm:"column:commitment_seed_hash" json:"commitment_seed_hash"`
CommitmentStateVersion int32 `gorm:"column:commitment_state_version" json:"commitment_state_version"`
CommitmentItemsRoot []byte `gorm:"column:commitment_items_root" json:"commitment_items_root"`
GameplayIntro string `gorm:"column:gameplay_intro;comment:玩法介绍" json:"gameplay_intro"` // 玩法介绍
}
// TableName Activities's table name
func (*Activities) TableName() string {
return TableNameActivities
}