25 lines
509 B
Go
25 lines
509 B
Go
|
|
package model
|
||
|
|
|
||
|
|
type SmsSendRequest struct {
|
||
|
|
Phone string `json:"phone" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type SmsSendResponse struct {
|
||
|
|
Code string `json:"code"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type PhoneLoginRequest struct {
|
||
|
|
Phone string `json:"phone" binding:"required"`
|
||
|
|
Code string `json:"code" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type PhoneLoginResponse struct {
|
||
|
|
Token string `json:"token"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type UserInfoResponse struct {
|
||
|
|
Username string `json:"username"`
|
||
|
|
Phone string `json:"phone"`
|
||
|
|
Status int `json:"status"` // 0: not login, 1: login
|
||
|
|
}
|