2023-06-04 22:54:54 +08:00
|
|
|
package dto
|
|
|
|
|
2024-09-29 21:12:57 +08:00
|
|
|
type RegisterReq struct {
|
|
|
|
LoginReq
|
2023-06-04 22:54:54 +08:00
|
|
|
|
2024-09-29 21:12:57 +08:00
|
|
|
NickName *string `json:"nickName"` // 昵称
|
|
|
|
Avatar *string `json:"avatar"` // 头像
|
2024-04-29 19:35:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SendResetPwdCodeReq struct {
|
2024-09-30 22:49:21 +08:00
|
|
|
Email string `json:"email"` // 帐号
|
2024-04-29 19:35:18 +08:00
|
|
|
}
|
|
|
|
|
2024-09-29 21:12:57 +08:00
|
|
|
type ResetPwdReq struct {
|
2024-04-29 19:35:18 +08:00
|
|
|
Account string `json:"account"` // 帐号
|
|
|
|
|
|
|
|
Password string `json:"password"` // 密码
|
|
|
|
|
|
|
|
Code string `json:"code"` // 验证码
|
|
|
|
}
|
|
|
|
|
2024-09-29 21:12:57 +08:00
|
|
|
type LoginReq struct {
|
2024-09-30 22:49:21 +08:00
|
|
|
Account *string `json:"account"` // 帐号
|
|
|
|
Password string `json:"password"` // 密码
|
|
|
|
Platform string `json:"platform"` // 平台
|
|
|
|
|
|
|
|
Email *string `json:"email"` // 邮箱
|
|
|
|
Phone *string `json:"phone"` // 手机号码
|
2024-09-29 21:12:57 +08:00
|
|
|
|
|
|
|
WxId *string `json:"wxId"` // 微信unionId
|
|
|
|
QqId *string `json:"qqId"` // qqId
|
|
|
|
|
|
|
|
GoogleId *string `json:"googleId"` // googleId
|
|
|
|
FacebookId *string `json:"facebookId"` // facebookId
|
2023-06-04 22:54:54 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-09-29 21:12:57 +08:00
|
|
|
type UserLoginToken struct {
|
2023-06-04 22:54:54 +08:00
|
|
|
Uid uint64 `json:"uid"`
|
|
|
|
AccessToken string `json:"accessToken"`
|
|
|
|
}
|
2024-05-15 15:02:12 +08:00
|
|
|
|
|
|
|
type FindUidByToken struct {
|
|
|
|
AccessToken string `json:"accessToken"`
|
|
|
|
}
|