邹方成 8141a47690
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 39s
feat(称号系统): 新增称号管理功能与抽奖效果集成
- 新增系统称号模板与效果配置表及相关CRUD接口
- 实现用户称号分配与抽奖效果应用逻辑
- 优化抽奖接口支持用户ID参数以应用称号效果
- 新增称号管理前端页面与分配功能
- 修复Windows时区错误与JSON字段初始化问题
- 移除无用管理接口代码并更新文档说明
2025-11-16 11:37:40 +08:00

30 lines
1.8 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"
)
const TableNameUserTitles = "user_titles"
// UserTitles 用户持有头衔表
type UserTitles struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:用户持有头衔主键ID" json:"id"` // 用户持有头衔主键ID
UserID int64 `gorm:"column:user_id;not null;comment:用户IDusers.id" json:"user_id"` // 用户IDusers.id
TitleID int64 `gorm:"column:title_id;not null;comment:头衔IDsystem_titles.id" json:"title_id"` // 头衔IDsystem_titles.id
Active int32 `gorm:"column:active;not null;default:1;comment:是否激活1激活 0停用" json:"active"` // 是否激活1激活 0停用
ObtainedAt time.Time `gorm:"column:obtained_at;not null;default:CURRENT_TIMESTAMP(3);comment:获得时间" json:"obtained_at"` // 获得时间
ExpiresAt time.Time `gorm:"column:expires_at;comment:过期时间(可空)" json:"expires_at"` // 过期时间(可空)
Source string `gorm:"column:source;comment:来源标识(活动、运营发放等)" json:"source"` // 来源标识(活动、运营发放等)
Remark string `gorm:"column:remark;comment:备注信息" json:"remark"` // 备注信息
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3);comment:创建时间" json:"created_at"` // 创建时间
}
// TableName UserTitles's table name
func (*UserTitles) TableName() string {
return TableNameUserTitles
}