| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- auth "git.i2edu.net/i2/i2-bill-api/internal/handler/auth"
- user "git.i2edu.net/i2/i2-bill-api/internal/handler/user"
- "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: auth.HelloHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/auth/loginByWeixin",
- Handler: auth.LoginByWeixinHandler(serverCtx),
- },
- },
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/user/share/jzQrcode",
- Handler: user.JzQrCodeHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/user/bindMobile",
- Handler: user.BindMobileHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/api/user/info",
- Handler: user.GetUserHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/user/punchClock",
- Handler: user.PunchClockHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/v1/part_time_user/add",
- Handler: PartTimeUserAddHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/v1/part_time_user/update",
- Handler: PartTimeUserUpdateHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- }
|