Add codeToResponse().

This commit is contained in:
Yang Luo
2021-03-20 09:11:03 +08:00
parent 18c021b009
commit c8cd37058e
3 changed files with 17 additions and 8 deletions

View File

@ -33,7 +33,7 @@ func (c *ApiController) HandleLoggedIn(userId string) {
func (c *ApiController) Login() {
var resp Response
var form RegisterForm
var form RequestForm
err := json.Unmarshal(c.Ctx.Input.RequestBody, &form)
if err != nil {
panic(err)