21 lines
469 B
Go
21 lines
469 B
Go
package models
|
|
|
|
type UserRegister struct {
|
|
TIN string `json:"tin"`
|
|
Phone string `json:"phone"`
|
|
Passwd string `json:"password,omitempty"`
|
|
PasswdCfm string `json:"password_cfm,omitempty"`
|
|
PasswdHash string `json:"-"`
|
|
}
|
|
|
|
type UserLoginReq struct {
|
|
Phone string `json:"phone"`
|
|
Passwd string `json:"password"`
|
|
PasswdHash string `json:"-"`
|
|
}
|
|
|
|
type UserLoginResp struct {
|
|
Token string `json:"token"`
|
|
TokenTtl int64 `json:"token_ttl"`
|
|
}
|