|
@@ -8,8 +8,114 @@ type (
|
|
}
|
|
}
|
|
|
|
|
|
ClueAddReq {
|
|
ClueAddReq {
|
|
- AppId string `header:"appId,default=10000"`
|
|
|
|
- Base_user_id int64 `header:"base_user_id"`
|
|
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:"base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ CluesSource string `json:"cluesSource"` //线索来源
|
|
|
|
+ ClueName string `json:"clueName"` //线索名称
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
|
|
+ FollowUpTime int64 `json:"followUpTime"` //下次跟进时间(时间戳)
|
|
|
|
+ Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
+ User []string `json:"user"` //企业用户id
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ SaleChanceReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:"base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ ChanceName string `json:"chanceName"` //机会名称
|
|
|
|
+ Owner string `json:"owner"` //机会所有者
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
|
|
+ ChanceClassify string `json:"chanceClassify"` //机会分类
|
|
|
|
+ ExpectedOrderTime int64 `json:"expectedOrderTime"` //最初预计落单段时间 时间戳
|
|
|
|
+ ExpectedMoney int64 `json:"expectedOrderTime"` //最初预计落单金额
|
|
|
|
+ CustomName string `json:"customName"` //客户全称
|
|
|
|
+ BusinessType string `json:"businessType"` //业务类型
|
|
|
|
+ Remarks string `json:"remarks"` //备注
|
|
|
|
+ NextfollowUpTime int64 `json:"nextfollowUpTime"` //下次跟进时间戳
|
|
|
|
+ Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
+ User []string `json:"user"` //企业用户id
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ InfoOperateReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ InfoIdArr []string `json:"infoIdArr"` //信息id多条信息
|
|
|
|
+ IsEmploy bool `json:"isEmploy"` //是否收录true收录 false取消收录
|
|
|
|
+ SourceType int64 `json:"sourceType"` //来源方式来源;1:标讯信息 2:拟建项目
|
|
|
|
+ EmployType int64 `json:"employType"` //收录方式类型;1:线索处理 2:机会挖掘 3:任务复盘
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ CompanyOperateReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ CompanyId []string `json:"companyId"` //企业标识
|
|
|
|
+ IsEmploy bool `json:"IsEmploy"` //是否收录true收录false取消收录
|
|
|
|
+ SourceType int64 `json:"sourceType"` //来源;1:企业搜索 2:采购单位搜索
|
|
|
|
+ EmployType int64 `json:"employType"` //收录方式;1:检索 2:自动导入
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ TransferReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ EmplouIdArr []string `json:"emplouIdArr"`
|
|
|
|
+ PositionIdArr []string `json:"positionIdArr"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ IgnoreOperateReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ EmployIdArr []string `json:"employIdArr"` //收录记录集合
|
|
|
|
+ IsEmploy bool `json:"isEmploy"` //是否忽略 true 忽略 false取消忽略
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ InfoEmployinfoReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ EmployType int64 `json:"employType"` //1资讯收录2客户收录
|
|
|
|
+ Id string `json:"id"` //id
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ CustomAddReq {
|
|
|
|
+ AppId string `header:"appId,default=10000"`
|
|
|
|
+ BaseUserId int64 `header:" base_user_id"`
|
|
|
|
+ PositionId int64 `header:"positionId,optional"`
|
|
|
|
+ EntUserId int64 `header:"entUserId,optional"`
|
|
|
|
+ EntId int64 `header:"entId,optional"`
|
|
|
|
+ CustomType string `json:"customType"` //客户类型
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
|
|
+ CustomAllName string `json:"customAllName"` //客户全称
|
|
|
|
+ CustomAbbreviation string `json:"customAbbreviation"` //客户简称
|
|
|
|
+ CustomLevel string `json:"customLevel"` //客户级别
|
|
|
|
+ CustomIndustry string `json:"customIndustry"` //客户行业
|
|
|
|
+ CustomDetailIndustry string `json:"customDetailIndustry"` //客户细分行业
|
|
|
|
+ Province string `json:"province"` //省份
|
|
|
|
+ City string `json:"city"` //城市
|
|
|
|
+ District string `json:"district"` //地区
|
|
|
|
+ Address string `json:"address"` //详细地址
|
|
|
|
+ CompanyPhone string `json:"companyPhone"` //公司电话
|
|
|
|
+ NextfollowUpTime int64 `json:"nextfollowUpTime"` //下次跟进时间戳
|
|
|
|
+ Types string `json:"types"` //处理方式 1自办;2转办
|
|
|
|
+ User []string `json:"user"` //转办用户
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -17,4 +123,25 @@ service crmApplication {
|
|
@doc "添加线索"
|
|
@doc "添加线索"
|
|
@handler clueAdd
|
|
@handler clueAdd
|
|
post /crmApplication/clue/add (ClueAddReq) returns (Reply)
|
|
post /crmApplication/clue/add (ClueAddReq) returns (Reply)
|
|
|
|
+ @doc "创建销售机会"
|
|
|
|
+ @handler saleChanceAdd
|
|
|
|
+ post /crmApplication/saleChance/add (SaleChanceReq) returns (Reply)
|
|
|
|
+ @doc "标讯收录操作"
|
|
|
|
+ @handler infoOperate
|
|
|
|
+ post /crmApplication/infoEmploy/operate (InfoOperateReq) returns (Reply)
|
|
|
|
+ @doc "客户收录操作"
|
|
|
|
+ @handler companyOperate
|
|
|
|
+ post /crmApplication/companyEmploy/operate (CompanyOperateReq) returns (Reply)
|
|
|
|
+ @doc "商业资讯的转办"
|
|
|
|
+ @handler transfer
|
|
|
|
+ post /crmApplication/information/transfer (TransferReq) returns (Reply)
|
|
|
|
+ @doc "忽略操作"
|
|
|
|
+ @handler ignoreOperate
|
|
|
|
+ post /crmApplication/ignore/operate (IgnoreOperateReq) returns (Reply)
|
|
|
|
+ @doc "收录情况"
|
|
|
|
+ @handler infoEmployinfo
|
|
|
|
+ post /crmApplication/infoEmploy/info (InfoEmployinfoReq) returns (Reply)
|
|
|
|
+ @doc "创建客户"
|
|
|
|
+ @handler customAdd
|
|
|
|
+ post /crmApplication/custom/add (CustomAddReq) returns (Reply)
|
|
}
|
|
}
|