| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- "git.i2edu.net/i2/i2-bill-api/internal/svc"
- "github.com/tal-tech/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/users/id/:userId",
- Handler: GetUserHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/v1/part_time_user/add",
- Handler: PartTimeUserAdHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- }
|