// 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), ) }