修改用户功能

This commit is contained in:
JACKYMYPERSON
2025-09-24 20:56:55 +08:00
parent b1ccc9d6d5
commit 6cb3ef116b
3 changed files with 122 additions and 12 deletions

View File

@@ -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 {