添加User.Avatar
This commit is contained in:
@@ -35,6 +35,7 @@ type User struct {
|
||||
Name string `orm:"size(48);index" json:"name" compact:"name"` // 外部显示标识(当前可以重复)
|
||||
Mobile *string `orm:"size(32);null" json:"mobile" compact:"mobile"`
|
||||
Email *string `orm:"size(32);null" json:"email" compact:"email"`
|
||||
Avatar string `orm:"size(255)" json:"avatar" compact:"avatar"` // 头像
|
||||
Status int8 `json:"status" compact:"status"`
|
||||
Type int8 `json:"type" compact:"type"` // 用户类型
|
||||
|
||||
@@ -80,6 +81,10 @@ func (user *User) GetName() string {
|
||||
return user.Name
|
||||
}
|
||||
|
||||
func (user *User) GetAvatar() string {
|
||||
return user.Avatar
|
||||
}
|
||||
|
||||
type StoreBoss struct {
|
||||
ModelIDCULD
|
||||
UserID string `orm:"size(48);column(user_id);unique" json:"userID"` // 内部唯一标识
|
||||
|
||||
Reference in New Issue
Block a user