bindbox-game/internal/repository/mysql/model/issue_random_commitments.gen.go
邹方成 81e2fb5a75
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 41s
feat(activity): 实现抽奖随机承诺与验证功能
新增随机种子生成与验证逻辑,包括:
1. 添加随机承诺生成接口
2. 实现抽奖执行与验证流程
3. 新增批量用户创建与删除功能
4. 添加抽奖收据记录表
5. 完善配置管理与错误码

新增测试用例验证随机算法正确性
2025-11-15 20:39:13 +08:00

31 lines
1.4 KiB
Go

// 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"
)
const TableNameIssueRandomCommitments = "issue_random_commitments"
// IssueRandomCommitments mapped from table <issue_random_commitments>
type IssueRandomCommitments struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP(3)" json:"updated_at"`
IssueID int64 `gorm:"column:issue_id;not null" json:"issue_id"`
AlgoVersion string `gorm:"column:algo_version;not null" json:"algo_version"`
ServerSeedMaster []byte `gorm:"column:server_seed_master;not null" json:"server_seed_master"`
ServerSeedHash []byte `gorm:"column:server_seed_hash;not null" json:"server_seed_hash"`
ItemsRoot []byte `gorm:"column:items_root;not null" json:"items_root"`
WeightsTotal int64 `gorm:"column:weights_total;not null" json:"weights_total"`
StateVersion int32 `gorm:"column:state_version;not null" json:"state_version"`
}
// TableName IssueRandomCommitments's table name
func (*IssueRandomCommitments) TableName() string {
return TableNameIssueRandomCommitments
}