auth_router.go
750 字节
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/port/beego/controllers"
)
func init() {
web.Router("/auths/login", &controllers.AuthController{}, "Post:Login")
web.Router("/auths/loginByCompany", &controllers.AuthController{}, "Post:LoginByCompany")
web.Router("/auths/accessToken", &controllers.AuthController{}, "Post:AccessToken")
web.Router("/auths/refreshToken", &controllers.AuthController{}, "Post:RefreshToken")
web.Router("/auths/sendSmsCode", &controllers.AuthController{}, "Post:SendSmsCode")
web.Router("/auths/revoke", &controllers.AuthController{}, "Post:Revoke")
web.Router("/auths/changePhonePassword", &controllers.AuthController{}, "Post:ChangePassword")
}