networkmanage.api 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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 int64 `header:"entId,optional"`
  30. EntUserId int64 `header:"entUserId,optional"`
  31. DeptId int64 `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. CheckCode string `json:"checkCode,optional"`
  100. ClickId string `json:"clickId,optional"`
  101. }
  102. NetWorkListReq {
  103. UserId string `header:"userId"`
  104. EntAccountId int64 `header:"entAccountId"`
  105. PositionId int64 `header:"positionId"`
  106. EntId int64 `header:"entId"`
  107. MgoUserId string `header:"mgoUserId"`
  108. Type string `json:"type,optional"`
  109. Name string `json:"name,optional"`
  110. Monitor int64 `json:"monitor,optional"`
  111. Starttime string `json:"starttime,optional"`
  112. Endtime string `json:"endtime,optional"`
  113. Order_amount int64 `json:"order_amount,optional"`
  114. Current_page int64 `json:"current_page,optional"`
  115. Page_size int64 `json:"page_size,optional"`
  116. Project_matchme int64 `json:"project_matchme,optional"`
  117. Buyercount_start int64 `json:"buyercount_start,optional"`
  118. Buyercount_end int64 `json:"buyercount_end,optional"`
  119. Monitorcount_start int64 `json:"monitorcount_start,optional"`
  120. Monitorcount_end int64 `json:"monitorcount_end,optional"`
  121. }
  122. InfoDetailReq {
  123. InfoId string `json:"infoId"`
  124. }
  125. PrjectHistoryReq {
  126. Source string `json:"source"`
  127. BuyerId string `json:"buyerId"`
  128. WinnerId string `json:"winnerId"`
  129. }
  130. RouteOwnerListReq {
  131. BuyerId string `json:"buyerId,optional"`
  132. BuyerName string `json:"buyerName,optional"`
  133. PositionId int64 `header:"positionId,optional"`
  134. }
  135. CooperateOwnerListReq {
  136. BuyerId string `json:"buyerId,optional"`
  137. BuyerName string `json:"buyerName,optional"`
  138. WinnerId string `json:"winnerId,optional"`
  139. WinnerName string `json:"winnerName,optional"`
  140. CooperateType string `json:"cooperateType,optional"`
  141. PositionId int64 `header:"positionId,optional"`
  142. }
  143. UpdateInitInfoReq {
  144. Business string `json:"business,optional"`
  145. Company string `json:"company,optional"`
  146. EntId int64 `header:"entId,optional"`
  147. MgoUserId string `header:"mgoUserId,optional"` //原userId
  148. NewUserId int64 `header:"newUserId"`
  149. AccountId int64 `header:"accountId,optional"`
  150. PositionId int64 `header:"positionId,optional"`
  151. PositionType int64 `header:"positionType,optional"`
  152. EntUserId int64 `header:"entUserId,optional"`
  153. EntRole int64 `header:"entRole,optional"`
  154. EntName string `header:"entName,optional"`
  155. EntDeptId int64 `header:"entDeptId,optional"`
  156. }
  157. FindInitInfoReq {
  158. EntId int64 `header:"entId,optional"`
  159. MgoUserId string `header:"mgoUserId,optional"` //原userId
  160. PositionType int64 `header:"positionType,optional"`
  161. NewUserId int64 `header:"newUserId"`
  162. AccountId int64 `header:"accountId,optional"`
  163. PositionId int64 `header:"positionId,optional"`
  164. EntUserId int64 `header:"entUserId,optional"`
  165. EntRole int64 `header:"entRole,optional"`
  166. }
  167. PrMonitorListReq {
  168. UserId string `header:"userId,optional"`
  169. PositionId int64 `header:"positionId,optional"`
  170. EntId int64 `header:"entId,optional"`
  171. PageSize int `json:"pageSize"`
  172. PageNum int `json:"pageNum"`
  173. }
  174. PrCollectListReq {
  175. UserId string `header:"userId,optional"`
  176. MgoUserId string `header:"mgoUserId,optional"`
  177. PositionId int64 `header:"positionId,optional"`
  178. EntId int64 `header:"entId,optional"`
  179. PageSize int `json:"pageSize"`
  180. PageNum int `json:"pageNum"`
  181. }
  182. DeleteCacheInfoReq {
  183. PositionId int64 `header:"positionId,optional"`
  184. }
  185. )
  186. service networkManage {
  187. @doc "人脉可达潜客业主列表"
  188. @handler ownerList
  189. post /networkManage/owner/list (OwnerListReq) returns (Reply)
  190. @doc "人脉可达商机列表"
  191. @handler projectList
  192. post /networkManage/network/project/list (ProjectListReq) returns (Reply)
  193. @doc "项目公关渠道分析-项目名称联想"
  194. @handler PrPnameAss
  195. post /networkManage/pr/pname/ass (PnameAssReq) returns (Reply)
  196. @doc "项目公关渠道分析-与业主合作历史"
  197. @handler CoopHistoryList
  198. post /networkManage/pr/project/analyse (CoopHistoryReq) returns (Reply)
  199. @doc "人脉库-添加/修改人脉"
  200. @handler addOrUpdate
  201. post /networkManage/network/addOrUpdate (AddOrUpdateReq) returns (Reply)
  202. @doc "人脉库-业主名称联想"
  203. @handler associate
  204. post /networkManage/network/associate (AssociateReq) returns (Reply)
  205. @doc "人脉库-全部人脉项目"
  206. @handler allProject
  207. post /networkManage/network/allProject (AllprojectReq) returns (Reply)
  208. @doc "人脉库-列表"
  209. @handler networkList
  210. post /networkManage/network/networkList (NetWorkListReq) returns (Reply)
  211. @doc "情报详情"
  212. @handler infoDetail
  213. post /networkManage/infomation/detail (InfoDetailReq) returns (Reply)
  214. @doc "人脉项目分析-业主合作历史"
  215. @handler projectHistory
  216. post /networkManage/pr/project/history (PrjectHistoryReq) returns (Reply)
  217. @doc "可介绍业主路径"
  218. @handler ownerRoute
  219. post /networkManage/owner/route (RouteOwnerListReq) returns (Reply)
  220. @doc "可介绍业主合作次数"
  221. @handler ownerCooperate
  222. post /networkManage/owner/cooperate (CooperateOwnerListReq) returns (Reply)
  223. @doc "公关渠道-业主监控项目找人脉"
  224. @handler PrMonitorList
  225. post /networkManage/pr/monitor/list (PrMonitorListReq) returns (Reply)
  226. @doc "公关渠道-标讯收藏项目找人脉"
  227. @handler PrCollectList
  228. post /networkManage/pr/collect/list (PrCollectListReq) returns (Reply)
  229. @doc "初始化设置查看"
  230. @handler findInitInfo
  231. post /networkManage/init/findInitInfo (FindInitInfoReq) returns (Reply)
  232. @doc "初始化设置"
  233. @handler updateInitInfo
  234. post /networkManage/init/updateInitInfo (UpdateInitInfoReq) returns (Reply)
  235. @doc "删除缓存"
  236. @handler deleteCache
  237. post /networkManage/deleteCache (DeleteCacheInfoReq) returns (Reply)
  238. @doc "获取企业名单"
  239. @handler entNameList
  240. get /networkManage/getEntNameList returns (Reply)
  241. }