// 注册路由 func (self AccountController) RegisterRoute(g *echo.Group) { g.Any("/account/register", self.Register) g.Post("/account/send_activate_email", self.SendActivateEmail) g.Get("/account/activate", self.Activate) g.Any("/account/login", self.Login) g.Any("/account/edit", self.Edit, middleware.NeedLogin()) g.Post("/account/change_avatar", self.ChangeAvatar, middleware.NeedLogin()) g.Post("/account/changepwd", self.ChangePwd, middleware.NeedLogin()) g.Any("/account/forgetpwd", self.ForgetPasswd) g.Any("/account/resetpwd", self.ResetPasswd) g.Get("/account/logout", self.Logout, middleware.NeedLogin()) }