networkmanage.api 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. }
  64. AddOrUpdateReq {
  65. PositionId int64 `header:"positionId"`
  66. EntUserId int64 `header:"entUserId,optional"`
  67. EntId int64 `header:"entId,optional"`
  68. EntDeptId int64 `header:"entDeptId,optional"`
  69. Qyxy_id string `json:"qyxy_id,optional"`
  70. Company_id string `json:"company_id,optional"`
  71. Company_name string `json:"company_name,optional"`
  72. Contact_person string `json:"contact_person"`
  73. Contact_phone string `json:"contact_phone"`
  74. Introduce_owner_id string `json:"introduce_owner_id,optional"`
  75. Introduce_owner_qyxy_id string `json:"introduce_owner_qyxy_id,optional"`
  76. Introduce_owner_name string `json:"introduce_owner_name,optional"`
  77. Introduce_project_id string `json:"introduce_project_id,optional"`
  78. Introduce_project_name string `json:"introduce_project_name,optional"`
  79. Id int64 `json:"id,optional"`
  80. Type string `json:"type"`
  81. }
  82. AssociateReq {
  83. EntId int64 `header:"entId"`
  84. MgoUserId string `header:"mgoUserId"`
  85. EntAccountId int64 `header:"entAccountId"`
  86. EntName string `header:"entName"`
  87. Name string `json:"name"`
  88. Type string `json:"type"`
  89. }
  90. AllprojectReq {
  91. EntId int64 `header:"entId"`
  92. MgoUserId string `header:"mgoUserId"`
  93. EntAccountId int64 `header:"entAccountId"`
  94. PositionId int64 `header:"positionId"`
  95. Name string `json:"name,optional"`
  96. Type string `json:"type,optional"`
  97. Id string `json:"id,optional"`
  98. }
  99. NetWorkListReq {
  100. UserId string `header:"userId"`
  101. EntAccountId int64 `header:"entAccountId"`
  102. PositionId int64 `header:"positionId"`
  103. EntId int64 `header:"entId"`
  104. MgoUserId string `header:"mgoUserId"`
  105. Type string `json:"type,optional"`
  106. Name string `json:"name,optional"`
  107. Monitor int64 `json:"monitor,optional"`
  108. Starttime string `json:"starttime,optional"`
  109. Endtime string `json:"endtime,optional"`
  110. Order_amount int64 `json:"order_amount,optional"`
  111. Current_page int64 `json:"current_page,optional"`
  112. Page_size int64 `json:"page_size,optional"`
  113. Project_matchme int64 `json:"project_matchme,optional"`
  114. Buyercount_start int64 `json:"buyercount_start,optional"`
  115. Buyercount_end int64 `json:"buyercount_end,optional"`
  116. Monitorcount_start int64 `json:"monitorcount_start,optional"`
  117. Monitorcount_end int64 `json:"monitorcount_end,optional"`
  118. }
  119. InfoDetailReq {
  120. InfoId string `json:"infoId"`
  121. }
  122. PrjectHistoryReq {
  123. Source string `json:"source"`
  124. BuyerId string `json:"buyerId"`
  125. WinnerId string `json:"winnerId"`
  126. }
  127. RouteOwnerListReq {
  128. BuyerId string `json:"buyerId,optional"`
  129. BuyerName string `json:"buyerName,optional"`
  130. PositionId int64 `header:"positionId,optional"`
  131. }
  132. CooperateOwnerListReq {
  133. BuyerId string `json:"buyerId,optional"`
  134. BuyerName string `json:"buyerName,optional"`
  135. WinnerId string `json:"winnerId,optional"`
  136. WinnerName string `json:"winnerName,optional"`
  137. CooperateType string `json:"cooperateType,optional"`
  138. PositionId int64 `header:"positionId,optional"`
  139. }
  140. UpdateInitInfoReq {
  141. Business string `json:"business,optional"`
  142. Company string `json:"company,optional"`
  143. EntId int64 `header:"entId,optional"`
  144. MgoUserId string `header:"mgoUserId,optional"` //原userId
  145. NewUserId int64 `header:"newUserId"`
  146. AccountId int64 `header:"accountId,optional"`
  147. PositionId int64 `header:"positionId,optional"`
  148. PositionType int64 `header:"positionType,optional"`
  149. EntUserId int64 `header:"entUserId,optional"`
  150. EntRole int64 `header:"entRole,optional"`
  151. EntName string `header:"entName,optional"`
  152. EntDeptId int64 `header:"entDeptId,optional"`
  153. }
  154. FindInitInfoReq {
  155. EntId int64 `header:"entId,optional"`
  156. MgoUserId string `header:"mgoUserId,optional"` //原userId
  157. PositionType int64 `header:"positionType,optional"`
  158. NewUserId int64 `header:"newUserId"`
  159. AccountId int64 `header:"accountId,optional"`
  160. PositionId int64 `header:"positionId,optional"`
  161. EntUserId int64 `header:"entUserId,optional"`
  162. EntRole int64 `header:"entRole,optional"`
  163. }
  164. PrMonitorListReq {
  165. UserId string `header:"userId,optional"`
  166. PositionId int64 `header:"positionId,optional"`
  167. EntId int64 `header:"entId,optional"`
  168. PageSize int `json:"pageSize"`
  169. PageNum int `json:"pageNum"`
  170. }
  171. PrCollectListReq {
  172. UserId string `header:"userId,optional"`
  173. MgoUserId string `header:"mgoUserId,optional"`
  174. PositionId int64 `header:"positionId,optional"`
  175. EntId int64 `header:"entId,optional"`
  176. PageSize int `json:"pageSize"`
  177. PageNum int `json:"pageNum"`
  178. }
  179. )
  180. service networkManage {
  181. @doc "人脉可达潜客业主列表"
  182. @handler ownerList
  183. post /networkManage/owner/list (OwnerListReq) returns (Reply)
  184. @doc "人脉可达商机列表"
  185. @handler projectList
  186. post /networkManage/network/project/list (ProjectListReq) returns (Reply)
  187. @doc "项目公关渠道分析-项目名称联想"
  188. @handler PrPnameAss
  189. post /networkManage/pr/pname/ass (PnameAssReq) returns (Reply)
  190. @doc "项目公关渠道分析-与业主合作历史"
  191. @handler CoopHistoryList
  192. post /networkManage/pr/project/analyse (CoopHistoryReq) returns (Reply)
  193. @doc "人脉库-添加/修改人脉"
  194. @handler addOrUpdate
  195. post /networkManage/network/addOrUpdate (AddOrUpdateReq) returns (Reply)
  196. @doc "人脉库-业主名称联想"
  197. @handler associate
  198. post /networkManage/network/associate (AssociateReq) returns (Reply)
  199. @doc "人脉库-全部人脉项目"
  200. @handler allProject
  201. post /networkManage/network/allProject (AllprojectReq) returns (Reply)
  202. @doc "人脉库-列表"
  203. @handler networkList
  204. post /networkManage/network/networkList (NetWorkListReq) returns (Reply)
  205. @doc "情报详情"
  206. @handler infoDetail
  207. post /networkManage/infomation/detail (InfoDetailReq) returns (Reply)
  208. @doc "人脉项目分析-业主合作历史"
  209. @handler projectHistory
  210. post /networkManage/pr/project/history (PrjectHistoryReq) returns (Reply)
  211. @doc "可介绍业主路径"
  212. @handler ownerRoute
  213. post /networkManage/owner/route (RouteOwnerListReq) returns (Reply)
  214. @doc "可介绍业主合作次数"
  215. @handler ownerCooperate
  216. post /networkManage/owner/cooperate (CooperateOwnerListReq) returns (Reply)
  217. @doc "公关渠道-业主监控项目找人脉"
  218. @handler PrMonitorList
  219. post /networkManage/pr/monitor/list (PrMonitorListReq) returns (Reply)
  220. @doc "公关渠道-标讯收藏项目找人脉"
  221. @handler PrCollectList
  222. post /networkManage/pr/collect/list (PrCollectListReq) returns (Reply)
  223. @doc "初始化设置查看"
  224. @handler findInitInfo
  225. post /networkManage/init/findInitInfo (FindInitInfoReq) returns (Reply)
  226. @doc "初始化设置"
  227. @handler updateInitInfo
  228. post /networkManage/init/updateInitInfo (UpdateInitInfoReq) returns (Reply)
  229. }