| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- "git.i2edu.net/i2/i2-bill-api/internal/svc"
- "git.i2edu.net/i2/go-zero/rest"
- )
- func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/hello",
- Handler: HelloHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/auth/loginByWeixin",
- Handler: LoginByWeixinHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/api/users/share/jz_qrcode",
- Handler: JzQrCodeHandler(serverCtx),
- },
- },
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/users/id/:userId",
- Handler: GetUserHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- }
|