password_login.go 424 B

12345678910111213141516171819
  1. package http_model
  2. type PasswordLoginRequest struct {
  3. UserPhone string `json:"user_phone"`
  4. UserPasswd string `json:"user_password"`
  5. }
  6. type PasswordLoginData struct {
  7. Token string `json:"token"`
  8. }
  9. func NewPasswordLoginRequest() *PasswordLoginRequest {
  10. return new(PasswordLoginRequest)
  11. }
  12. func NewPasswordLoginResponse() *CommonResponse {
  13. resp := new(CommonResponse)
  14. resp.Data = new(PasswordLoginData)
  15. return resp
  16. }