Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 25s
feat(admin): 新增工会管理功能 feat(activity): 添加活动管理相关服务 feat(user): 实现用户道具卡和积分管理 feat(guild): 新增工会成员管理功能 fix: 修复数据库连接配置 fix: 修正jwtoken导入路径 fix: 解决端口冲突问题 style: 统一代码格式和注释风格 style: 更新项目常量命名 docs: 添加项目框架和开发规范文档 docs: 更新接口文档注释 chore: 移除无用代码和文件 chore: 更新Makefile和配置文件 chore: 清理日志文件 test: 添加道具卡测试脚本
31 lines
1.9 KiB
Go
31 lines
1.9 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 TableNameGuild = "guild"
|
||
|
||
// Guild 公会
|
||
type Guild 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"` // 创建时间
|
||
Name string `gorm:"column:name;not null;comment:公会名称" json:"name"` // 公会名称
|
||
OwnerID int64 `gorm:"column:owner_id;not null;comment:会长用户ID" json:"owner_id"` // 会长用户ID
|
||
Status int32 `gorm:"column:status;not null;default:1;comment:状态:1正常 2解散" json:"status"` // 状态:1正常 2解散
|
||
Description string `gorm:"column:description;comment:工会描述" json:"description"` // 工会描述
|
||
JoinMode int32 `gorm:"column:join_mode;default:2;comment:加入方式 1: 审核通过 2: 自动通过 3. 消费流水" json:"join_mode"` // 加入方式 1: 审核通过 2: 自动通过 3. 消费流水
|
||
ConsumeLimit int64 `gorm:"column:consume_limit;comment:加入工会消费流水最低限额(分)" json:"consume_limit"` // 加入工会消费流水最低限额(分)
|
||
AvatarURL string `gorm:"column:avatar_url;comment:工会头像" json:"avatar_url"` // 工会头像
|
||
IsOpen int32 `gorm:"column:is_open;default:1;comment:1 公开 2 私有" json:"is_open"` // 1 公开 2 私有
|
||
}
|
||
|
||
// TableName Guild's table name
|
||
func (*Guild) TableName() string {
|
||
return TableNameGuild
|
||
}
|