You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.6 KiB

package request
import "time"
// User login structure
type UserDetail struct {
Type string `json:"type"` // 修改字段 platform-平台 tags-个人标签
Platform string `json:"platform"` // 平台及地址逗号隔开 eg:(ins:https://baidu.com/user/1,qq:12345678)
Tags string `json:"tags"` // 个人标签
}
type UserLogin struct {
Email string `json:"email"` //邮箱
Phone string `json:"phone"` //手机号
Code string `json:"code"` //验证码
Password string `json:"password"` //密码
Type string `json:"type"` // 1-手机号 2-邮箱
Appid string `json:"appid"` //应用id
CountryCode string `json:"country_code" form:"country_code" gorm:"size:255"` //用户手机号国家代码 国际区号 86 中国 1美国
}
type UserRegister struct {
Email string `json:"email"` // 邮箱
Code string `json:"code"` // 验证码
Nickname string `json:"nickname"` //昵称
Avatar string `json:"avatar"` //头像
Appid string `json:"appid"` //应用id
CountryCode string `json:"country_code" form:"country_code" gorm:"size:255"` //用户手机号国家代码 国际区号 86 中国 1美国
}
type UserBandPhone struct {
Phone string `json:"phone"` //手机号
Code string `json:"code"` //验证码
}
type UserPlatformAuth struct {
Platform Platform `json:"platform"` //平台
Tags string `json:"tags"` //个人标签
}
type Platform struct {
Platform string `json:"platform"` //平台 字典表获取
Label string `gorm:"-" json:"label"`
Url string `json:"url"` //主页地址
Image string `json:"image"` //图片
IsAuth bool `json:"is_auth"` //是否认证
CreatedAt *time.Time `json:"-" gorm:"-"` //创建时间
}
type UserAuthorized struct {
Appid string `json:"appid"` //应用id
Client string `json:"client"` //客户端 ios android web
Platform string `json:"platform"` //平台 google facebook twitter tiktok
Code string `json:"code"` //授权码
Token string `json:"token"` //token
Uuid string `json:"uuid"` //设备唯一标识
}