This commit is contained in:
2025-09-05 23:35:47 +08:00
parent 16fb22479f
commit e26a9e7735
4 changed files with 42 additions and 25 deletions
@@ -135,18 +135,19 @@ type MiniLoginResponse struct {
// MiniUserInfoResponse 小程序用户信息响应
type MiniUserInfoResponse struct {
ID uint `json:"id"` // 用户ID
OpenID string `json:"openid"` // 用户openid
UnionID *string `json:"unionid"` // 用户unionid
NickName *string `json:"nickName"` // 用户昵称
Avatar *string `json:"avatar"` // 用户头像
Phone *string `json:"phone"` // 用户手机号
Gender *int `json:"gender"` // 性别:0-未知,1-男,2-女
City *string `json:"city"` // 城市
Province *string `json:"province"` // 省份
Country *string `json:"country"` // 国家
CreateTime string `json:"createTime"` // 创建时间
UpdateTime string `json:"updateTime"` // 更新时间
ID uint `json:"id"` // 用户ID
OpenID string `json:"openid"` // 用户openid
UnionID *string `json:"unionid"` // 用户unionid
NickName *string `json:"nickName"` // 用户昵称
Avatar *string `json:"avatar"` // 用户头像
Phone *string `json:"phone"` // 用户手机号
Gender *int `json:"gender"` // 性别:0-未知,1-男,2-女
City *string `json:"city"` // 城市
Province *string `json:"province"` // 省份
Country *string `json:"country"` // 国家
CreateTime string `json:"createTime"` // 创建时间
UpdateTime string `json:"updateTime"` // 更新时间
NeedPhoneAuth bool `json:"needPhoneAuth"` // 是否需要授权手机号
}
// PhoneUpdateResponse 手机号更新响应