init repo
This commit is contained in:
24
internal/model/user/user.go
Normal file
24
internal/model/user/user.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user