fix: wechat auth

This commit is contained in:
Rogee
2025-01-10 14:53:01 +08:00
parent 3f227772fd
commit 4d11403c3a
2 changed files with 7 additions and 9 deletions

View File

@@ -28,15 +28,13 @@ func (r *Routes) Name() string {
func (r *Routes) Register(router fiber.Router) {
// 注册路由组: Controller
router.Get("/v1/auth/wechat/jump/:tenant", Func2(
router.Get("/auth/wechat/jump", Func1(
r.controller.JumpToAuth,
Path[string]("tenant"),
QueryParam[string]("redirectUri"),
))
router.Get("/v1/auth/login/:tenant", Func4(
router.Get("/auth/login", Func3(
r.controller.Login,
Path[string]("tenant"),
QueryParam[string]("code"),
QueryParam[string]("state"),
QueryParam[string]("redirectUri"),