networkmanage.api 9.6 KB

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