修改用户功能
This commit is contained in:
@@ -179,18 +179,6 @@ func pkcs7Unpad(data []byte) []byte {
|
||||
}
|
||||
|
||||
// 定义与表结构对应的用户模型
|
||||
type UserInfo struct {
|
||||
Uid string `gorm:"column:uid;primaryKey"`
|
||||
Telephone string `gorm:"column:telephone"`
|
||||
Password string `gorm:"column:password"`
|
||||
AvatarUrl string `gorm:"column:avatar_url"`
|
||||
Gender int `gorm:"column:gender"`
|
||||
Birthdate *time.Time `gorm:"column:birthdate-date;type:datetime;nullable"`
|
||||
CreatedTime time.Time `gorm:"column:createdtime;type:datetime"`
|
||||
UpdatedTime time.Time `gorm:"column:updatedtime;type:datetime"`
|
||||
Bio string `gorm:"column:bio"`
|
||||
Username string `gorm:"column:username"`
|
||||
}
|
||||
|
||||
// 自定义表名
|
||||
func (UserInfo) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user