diff --git a/apps/user.go b/apps/user.go index aacd6c5..d580018 100644 --- a/apps/user.go +++ b/apps/user.go @@ -14,7 +14,7 @@ import ( func InitUserGroup(g *echo.Group) { //注册 - g.POST("user/register", func(c echo.Context) error { + g.POST("register", func(c echo.Context) error { req := new(dto.ThirdRegisterReq) if err := c.Bind(req); err != nil { return c.JSON(http.StatusOK, utils.Error(err)) @@ -37,7 +37,7 @@ func InitUserGroup(g *echo.Group) { }) //登录 - g.POST("user/login", func(c echo.Context) error { + g.POST("login", func(c echo.Context) error { req := new(dto.ThirdLoginReq) if err := c.Bind(req); err != nil { return c.JSON(http.StatusOK, utils.Error(err)) @@ -54,7 +54,7 @@ func InitUserGroup(g *echo.Group) { }) //发送 重置密码 验证码 - g.POST("user/sendResetPwdCode", func(c echo.Context) error { + g.POST("sendResetPwdCode", func(c echo.Context) error { req := new(dto.SendResetPwdCodeReq) if err := c.Bind(req); err != nil { return c.JSON(http.StatusOK, utils.Error(err)) @@ -69,7 +69,7 @@ func InitUserGroup(g *echo.Group) { }) //重置密码 - g.POST("user/resetPwd", func(c echo.Context) error { + g.POST("resetPwd", func(c echo.Context) error { req := new(dto.ThirdResetPwdReq) if err := c.Bind(req); err != nil { return c.JSON(http.StatusOK, utils.Error(err))