|
|
@ -7,21 +7,16 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type ApiUserInfo struct {
|
|
|
|
type ApiUserInfo struct {
|
|
|
|
UserID string `json:"userID" binding:"required,min=1,max=64" swaggo:"true,用户ID,"`
|
|
|
|
UserID string `json:"userID" binding:"required,min=1,max=64" swaggo:"true,用户ID,"`
|
|
|
|
Nickname string `json:"nickname" binding:"omitempty,min=1,max=64" swaggo:"true,my id,19"`
|
|
|
|
Nickname string `json:"nickname" binding:"omitempty,min=1,max=64" swaggo:"true,my id,19"`
|
|
|
|
FaceURL string `json:"faceURL" binding:"omitempty,max=1024"`
|
|
|
|
FaceURL string `json:"faceURL" binding:"omitempty,max=1024"`
|
|
|
|
Gender int32 `json:"gender" binding:"omitempty,oneof=0 1 2"`
|
|
|
|
Gender int32 `json:"gender" binding:"omitempty,oneof=0 1 2"`
|
|
|
|
PhoneNumber string `json:"phoneNumber" binding:"omitempty,max=32"`
|
|
|
|
PhoneNumber string `json:"phoneNumber" binding:"omitempty,max=32"`
|
|
|
|
Birth uint32 `json:"birth" binding:"omitempty"`
|
|
|
|
Birth uint32 `json:"birth" binding:"omitempty"`
|
|
|
|
Email string `json:"email" binding:"omitempty,max=64"`
|
|
|
|
Email string `json:"email" binding:"omitempty,max=64"`
|
|
|
|
CreateIp string `json:"createIp" binding:"omitempty,max=15"`
|
|
|
|
CreateTime int64 `json:"createTime"`
|
|
|
|
CreateTime int64 `json:"createTime"`
|
|
|
|
LoginLimit int32 `json:"loginLimit" binding:"omitempty"`
|
|
|
|
LastLoginIp string `json:"LastLoginIp" binding:"omitempty,max=15"`
|
|
|
|
Ex string `json:"ex" binding:"omitempty,max=1024"`
|
|
|
|
LastLoginTime int64 `json:"lastLoginTime"`
|
|
|
|
|
|
|
|
LoginTimes int32 `json:"loginTimes" binding:"omitempty"`
|
|
|
|
|
|
|
|
LoginLimit int32 `json:"loginLimit" binding:"omitempty"`
|
|
|
|
|
|
|
|
Ex string `json:"ex" binding:"omitempty,max=1024"`
|
|
|
|
|
|
|
|
InvitationCode string `json:"invitationCode" binding:"omitempty"`
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//type Conversation struct {
|
|
|
|
//type Conversation struct {
|
|
|
|