networkmanage.api 9.8 KB

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