routes.go 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. purchase "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/handler/purchase"
  6. "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/svc"
  7. "github.com/zeromicro/go-zero/rest"
  8. )
  9. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  10. server.AddRoutes(
  11. []rest.Route{
  12. {
  13. Method: http.MethodPost,
  14. Path: "/jybx/core/:userType/searchList",
  15. Handler: searchListHandler(serverCtx),
  16. },
  17. {
  18. Method: http.MethodPost,
  19. Path: "/jybx/core/:searchType/searchLimit",
  20. Handler: limitSearchContentHandler(serverCtx),
  21. },
  22. {
  23. Method: http.MethodPost,
  24. Path: "/jybx/core/participate/show",
  25. Handler: participateShowHandler(serverCtx),
  26. },
  27. {
  28. Method: http.MethodPost,
  29. Path: "/jybx/core/participate/info",
  30. Handler: ParticipateInfoHandler(serverCtx),
  31. },
  32. {
  33. Method: http.MethodPost,
  34. Path: "/jybx/core/participate/updateBidStatus",
  35. Handler: updateBidStatusHandler(serverCtx),
  36. },
  37. {
  38. Method: http.MethodPost,
  39. Path: "/jybx/core/participate/content",
  40. Handler: ParticipateContentHandler(serverCtx),
  41. },
  42. {
  43. Method: http.MethodPost,
  44. Path: "/jybx/core/participate/records",
  45. Handler: ParticipateRecordsHandler(serverCtx),
  46. },
  47. {
  48. Method: http.MethodPost,
  49. Path: "/jybx/core/participate/persons",
  50. Handler: ParticipatePersonsHandler(serverCtx),
  51. },
  52. {
  53. Method: http.MethodPost,
  54. Path: "/jybx/core/participate/setUpInfo",
  55. Handler: participateSetUpInfoHandler(serverCtx),
  56. },
  57. {
  58. Method: http.MethodPost,
  59. Path: "/jybx/core/participate/:actionType/info",
  60. Handler: participateActionHandler(serverCtx),
  61. },
  62. {
  63. Method: http.MethodPost,
  64. Path: "/jybx/core/participate/:identity/list",
  65. Handler: participateListHandler(serverCtx),
  66. },
  67. {
  68. Method: http.MethodPost,
  69. Path: "/jybx/core/statistics/pushStatistics",
  70. Handler: pushStatisticsHandler(serverCtx),
  71. },
  72. {
  73. Method: http.MethodPost,
  74. Path: "/jybx/core/statistics/projectStatistics",
  75. Handler: projectStatisticsHandler(serverCtx),
  76. },
  77. {
  78. Method: http.MethodPost,
  79. Path: "/jybx/core/polymerizeSearch",
  80. Handler: polymerizeSearchHandler(serverCtx),
  81. },
  82. {
  83. Method: http.MethodPost,
  84. Path: "/jybx/core/statistics/projectDetails",
  85. Handler: statisticsProjectDetailsHandler(serverCtx),
  86. },
  87. {
  88. Method: http.MethodPost,
  89. Path: "/jybx/core/property/searchCriteria",
  90. Handler: searchCriteriaHandler(serverCtx),
  91. },
  92. {
  93. Method: http.MethodPost,
  94. Path: "/jybx/core/mobileHotWord",
  95. Handler: mobileHotWordHandler(serverCtx),
  96. },
  97. {
  98. Method: http.MethodPost,
  99. Path: "/jybx/core/operatorSearch",
  100. Handler: operatorSearchHandler(serverCtx),
  101. },
  102. {
  103. Method: http.MethodPost,
  104. Path: "/jybx/core/operatorSearchCriteria",
  105. Handler: operatorSearchCriteriaHandler(serverCtx),
  106. },
  107. },
  108. )
  109. server.AddRoutes(
  110. []rest.Route{
  111. {
  112. Method: http.MethodPost,
  113. Path: "/core/purchaseSearch",
  114. Handler: purchase.PurchaseSearchHandler(serverCtx),
  115. },
  116. },
  117. rest.WithPrefix("/jybx"),
  118. )
  119. }