소스 검색

人脉查询处理

WH01243 1 년 전
부모
커밋
283a240dd5
2개의 변경된 파일122개의 추가작업 그리고 0개의 파일을 삭제
  1. 40 0
      api/internal/handler/routes.go
  2. 82 0
      api/internal/types/types.go

+ 40 - 0
api/internal/handler/routes.go

@@ -72,6 +72,46 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/crmApplication/info/canAdd",
 				Handler: canAddReqHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/owner/List",
+				Handler: ownerListHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/network/project/list",
+				Handler: projectListHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/pr/pname/ass",
+				Handler: PrPnameAssHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/pr/coop/history",
+				Handler: CoopHistoryListHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/network/addOrUpdate",
+				Handler: addOrUpdateHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/network/associate",
+				Handler: associateHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/network/allproject",
+				Handler: allprojectHandler(serverCtx),
+			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/crmApplication/network/list",
+				Handler: listHandler(serverCtx),
+			},
 		},
 		rest.WithMaxBytes(104857600),
 	)

+ 82 - 0
api/internal/types/types.go

@@ -201,3 +201,85 @@ type CanAddReq struct {
 	EmployCustomId int64  `json:"employCustomId,optional"` //客户收录id
 	Key            string `json:"key"`                     //创建线索:more_create_clue 创建机会:more_create_chance 创建客户:more_create_custom
 }
+
+type OwnerListReq struct {
+	PartyA           string `json:"partyA,optional"`           //甲方
+	Supplier         string `json:"supplier,optional"`         //供应商
+	Heterotophy      string `json:"heterotophy,optional"`      //同甲异业
+	Intermediary     string `json:"intermediary,optional"`     //中间人
+	Agency           string `json:"agency,optional"`           //代理机构
+	SearchEntName    string `json:"searchEntName,optional"`    //搜索企业名称
+	SourceType       string `json:"sourceType,optional"`       //搜索类型 1 只看转介绍成功率高2只看已监控的
+	ProcessingStatus string `json:"processingStatus,optional"` //处理状态1未处理2已忽略3已建客户
+	Area             string `json:"area,optional"`             //项目地区
+	PositionId       int64  `header:"positionId,optional"`
+	PageSize         int64  `json:"pageSize,optional"`
+	PageIndex        int64  `json:"pageIndex,optional"`
+}
+
+type ProjectListReq struct {
+	PositionId   int64  `header:"positionId,optional"`
+	EntId        string `header:"entId,optional"`
+	EntUserId    string `header:"entUserId,optional"`
+	DeptId       string `header:"deptId,optional"` //部门id
+	PageNum      int64  `json:"pageNum"`
+	PageSize     int64  `json:"pageSize"`
+	BusinessType string `json:"businessType"`
+	SaleStatus   string `json:"saleStatus"`
+	ProjectName  string `json:"projectName"`
+	StartTime    int64  `json:"startTime"`
+	EntTime      int64  `json:"entTime"`
+	Area         string `json:"area"`
+	City         string `json:"city"`
+	District     string `json:"district"`
+	PropertyForm string `json:"propertyForm"`
+	SubClass     string `json:"subClass"`
+	Amount       string `json:"amount"`
+}
+
+type PnameAssReq struct {
+	ProjectName string `json:"projectName"`
+}
+
+type CoopHistoryReq struct {
+	Pid string `json:"porjectId"`
+}
+
+type AddOrUpdateReq struct {
+	PositionId             int64  `header:"positionId"`
+	EntUserId              int64  `header:"entUserId,optional"`
+	EntId                  int64  `header:"entId,optional"`
+	EntDeptId              int64  `header:"entDeptId,optional"`
+	Company_id             string `json:"company_id,optional"`
+	Company_name           string `json:"company_name,optional"`
+	Contact_person         string `json:"contact_person,optional"`
+	Contact_phone          string `json:"contact_phone,optional"`
+	Introduce_owner_id     string `json:"introduce_owner_id,optional"`
+	Introduce_owner_name   string `json:"introduce_owner_name,optional"`
+	Introduce_project_id   string `json:"introduce_project_id,optional"`
+	Introduce_project_name string `json:"introduce_project_name,optional"`
+	Id                     int64  `json:"id,optional"`
+	Type                   string `json:"type,optional"`
+}
+
+type AssociateReq struct {
+	Name string `json:"name"`
+	Type string `json:"type"`
+}
+
+type AllprojectReq struct {
+	PositionId int64  `header:"positionId"`
+	Name       string `json:"name,optional"`
+}
+
+type NetWorkListReq struct {
+	PositionId      int64  `header:"positionId"`
+	Type            string `json:"type,optional"`
+	Name            string `json:"name,optional"`
+	Monitor         string `json:"monitor,optional"`
+	Starttime       string `json:"starttime,optional"`
+	Endtime         string `json:"endtime,optional"`
+	Order_amount    string `json:"order_amount,optional"`
+	Current_page    string `json:"current_page,optional"`
+	Project_matchme string `json:"project_matchme,optional"`
+}