networkmanage.api 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. syntax = "v1"
  2. type (
  3. Reply {
  4. Error_code int64 `json:"error_code"`
  5. Error_msg string `json:"error_msg"`
  6. Data interface{} `json:"data"`
  7. }
  8. OwnerListReq {
  9. PartyA string `json:"partyA,optional"` //甲方
  10. Supplier string `json:"supplier,optional"` //供应商
  11. Heterotophy string `json:"heterotophy,optional"` //同甲异业
  12. Intermediary string `json:"intermediary,optional"` //中间人
  13. Agency string `json:"agency,optional"` //代理机构
  14. SearchEntName string `json:"searchEntName,optional"` //搜索企业名称
  15. SourceType string `json:"sourceType,optional"` //搜索类型 1 只看转介绍成功率高2只看已监控的
  16. ProcessingStatus string `json:"processingStatus,optional"` //处理状态1未处理2已忽略3已建客户
  17. Area string `json:"area,optional"` //项目地区
  18. PositionId int64 `header:"positionId,optional"`
  19. PageSize int64 `json:"pageSize,optional"`
  20. PageIndex int64 `json:"pageIndex,optional"`
  21. ProjectType string `json:"projectType,optional"`
  22. EntAccountId int64 `header:"entAccountId"`
  23. EntId int64 `header:"entId,optional"`
  24. MgoUserId string `header:"mgoUserId,optional"` //原userId
  25. }
  26. ProjectListReq {
  27. UserId string `header:"userId,optional"`
  28. PositionId int64 `header:"positionId,optional"`
  29. EntId string `header:"entId,optional"`
  30. EntUserId string `header:"entUserId,optional"`
  31. DeptId string `header:"deptId,optional"` //部门id
  32. PartyA string `json:"partyA,optional"` //甲方
  33. Supplier string `json:"supplier,optional"` //供应商
  34. Heterotophy string `json:"heterotophy,optional"` //同甲异业
  35. Intermediary string `json:"intermediary,optional"` //中间人
  36. Agency string `json:"agency,optional"` //代理机构
  37. PageNum int `json:"pageNum"`
  38. PageSize int `json:"pageSize"`
  39. BusinessType string `json:"businessType"`
  40. SaleStatus string `json:"saleStatus"`
  41. ProjectName string `json:"projectName,optional"`
  42. StartTime int64 `json:"startTime,optional"`
  43. EntTime int64 `json:"entTime,optional"`
  44. Area string `json:"area,optional"`
  45. City string `json:"city,optional"`
  46. District string `json:"district,optional"`
  47. PropertyForm string `json:"propertyForm,optional"`
  48. SubClass string `json:"subClass,optional"`
  49. Amount string `json:"amount,optional"`
  50. }
  51. PnameAssReq {
  52. ProjectName string `json:"projectName"`
  53. }
  54. CoopHistoryReq {
  55. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  56. PositionId int64 `header:"positionId,optional"`
  57. EntId int64 `header:"entId,optional"`
  58. EntUserId string `header:"entUserId,optional"`
  59. DeptId string `header:"deptId,optional"` //部门id
  60. Pid string `json:"projectId,optional"`
  61. Bid string `json:"infoId,optional"`
  62. ChannelType string `json:"channelType"`
  63. Buyer string `json:"buyer,optional"`
  64. }
  65. AddOrUpdateReq {
  66. PositionId int64 `header:"positionId"`
  67. EntUserId int64 `header:"entUserId,optional"`
  68. EntId int64 `header:"entId,optional"`
  69. EntDeptId int64 `header:"entDeptId,optional"`
  70. Qyxy_id string `json:"qyxy_id,optional"`
  71. Company_id string `json:"company_id,optional"`
  72. Company_name string `json:"company_name,optional"`
  73. Contact_person string `json:"contact_person"`
  74. Contact_phone string `json:"contact_phone"`
  75. Introduce_owner_id string `json:"introduce_owner_id,optional"`
  76. Introduce_owner_qyxy_id string `json:"introduce_owner_qyxy_id,optional"`
  77. Introduce_owner_name string `json:"introduce_owner_name,optional"`
  78. Introduce_project_id string `json:"introduce_project_id,optional"`
  79. Introduce_project_name string `json:"introduce_project_name,optional"`
  80. Id int64 `json:"id,optional"`
  81. Type string `json:"type"`
  82. }
  83. AssociateReq {
  84. EntId int64 `header:"entId"`
  85. MgoUserId string `header:"mgoUserId"`
  86. EntAccountId int64 `header:"entAccountId"`
  87. EntName string `header:"entName"`
  88. Name string `json:"name"`
  89. Type string `json:"type"`
  90. }
  91. AllprojectReq {
  92. EntId int64 `header:"entId"`
  93. MgoUserId string `header:"mgoUserId"`
  94. EntAccountId int64 `header:"entAccountId"`
  95. PositionId int64 `header:"positionId"`
  96. Name string `json:"name,optional"`
  97. Type string `json:"type,optional"`
  98. Id string `json:"id,optional"`
  99. }
  100. NetWorkListReq {
  101. UserId string `header:"userId"`
  102. EntAccountId int64 `header:"entAccountId"`
  103. PositionId int64 `header:"positionId"`
  104. EntId int64 `header:"entId"`
  105. MgoUserId string `header:"mgoUserId"`
  106. Type string `json:"type,optional"`
  107. Name string `json:"name,optional"`
  108. Monitor int64 `json:"monitor,optional"`
  109. Starttime string `json:"starttime,optional"`
  110. Endtime string `json:"endtime,optional"`
  111. Order_amount int64 `json:"order_amount,optional"`
  112. Current_page int64 `json:"current_page,optional"`
  113. Page_size int64 `json:"page_size,optional"`
  114. Project_matchme int64 `json:"project_matchme,optional"`
  115. Buyercount_start int64 `json:"buyercount_start,optional"`
  116. Buyercount_end int64 `json:"buyercount_end,optional"`
  117. Monitorcount_start int64 `json:"monitorcount_start,optional"`
  118. Monitorcount_end int64 `json:"monitorcount_end,optional"`
  119. }
  120. InfoDetailReq {
  121. InfoId string `json:"infoId"`
  122. }
  123. PrjectHistoryReq {
  124. Source string `json:"source"`
  125. BuyerId string `json:"buyerId"`
  126. WinnerId string `json:"winnerId"`
  127. }
  128. RouteOwnerListReq {
  129. BuyerId string `json:"buyerId,optional"`
  130. BuyerName string `json:"buyerName,optional"`
  131. PositionId int64 `header:"positionId,optional"`
  132. }
  133. CooperateOwnerListReq {
  134. BuyerId string `json:"buyerId,optional"`
  135. BuyerName string `json:"buyerName,optional"`
  136. WinnerId string `json:"winnerId,optional"`
  137. WinnerName string `json:"winnerName,optional"`
  138. CooperateType string `json:"cooperateType,optional"`
  139. PositionId int64 `header:"positionId,optional"`
  140. }
  141. UpdateInitInfoReq {
  142. Business string `json:"business,optional"`
  143. Company string `json:"company,optional"`
  144. EntId int64 `header:"entId,optional"`
  145. MgoUserId string `header:"mgoUserId,optional"` //原userId
  146. NewUserId int64 `header:"newUserId"`
  147. AccountId int64 `header:"accountId,optional"`
  148. PositionId int64 `header:"positionId,optional"`
  149. PositionType int64 `header:"positionType,optional"`
  150. EntUserId int64 `header:"entUserId,optional"`
  151. EntRole int64 `header:"entRole,optional"`
  152. EntName string `header:"entName,optional"`
  153. EntDeptId int64 `header:"entDeptId,optional"`
  154. }
  155. FindInitInfoReq {
  156. EntId int64 `header:"entId,optional"`
  157. MgoUserId string `header:"mgoUserId,optional"` //原userId
  158. PositionType int64 `header:"positionType,optional"`
  159. NewUserId int64 `header:"newUserId"`
  160. AccountId int64 `header:"accountId,optional"`
  161. PositionId int64 `header:"positionId,optional"`
  162. EntUserId int64 `header:"entUserId,optional"`
  163. EntRole int64 `header:"entRole,optional"`
  164. }
  165. PrMonitorListReq {
  166. UserId string `header:"userId,optional"`
  167. PositionId int64 `header:"positionId,optional"`
  168. EntId int64 `header:"entId,optional"`
  169. PageSize int `json:"pageSize"`
  170. PageNum int `json:"pageNum"`
  171. }
  172. PrCollectListReq {
  173. UserId string `header:"userId,optional"`
  174. MgoUserId string `header:"mgoUserId,optional"`
  175. PositionId int64 `header:"positionId,optional"`
  176. EntId int64 `header:"entId,optional"`
  177. PageSize int `json:"pageSize"`
  178. PageNum int `json:"pageNum"`
  179. }
  180. DeleteCacheInfoReq {
  181. PositionId int64 `header:"positionId,optional"`
  182. }
  183. )
  184. service networkManage {
  185. @doc "人脉可达潜客业主列表"
  186. @handler ownerList
  187. post /networkManage/owner/list (OwnerListReq) returns (Reply)
  188. @doc "人脉可达商机列表"
  189. @handler projectList
  190. post /networkManage/network/project/list (ProjectListReq) returns (Reply)
  191. @doc "项目公关渠道分析-项目名称联想"
  192. @handler PrPnameAss
  193. post /networkManage/pr/pname/ass (PnameAssReq) returns (Reply)
  194. @doc "项目公关渠道分析-与业主合作历史"
  195. @handler CoopHistoryList
  196. post /networkManage/pr/project/analyse (CoopHistoryReq) returns (Reply)
  197. @doc "人脉库-添加/修改人脉"
  198. @handler addOrUpdate
  199. post /networkManage/network/addOrUpdate (AddOrUpdateReq) returns (Reply)
  200. @doc "人脉库-业主名称联想"
  201. @handler associate
  202. post /networkManage/network/associate (AssociateReq) returns (Reply)
  203. @doc "人脉库-全部人脉项目"
  204. @handler allProject
  205. post /networkManage/network/allProject (AllprojectReq) returns (Reply)
  206. @doc "人脉库-列表"
  207. @handler networkList
  208. post /networkManage/network/networkList (NetWorkListReq) returns (Reply)
  209. @doc "情报详情"
  210. @handler infoDetail
  211. post /networkManage/infomation/detail (InfoDetailReq) returns (Reply)
  212. @doc "人脉项目分析-业主合作历史"
  213. @handler projectHistory
  214. post /networkManage/pr/project/history (PrjectHistoryReq) returns (Reply)
  215. @doc "可介绍业主路径"
  216. @handler ownerRoute
  217. post /networkManage/owner/route (RouteOwnerListReq) returns (Reply)
  218. @doc "可介绍业主合作次数"
  219. @handler ownerCooperate
  220. post /networkManage/owner/cooperate (CooperateOwnerListReq) returns (Reply)
  221. @doc "公关渠道-业主监控项目找人脉"
  222. @handler PrMonitorList
  223. post /networkManage/pr/monitor/list (PrMonitorListReq) returns (Reply)
  224. @doc "公关渠道-标讯收藏项目找人脉"
  225. @handler PrCollectList
  226. post /networkManage/pr/collect/list (PrCollectListReq) returns (Reply)
  227. @doc "初始化设置查看"
  228. @handler findInitInfo
  229. post /networkManage/init/findInitInfo (FindInitInfoReq) returns (Reply)
  230. @doc "初始化设置"
  231. @handler updateInitInfo
  232. post /networkManage/init/updateInitInfo (UpdateInitInfoReq) returns (Reply)
  233. @doc "删除缓存"
  234. @handler deleteCache
  235. post /networkManage/deleteCache (DeleteCacheInfoReq) returns (Reply)
  236. @doc "获取企业名单"
  237. @handler entNameList
  238. get /networkManage/getEntNameList returns (Reply)
  239. }