package routers import ( "server/modules/web/handler" "github.com/gin-gonic/gin" ) func account(e *gin.RouterGroup) { e.POST("/account/email/code", handler.GetEmailCode) e.POST("/account/email/regist", handler.EmailRegist) e.POST("/account/email/login", handler.EmailLogin) e.POST("/account/email/resetPass", handler.EmailResetPass) e.POST("/account/gpLogin", handler.GPLogin) e.POST("/account/fbLogin", handler.FBLogin) e.POST("/account/tokenLogin", handler.TokenLogin) e.POST("/account/phoneCode/verify", handler.VerifyCode) e.POST("/account/phoneCode/bind", handler.BindingAccount) e.POST("/account/regist", handler.AccountRegist) e.POST("/account/login", handler.AccountLogin) e.POST("/account/resetPass", handler.AccountResetPass) e.POST("/account/guestLogin", handler.GuestLogin) e.POST("/account/phoneCode/get", handler.GetPhoneCode) e.POST("/account/phoneCode/login", handler.PhoneCodeLogin) e.POST("/account/phone/regist", handler.PhoneRegist) e.POST("/account/phone/login", handler.PhoneLogin) e.POST("/account/phone/resetPass", handler.PhoneResetPass) }