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.

78 lines
2.9 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美国
Source string `json:"source"` //用户来源 facebook twitter tiktok youtube
}
type UserRegister struct {
Email string `json:"email"` // 邮箱
Code string `json:"code"` // 验证码
Nickname string `json:"nickname"` //昵称
Avatar string `json:"avatar"` //头像
Appid string `json:"appid"` //应用id
Source string `json:"source"` //用户来源 facebook twitter tiktok youtube
}
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"` //平台
Url string `json:"url"` //主页地址
Image string `json:"image"` //图片
IsAuth bool `json:"is_auth"` //是否认证
CreatedAt *time.Time `json:"created_at"` //创建时间
}
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"`
}
type UserAppeal struct {
Respon string `json:"respon"` //申诉内容
Images string `json:"images"` //图片
Contact string `json:"contact"` //联系方式
}
type ProviderAuth struct {
Appid string `json:"appid" form:"appid"` //应用id
Client string `json:"client" form:"client"` //客户端 ios android web
Platform string `json:"platform" form:"platform"` //平台 google facebook twitter tiktok
}
type UserEmail struct {
Email string `json:"email"` //邮箱
Code string `json:"code"` //验证码
}
type AppProvider struct {
Appid string `json:"appid" form:"appid"` //应用id
}