routes.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // Code generated by goctl. DO NOT EDIT.
  2. // goctl 1.7.6
  3. package handler
  4. import (
  5. "net/http"
  6. "bp.jydev.jianyu360.cn/BaseService/biService/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: "/biService/ClueAdd",
  15. Handler: ClueAddHandler(serverCtx),
  16. },
  17. {
  18. // 新增受理单
  19. Method: http.MethodPost,
  20. Path: "/biService/addAcceptance",
  21. Handler: addAcceptanceHandler(serverCtx),
  22. },
  23. {
  24. Method: http.MethodPost,
  25. Path: "/biService/addProject",
  26. Handler: AddProjectReqHandler(serverCtx),
  27. },
  28. {
  29. // 资讯全量导出
  30. Method: http.MethodPost,
  31. Path: "/biService/allInfoExport",
  32. Handler: allInfoExportHandler(serverCtx),
  33. },
  34. {
  35. // 项目全量导出
  36. Method: http.MethodPost,
  37. Path: "/biService/allProjectExport",
  38. Handler: allProjectExportHandler(serverCtx),
  39. },
  40. {
  41. Method: http.MethodPost,
  42. Path: "/biService/autoFollow",
  43. Handler: AutoFollowHandler(serverCtx),
  44. },
  45. {
  46. Method: http.MethodPost,
  47. Path: "/biService/call",
  48. Handler: CallHandler(serverCtx),
  49. },
  50. {
  51. Method: http.MethodPost,
  52. Path: "/biService/clueImport",
  53. Handler: ClueImportHandler(serverCtx),
  54. },
  55. {
  56. Method: http.MethodPost,
  57. Path: "/biService/clueImportTt",
  58. Handler: ClueImportTlHandler(serverCtx),
  59. },
  60. {
  61. // 创建线索
  62. Method: http.MethodPost,
  63. Path: "/biService/createClueByPhone",
  64. Handler: createClueHandler(serverCtx),
  65. },
  66. {
  67. Method: http.MethodPost,
  68. Path: "/biService/distributeClue",
  69. Handler: DistributeClueHandler(serverCtx),
  70. },
  71. {
  72. Method: http.MethodPost,
  73. Path: "/biService/distributeClueShow",
  74. Handler: DistributeClueShowHandler(serverCtx),
  75. },
  76. {
  77. Method: http.MethodPost,
  78. Path: "/biService/drawClue",
  79. Handler: DrawClueHandler(serverCtx),
  80. },
  81. {
  82. // 线索查询
  83. Method: http.MethodPost,
  84. Path: "/biService/findClueInfo",
  85. Handler: findClueInfoHandler(serverCtx),
  86. },
  87. {
  88. // 线索验重 列表
  89. Method: http.MethodPost,
  90. Path: "/biService/getClueInfoList",
  91. Handler: getClueInfoListHandler(serverCtx),
  92. },
  93. {
  94. // 公司类型
  95. Method: http.MethodPost,
  96. Path: "/biService/getCompanyType",
  97. Handler: getCompanyTypeHandler(serverCtx),
  98. },
  99. {
  100. Method: http.MethodPost,
  101. Path: "/biService/getInfoId",
  102. Handler: GetInfoIdHandler(serverCtx),
  103. },
  104. {
  105. // 资讯操作
  106. Method: http.MethodPost,
  107. Path: "/biService/infoOperate",
  108. Handler: infoOperateHandler(serverCtx),
  109. },
  110. {
  111. Method: http.MethodPost,
  112. Path: "/biService/myDataAsset",
  113. Handler: MyDataAssetHandler(serverCtx),
  114. },
  115. {
  116. // 用户身份
  117. Method: http.MethodPost,
  118. Path: "/biService/myInfo",
  119. Handler: MyinfoHandler(serverCtx),
  120. },
  121. {
  122. // 资源中台授权
  123. Method: http.MethodPost,
  124. Path: "/biService/resEmpower",
  125. Handler: ResEmpowerHandler(serverCtx),
  126. },
  127. {
  128. // 发送邮件
  129. Method: http.MethodPost,
  130. Path: "/biService/sendCommonndMail",
  131. Handler: sendComMailHandler(serverCtx),
  132. },
  133. {
  134. // 数据导出(通用),发邮件
  135. Method: http.MethodPost,
  136. Path: "/biService/sendMail",
  137. Handler: sendMailHandler(serverCtx),
  138. },
  139. {
  140. // bi通用接口
  141. Method: http.MethodPost,
  142. Path: "/biService/sqlManage",
  143. Handler: sqlManageHandler(serverCtx),
  144. },
  145. {
  146. // 客成线索移交
  147. Method: http.MethodPost,
  148. Path: "/biService/transferClueByPhone",
  149. Handler: transferClueSuccHandler(serverCtx),
  150. },
  151. {
  152. // 附件上传
  153. Method: http.MethodPost,
  154. Path: "/biService/upFile",
  155. Handler: upFileHandler(serverCtx),
  156. },
  157. },
  158. rest.WithMaxBytes(104857600),
  159. )
  160. }