| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- // 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),
- },
- },
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/user/share/jzQrcode",
- Handler: JzQrCodeHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/user/bindMobile",
- Handler: BindMobileHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/api/user/info",
- Handler: GetUserHandler(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),
- )
- }
|