first commit
This commit is contained in:
32
pkg/res/app_user_friend.go
Normal file
32
pkg/res/app_user_friend.go
Normal file
@ -0,0 +1,32 @@
|
||||
package res
|
||||
|
||||
import "servicebase/pkg/datasource/fields"
|
||||
|
||||
type UserFriendRes 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"`
|
||||
|
||||
ClanID string
|
||||
ClanName string
|
||||
ClanAvatar string
|
||||
}
|
||||
|
||||
type UserFriendTopRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
}
|
||||
|
||||
type UserFriendApplyRes struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"`
|
||||
FromUserID string `gorm:"column:from_user_id;type:char(32);not null;index:uk,priority:1;comment:团体ID" json:"from_user_id"`
|
||||
ToUserID string `gorm:"column:to_user_id;type:char(32);not null;index:uk,priority:2;comment:用户ID" json:"to_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" json:"reply_msg"`
|
||||
Channel string `gorm:"column:channel;type:varchar(64);not null;comment:方式 NORMAL=普通" 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