refactor(utils): 修复密码哈希比较逻辑错误 feat(user): 新增按状态筛选优惠券接口 docs: 添加虚拟发货与任务中心相关文档 fix(wechat): 修正Code2Session上下文传递问题 test: 补充订单折扣与积分转换测试用例 build: 更新配置文件与构建脚本 style: 清理多余的空行与注释
32 lines
1.8 KiB
Go
32 lines
1.8 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"
|
||
|
||
"gorm.io/gorm"
|
||
)
|
||
|
||
const TableNameSystemTitles = "system_titles"
|
||
|
||
// SystemTitles 头衔模板表
|
||
type SystemTitles struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:头衔模板主键ID" json:"id"` // 头衔模板主键ID
|
||
Name string `gorm:"column:name;not null;comment:头衔名称(唯一)" json:"name"` // 头衔名称(唯一)
|
||
Description string `gorm:"column:description;comment:头衔描述" json:"description"` // 头衔描述
|
||
Status int32 `gorm:"column:status;not null;default:1;comment:状态:1启用 0停用" json:"status"` // 状态:1启用 0停用
|
||
ObtainRulesJSON string `gorm:"column:obtain_rules_json;comment:获得条件规则JSON(任务、等级、付费等)" json:"obtain_rules_json"` // 获得条件规则JSON(任务、等级、付费等)
|
||
ScopesJSON string `gorm:"column:scopes_json;comment:作用范围配置JSON(活动/期/分类等)" json:"scopes_json"` // 作用范围配置JSON(活动/期/分类等)
|
||
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"` // 更新时间
|
||
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
|
||
}
|
||
|
||
// TableName SystemTitles's table name
|
||
func (*SystemTitles) TableName() string {
|
||
return TableNameSystemTitles
|
||
}
|