37 lines
963 B
Go
37 lines
963 B
Go
package dto
|
|
|
|
import "quyun/v2/pkg/consts"
|
|
|
|
type SendOTPForm struct {
|
|
Phone string `json:"phone"`
|
|
}
|
|
|
|
type LoginForm struct {
|
|
Phone string `json:"phone"`
|
|
OTP string `json:"otp"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
Token string `json:"token"`
|
|
User *User `json:"user"`
|
|
}
|
|
|
|
type User struct {
|
|
ID int64 `json:"id"`
|
|
Phone string `json:"phone"`
|
|
Nickname string `json:"nickname"`
|
|
Avatar string `json:"avatar"`
|
|
Gender consts.Gender `json:"gender"`
|
|
Bio string `json:"bio"`
|
|
Birthday string `json:"birthday"` // YYYY-MM-DD
|
|
Location *Location `json:"location"`
|
|
Balance float64 `json:"balance"`
|
|
Points int64 `json:"points"`
|
|
IsRealNameVerified bool `json:"is_real_name_verified"`
|
|
}
|
|
|
|
type Location struct {
|
|
Province string `json:"province"`
|
|
City string `json:"city"`
|
|
}
|