| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- acquirer "git.i2edu.net/i2/i2-bill-api/internal/handler/acquirer"
- acquirer_student "git.i2edu.net/i2/i2-bill-api/internal/handler/acquirer_student"
- auth "git.i2edu.net/i2/i2-bill-api/internal/handler/auth"
- base_organ "git.i2edu.net/i2/i2-bill-api/internal/handler/base_organ"
- mkt_network_detail "git.i2edu.net/i2/i2-bill-api/internal/handler/mkt_network_detail"
- mkt_part_time_user "git.i2edu.net/i2/i2-bill-api/internal/handler/mkt_part_time_user"
- sys_optionset "git.i2edu.net/i2/i2-bill-api/internal/handler/sys_optionset"
- 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),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodPost,
- Path: "/api/v1/part_time_user/add",
- Handler: mkt_part_time_user.MktPartTimeUserAddHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/api/v1/part_time_user/update",
- Handler: mkt_part_time_user.MktPartTimeUserUpdateHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/api/v1/part_time_user/get",
- Handler: mkt_part_time_user.MktPartTimeUserGetHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodPost,
- Path: "/api/acquirer/enroll",
- Handler: acquirer.EnrollHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodPost,
- Path: "/api/acquirer_student/enroll/page",
- Handler: acquirer_student.AcquirerStudentPageHandler(serverCtx),
- },
- {
- Method: http.MethodGet,
- Path: "/api/acquirer/acquirer_student/total",
- Handler: acquirer_student.AcquirerStudentTotalHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodPost,
- Path: "/api/v1/acquirer_student/add",
- Handler: acquirer_student.AcquirerStudentAddHandler(serverCtx),
- },
- },
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/v1/base_organ/get_erp_city_tree",
- Handler: base_organ.GetErpCityTreeHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/v1/sys_optionset/get_erp_optionset",
- Handler: sys_optionset.GetErpOptionsetHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- engine.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/api/v1/mkt_network_detail/get_erp_mkt_network_detail",
- Handler: mkt_network_detail.GetErpMktNetworkDetailHandler(serverCtx),
- },
- },
- rest.WithJwt(serverCtx.Config.JwtAuth.AccessSecret),
- )
- }
|