// Code generated by the atomctl ; DO NOT EDIT. package auth import ( . "backend/pkg/f" _ "git.ipao.vip/rogeecn/atom" _ "git.ipao.vip/rogeecn/atom/contracts" "github.com/gofiber/fiber/v3" log "github.com/sirupsen/logrus" ) // @provider contracts.HttpRoute atom.GroupRoutes type Routes struct { log *log.Entry `inject:"false"` controller *Controller } func (r *Routes) Prepare() error { r.log = log.WithField("module", "routes.auth") return nil } func (r *Routes) Name() string { return "auth" } func (r *Routes) Register(router fiber.Router) { // 注册路由组: Controller router.Get("/v1/auth/wechat/jump/:tenant", Func2( r.controller.JumpToAuth, Path[string]("tenant"), QueryParam[string]("redirectUri"), )) router.Get("/v1/auth/login/:tenant", Func4( r.controller.Login, Path[string]("tenant"), QueryParam[string]("code"), QueryParam[string]("state"), QueryParam[string]("redirectUri"), )) }