send_code.go 440 B

1234567891011121314151617181920
  1. package http_model
  2. // SendCodeRequest 发送验证码请求的格式
  3. type SendCodeRequest struct {
  4. Phone string `json:"phone"`
  5. Email string `json:"email"`
  6. }
  7. // SendCodeData 发送验证码请求返回的数据
  8. type SendCodeData struct {
  9. }
  10. func NewSendCodeRequest() *SendCodeRequest {
  11. return new(SendCodeRequest)
  12. }
  13. func NewSendCodeResponse() *CommonResponse {
  14. resp := new(CommonResponse)
  15. resp.Data = new(SendCodeData)
  16. return resp
  17. }