(c *gin.Context)
| 24 | } |
| 25 | |
| 26 | func wopanVerifyCode(c *gin.Context) { |
| 27 | req := struct { |
| 28 | Phone string `json:"phone"` |
| 29 | Password string `json:"password"` |
| 30 | VerifyCode string `json:"verify_code"` |
| 31 | }{} |
| 32 | if err := c.ShouldBind(&req); err != nil { |
| 33 | Error(c, err) |
| 34 | return |
| 35 | } |
| 36 | w := wopan.Default() |
| 37 | res, err := w.PcLoginVerifyCode(req.Phone, req.Password, req.VerifyCode) |
| 38 | if err != nil { |
| 39 | Error(c, err) |
| 40 | return |
| 41 | } |
| 42 | c.JSON(200, res) |
| 43 | } |