|
@@ -13,88 +13,74 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
server.AddRoutes(
|
|
|
[]rest.Route{
|
|
|
{
|
|
|
- // 情报详情
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/infomation/detail",
|
|
|
- Handler: infoDetailHandler(serverCtx),
|
|
|
+ Path: "/networkManage/owner/list",
|
|
|
+ Handler: ownerListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉库-添加/修改人脉
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/network/addOrUpdate",
|
|
|
- Handler: addOrUpdateHandler(serverCtx),
|
|
|
+ Path: "/networkManage/network/project/list",
|
|
|
+ Handler: projectListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉库-全部人脉项目
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/network/allProject",
|
|
|
- Handler: allProjectHandler(serverCtx),
|
|
|
+ Path: "/networkManage/pr/pname/ass",
|
|
|
+ Handler: PrPnameAssHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉库-业主名称联想
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/network/associate",
|
|
|
- Handler: associateHandler(serverCtx),
|
|
|
+ Path: "/networkManage/pr/project/analyse",
|
|
|
+ Handler: CoopHistoryListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉库-列表
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/network/networkList",
|
|
|
- Handler: networkListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/network/addOrUpdate",
|
|
|
+ Handler: addOrUpdateHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉可达商机列表
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/network/project/list",
|
|
|
- Handler: projectListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/network/associate",
|
|
|
+ Handler: associateHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 可介绍业主合作次数
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/owner/cooperate",
|
|
|
- Handler: ownerCooperateHandler(serverCtx),
|
|
|
+ Path: "/networkManage/network/allProject",
|
|
|
+ Handler: allProjectHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉可达潜客业主列表
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/owner/list",
|
|
|
- Handler: ownerListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/network/networkList",
|
|
|
+ Handler: networkListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 可介绍业主路径
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/owner/route",
|
|
|
- Handler: ownerRouteHandler(serverCtx),
|
|
|
+ Path: "/networkManage/infomation/detail",
|
|
|
+ Handler: infoDetailHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 公关渠道-标讯收藏项目找人脉
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/pr/collect/list",
|
|
|
- Handler: PrCollectListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/pr/project/history",
|
|
|
+ Handler: projectHistoryHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 公关渠道-业主监控项目找人脉
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/pr/monitor/list",
|
|
|
- Handler: PrMonitorListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/owner/route",
|
|
|
+ Handler: ownerRouteHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 项目公关渠道分析-项目名称联想
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/pr/pname/ass",
|
|
|
- Handler: PrPnameAssHandler(serverCtx),
|
|
|
+ Path: "/networkManage/owner/cooperate",
|
|
|
+ Handler: ownerCooperateHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 项目公关渠道分析-与业主合作历史
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/pr/project/analyse",
|
|
|
- Handler: CoopHistoryListHandler(serverCtx),
|
|
|
+ Path: "/networkManage/pr/monitor/list",
|
|
|
+ Handler: PrMonitorListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
- // 人脉项目分析-业主合作历史
|
|
|
Method: http.MethodPost,
|
|
|
- Path: "/networkManage/pr/project/history",
|
|
|
- Handler: projectHistoryHandler(serverCtx),
|
|
|
+ Path: "/networkManage/pr/collect/list",
|
|
|
+ Handler: PrCollectListHandler(serverCtx),
|
|
|
},
|
|
|
{
|
|
|
Method: http.MethodPost,
|