first commit
This commit is contained in:
43
pkg/res/app_user_clan.go
Normal file
43
pkg/res/app_user_clan.go
Normal file
@ -0,0 +1,43 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserClanRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
No string `gorm:"column:no;type:varchar(64);not null;index:uk,priority:1;comment:编号" json:"no"`
|
||||
Nickname string `gorm:"column:nickname;type:varchar(64);not null;comment:昵称" json:"nickname"`
|
||||
Sign string `gorm:"column:sign;type:varchar(255);not null;comment:签名" json:"sign"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"avatar"`
|
||||
CreatorUID string `gorm:"column:creator_uid;type:char(32);not null;comment:创建人" json:"creator_uid"`
|
||||
ManagerUID string `gorm:"column:manager_uid;type:char(32);not null;comment:管理人" json:"manager_uid"`
|
||||
CntMember int32 `gorm:"column:cnt_member;type:int;not null;comment:成员数" json:"cnt_member"`
|
||||
CntMoment int32 `gorm:"column:cnt_moment;type:int;not null;comment:动态数量" json:"cnt_moment"`
|
||||
CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"`
|
||||
UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"`
|
||||
|
||||
UserNo string `gorm:"column:no;type:varchar(64);not null;index:uk,priority:1;comment:用户号、用户名" json:"user_no"`
|
||||
UserNickname string `gorm:"column:nickname;type:varchar(64);not null;comment:昵称" json:"user_nickname"`
|
||||
UserAvatar string `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"user_avatar"`
|
||||
}
|
||||
|
||||
type UserClanMemberRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
No string `gorm:"column:no;type:varchar(64);not null;index:uk,priority:1;comment:编号" json:"no"`
|
||||
Nickname string `gorm:"column:nickname;type:varchar(64);not null;comment:昵称" json:"nickname"`
|
||||
Sign string `gorm:"column:sign;type:varchar(255);not null;comment:签名" json:"sign"`
|
||||
Avatar string `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"avatar"`
|
||||
CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"`
|
||||
}
|
||||
|
||||
type UserClanMemberApplyRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
ClanID string `gorm:"column:clan_id;type:char(32);not null;comment:团体ID" json:"clan_id"`
|
||||
ApplyUserID string `gorm:"column:apply_user_id;type:char(32);not null;comment:操作用户" json:"apply_user_id"`
|
||||
TargetUserID string `gorm:"column:target_user_id;type:char(32);not null;comment:目标用户" json:"target_user_id"`
|
||||
Message string `gorm:"column:message;type:varchar(255);not null;comment:申请内容" json:"message"`
|
||||
ReplyMsg string `gorm:"column:reply_msg;type:varchar(255);not null;comment:回复内容" json:"reply_msg"`
|
||||
Channel string `gorm:"column:channel;type:varchar(64);not null;comment:方式 APPLY=用户申请 INVITE=管理员邀请" json:"channel"`
|
||||
State string `gorm:"column:state;type:varchar(32);not null;comment:OK" json:"state"`
|
||||
CreateAt fields.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"`
|
||||
UpdateAt fields.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user