password_login.go 454 B

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