send_code.go 411 B

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