|
@@ -6,7 +6,6 @@ type (
|
|
Error_msg string `json:"error_msg"`
|
|
Error_msg string `json:"error_msg"`
|
|
Data interface{} `json:"data"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
}
|
|
-
|
|
|
|
ClueAddReq {
|
|
ClueAddReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -15,16 +14,16 @@ type (
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
- CluesSource string `json:"cluesSource"` //线索来源
|
|
|
|
- ClueName string `json:"clueName"` //线索名称
|
|
|
|
- Summary string `json:"summary"` //概要信息
|
|
|
|
|
|
+ CluesSource string `json:"cluesSource"` //线索来源
|
|
|
|
+ ClueName string `json:"clueName"` //线索名称
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
FollowUpTime int64 `json:"followUpTime,optional"` //下次跟进时间(时间戳)
|
|
FollowUpTime int64 `json:"followUpTime,optional"` //下次跟进时间(时间戳)
|
|
- Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
- User []int64 `json:"user,optional"` //企业用户id
|
|
|
|
|
|
+ Types int64 `json:"types"` //处理方式 1自办;2转办;3待处理
|
|
|
|
+ User []int64 `json:"user,optional"` //企业用户id
|
|
EmployInfoId int64 `json:"employInfoId,optional"` //资讯收录id
|
|
EmployInfoId int64 `json:"employInfoId,optional"` //资讯收录id
|
|
- CreateName string `json:"createName"` //创建人
|
|
|
|
|
|
+ CreateName string `json:"createName"` //创建人
|
|
|
|
+ Channel string `json:"channel"` //渠道来源:网页、手动创建
|
|
}
|
|
}
|
|
-
|
|
|
|
SaleChanceReq {
|
|
SaleChanceReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -33,35 +32,33 @@ type (
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
- ChanceName string `json:"chanceName"` //机会名称
|
|
|
|
- Summary string `json:"summary"` //概要信息
|
|
|
|
- ChanceClassify int64 `json:"chanceClassify"` //机会分类
|
|
|
|
|
|
+ ChanceName string `json:"chanceName"` //机会名称
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
|
|
+ ChanceClassify int64 `json:"chanceClassify"` //机会分类
|
|
ExpectedOrderTime int64 `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
|
|
ExpectedOrderTime int64 `json:"expectedOrderTime,optional"` //最初预计落单段时间 时间戳
|
|
- ExpectedMoney float64 `json:"expectedMoney,optional"` //最初预计落单金额
|
|
|
|
- CustomName string `json:"customName"` //客户全称
|
|
|
|
- BusinessType int64 `json:"businessType"` //业务类型 1新客户需求 2老客户需求 3简易项目流程
|
|
|
|
- Remarks string `json:"remarks,optional"` //备注
|
|
|
|
- NextfollowUpTime int64 `json:"nextfollowUpTime,optional"` //下次跟进时间戳
|
|
|
|
- Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
- User []int64 `json:"user,optional"` //企业用户id
|
|
|
|
- EmployInfoId int64 `json:"employInfoId,optional"` //资讯收录id
|
|
|
|
- CustomId int64 `json:"customId,optional"` //客户id
|
|
|
|
- CreateName string `json:"createName"` //创建人
|
|
|
|
- ChanceSource int64 `json:"chanceSource"` //机会来源
|
|
|
|
|
|
+ ExpectedMoney float64 `json:"expectedMoney,optional"` //最初预计落单金额
|
|
|
|
+ CustomName string `json:"customName"` //客户全称
|
|
|
|
+ BusinessType int64 `json:"businessType"` //业务类型 1新客户需求 2老客户需求 3简易项目流程
|
|
|
|
+ Remarks string `json:"remarks,optional"` //备注
|
|
|
|
+ NextfollowUpTime int64 `json:"nextfollowUpTime,optional"` //下次跟进时间戳
|
|
|
|
+ Types int64 `json:"types"` //处理方式 1自办;2转办;3待处理
|
|
|
|
+ User []int64 `json:"user,optional"` //企业用户id
|
|
|
|
+ EmployInfoId int64 `json:"employInfoId,optional"` //资讯收录id
|
|
|
|
+ CustomId int64 `json:"customId,optional"` //客户id
|
|
|
|
+ CreateName string `json:"createName"` //创建人
|
|
|
|
+ ChanceSource int64 `json:"chanceSource"` //机会来源
|
|
}
|
|
}
|
|
-
|
|
|
|
EmployOperateReq {
|
|
EmployOperateReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
- IdArr string `json:"idArr"` //信息id多条信息
|
|
|
|
- IsEmploy bool `json:"isEmploy"` //是否收录true收录 false取消收录
|
|
|
|
|
|
+ IdArr string `json:"idArr"` //信息id多条信息
|
|
|
|
+ IsEmploy bool `json:"isEmploy"` //是否收录true收录 false取消收录
|
|
EmployType int64 `json:"employType"` //来源方式来源;1招标采购、2企业、3采购单位、4拟在建项目
|
|
EmployType int64 `json:"employType"` //来源方式来源;1招标采购、2企业、3采购单位、4拟在建项目
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
}
|
|
}
|
|
-
|
|
|
|
TransferReq {
|
|
TransferReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -71,18 +68,16 @@ type (
|
|
EmplouIdArr []string `json:"emplouIdArr"`
|
|
EmplouIdArr []string `json:"emplouIdArr"`
|
|
PositionIdArr []string `json:"positionIdArr"`
|
|
PositionIdArr []string `json:"positionIdArr"`
|
|
}
|
|
}
|
|
-
|
|
|
|
IgnoreOperateReq {
|
|
IgnoreOperateReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
- IdArr string `json:"idArr"` //id集合
|
|
|
|
- IsIgnore bool `json:"isIgnore"` //是否忽略 true 忽略 false取消忽略
|
|
|
|
|
|
+ IdArr string `json:"idArr"` //id集合
|
|
|
|
+ IsIgnore bool `json:"isIgnore"` //是否忽略 true 忽略 false取消忽略
|
|
EmployType int64 `json:"employType"` //来源方式来源;1招标采购、2企业、3采购单位、4拟在建项目
|
|
EmployType int64 `json:"employType"` //来源方式来源;1招标采购、2企业、3采购单位、4拟在建项目
|
|
}
|
|
}
|
|
-
|
|
|
|
InfoEmployinfoReq {
|
|
InfoEmployinfoReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -90,11 +85,10 @@ type (
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EmployType int64 `json:"employType"` //1标采购、2企业、3采购单位、4拟在建项目
|
|
EmployType int64 `json:"employType"` //1标采购、2企业、3采购单位、4拟在建项目
|
|
- IdArr string `json:"idArr"` //id
|
|
|
|
|
|
+ IdArr string `json:"idArr"` //id
|
|
EntNicheDis int64 `header:"entNicheDis,optional"`
|
|
EntNicheDis int64 `header:"entNicheDis,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
}
|
|
}
|
|
-
|
|
|
|
CustomAddReq {
|
|
CustomAddReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -103,27 +97,27 @@ type (
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
- CustomType int64 `json:"customType"` //客户类型
|
|
|
|
- Summary string `json:"summary"` //概要信息
|
|
|
|
- CustomAllName string `json:"customAllName"` //客户全称
|
|
|
|
- CustomAbbreviation string `json:"customAbbreviation"` //客户简称
|
|
|
|
- CustomLevel int64 `json:"customLevel,optional"` //客户级别
|
|
|
|
- CustomIndustry int64 `json:"customIndustry"` //客户行业
|
|
|
|
- CustomDetailIndustry int64 `json:"customDetailIndustry"` //客户细分行业
|
|
|
|
- Province string `json:"province,optional"` //省份
|
|
|
|
- City string `json:"city,optional"` //城市
|
|
|
|
- District string `json:"district,optional"` //地区
|
|
|
|
- Address string `json:"address,optional"` //详细地址
|
|
|
|
- CompanyPhone string `json:"companyPhone,optional"` //公司电话
|
|
|
|
- NextfollowUpTime int64 `json:"nextfollowUpTime,optional"` //下次跟进时间戳
|
|
|
|
- Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
- User []int64 `json:"user,optional"` //转办用户
|
|
|
|
|
|
+ CustomType int64 `json:"customType"` //客户类型
|
|
|
|
+ Summary string `json:"summary"` //概要信息
|
|
|
|
+ CustomAllName string `json:"customAllName"` //客户全称
|
|
|
|
+ CustomAbbreviation string `json:"customAbbreviation"` //客户简称
|
|
|
|
+ CustomLevel int64 `json:"customLevel,optional"` //客户级别
|
|
|
|
+ CustomIndustry int64 `json:"customIndustry"` //客户行业
|
|
|
|
+ CustomDetailIndustry int64 `json:"customDetailIndustry"` //客户细分行业
|
|
|
|
+ Province string `json:"province,optional"` //省份
|
|
|
|
+ City string `json:"city,optional"` //城市
|
|
|
|
+ District string `json:"district,optional"` //地区
|
|
|
|
+ Address string `json:"address,optional"` //详细地址
|
|
|
|
+ CompanyPhone string `json:"companyPhone,optional"` //公司电话
|
|
|
|
+ NextfollowUpTime int64 `json:"nextfollowUpTime,optional"` //下次跟进时间戳
|
|
|
|
+ Types int64 `json:"types"` //处理方式 1自办;2转办
|
|
|
|
+ User []int64 `json:"user,optional"` //转办用户
|
|
EmployCustomId int64 `json:"employCustomId,optional,optional"` //客户收录id
|
|
EmployCustomId int64 `json:"employCustomId,optional,optional"` //客户收录id
|
|
- EmployInfoId int64 `json:"employInfoId,optional,optional"` //资讯收录id
|
|
|
|
- Remarks string `json:"remarks,optional"` //备注
|
|
|
|
- CreateName string `json:"createName"` //创建人
|
|
|
|
|
|
+ EmployInfoId int64 `json:"employInfoId,optional,optional"` //资讯收录id
|
|
|
|
+ Remarks string `json:"remarks,optional"` //备注
|
|
|
|
+ CreateName string `json:"createName"` //创建人
|
|
|
|
+ Source string `json:"source"` //来源
|
|
}
|
|
}
|
|
-
|
|
|
|
FileUploadReq {
|
|
FileUploadReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -131,8 +125,8 @@ type (
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
BusinessId int64 `form:"businessId"` //业务id
|
|
BusinessId int64 `form:"businessId"` //业务id
|
|
- Types int64 `form:"type"` //类型;1:跟进记录-线下 2:跟进记录-线上 3:跟进记录-备忘 4:销售机会-项目文档 5:客户-客户档案
|
|
|
|
- FileType int64 `form:"fileType"` //文件类型,产品介绍、项目方案、立项报告、报价文件、招标文件、投标文件、中标通知书、合同、发票、其他文件
|
|
|
|
|
|
+ Types int64 `form:"type"` //类型;1:跟进记录-线下 2:跟进记录-线上 3:跟进记录-备忘 4:销售机会-项目文档 5:客户-客户档案
|
|
|
|
+ FileType int64 `form:"fileType"` //文件类型,产品介绍、项目方案、立项报告、报价文件、招标文件、投标文件、中标通知书、合同、发票、其他文件
|
|
}
|
|
}
|
|
EmployDistributeReq {
|
|
EmployDistributeReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
@@ -153,21 +147,19 @@ type (
|
|
EntInfoReq {
|
|
EntInfoReq {
|
|
EntName string `json:"entName"`
|
|
EntName string `json:"entName"`
|
|
}
|
|
}
|
|
-
|
|
|
|
PushMsgReq {
|
|
PushMsgReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
PositionId int64 `header:"positionId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntUserId int64 `header:"entUserId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
- Title string `json:"title"` //标题
|
|
|
|
- Content string `json:"content"` //内容
|
|
|
|
- PcHref string `json:"pcHref"` //pc跳转地址
|
|
|
|
- MobileHref string `json:"mobileHref"` //移动端跳转地址
|
|
|
|
|
|
+ Title string `json:"title"` //标题
|
|
|
|
+ Content string `json:"content"` //内容
|
|
|
|
+ PcHref string `json:"pcHref"` //pc跳转地址
|
|
|
|
+ MobileHref string `json:"mobileHref"` //移动端跳转地址
|
|
User []int64 `json:"user,optional"` //企业用户id
|
|
User []int64 `json:"user,optional"` //企业用户id
|
|
- MsgType string `json:"msgType"` //消息类型 1-活动优惠 2-服务通知 3-订阅消息 4-项目动态 5-企业动态 6-分析报告 7-系统通知 11-待办
|
|
|
|
|
|
+ MsgType string `json:"msgType"` //消息类型 1-活动优惠 2-服务通知 3-订阅消息 4-项目动态 5-企业动态 6-分析报告 7-系统通知 11-待办
|
|
}
|
|
}
|
|
-
|
|
|
|
CanAddReq {
|
|
CanAddReq {
|
|
AppId string `header:"appId,default=10000"`
|
|
AppId string `header:"appId,default=10000"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
BaseUserId int64 `header:"newUserId"`
|
|
@@ -176,12 +168,12 @@ type (
|
|
EntId int64 `header:"entId,optional"`
|
|
EntId int64 `header:"entId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
AccountId int64 `header:"accountId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
EntDeptId int64 `header:"entDeptId,optional"`
|
|
- EmployInfoId int64 `json:"employInfoId"` //资讯收录id
|
|
|
|
|
|
+ EmployInfoId int64 `json:"employInfoId"` //资讯收录id
|
|
EmployCustomId int64 `json:"employCustomId,optional"` //客户收录id
|
|
EmployCustomId int64 `json:"employCustomId,optional"` //客户收录id
|
|
- Key string `json:"key"` //创建线索:more_create_clue 创建机会:more_create_chance 创建客户:more_create_custom
|
|
|
|
-
|
|
|
|
|
|
+ Key string `json:"key"` //创建线索:more_create_clue 创建机会:more_create_chance 创建客户:more_create_custom
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
+
|
|
@server (
|
|
@server (
|
|
// 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
|
|
// 定义一个请求体限制在 100MB 以内的请求,goctl >= 1.5.0 版本支持 (默认1mb)
|
|
maxBytes: 104857600
|
|
maxBytes: 104857600
|
|
@@ -190,37 +182,49 @@ service crmApplication {
|
|
@doc "添加线索"
|
|
@doc "添加线索"
|
|
@handler clueAdd
|
|
@handler clueAdd
|
|
post /crmApplication/clue/add (ClueAddReq) returns (Reply)
|
|
post /crmApplication/clue/add (ClueAddReq) returns (Reply)
|
|
|
|
+
|
|
@doc "创建销售机会"
|
|
@doc "创建销售机会"
|
|
@handler saleChanceAdd
|
|
@handler saleChanceAdd
|
|
post /crmApplication/saleChance/add (SaleChanceReq) returns (Reply)
|
|
post /crmApplication/saleChance/add (SaleChanceReq) returns (Reply)
|
|
|
|
+
|
|
@doc "收录操作"
|
|
@doc "收录操作"
|
|
@handler employOperate
|
|
@handler employOperate
|
|
post /crmApplication/employ/operate (EmployOperateReq) returns (Reply)
|
|
post /crmApplication/employ/operate (EmployOperateReq) returns (Reply)
|
|
|
|
+
|
|
@doc "商业资讯的转办"
|
|
@doc "商业资讯的转办"
|
|
@handler transfer
|
|
@handler transfer
|
|
post /crmApplication/information/transfer (TransferReq) returns (Reply)
|
|
post /crmApplication/information/transfer (TransferReq) returns (Reply)
|
|
|
|
+
|
|
@doc "忽略操作"
|
|
@doc "忽略操作"
|
|
@handler ignoreOperate
|
|
@handler ignoreOperate
|
|
post /crmApplication/ignore/operate (IgnoreOperateReq) returns (Reply)
|
|
post /crmApplication/ignore/operate (IgnoreOperateReq) returns (Reply)
|
|
|
|
+
|
|
@doc "收录情况"
|
|
@doc "收录情况"
|
|
@handler employInfo
|
|
@handler employInfo
|
|
post /crmApplication/employ/info (InfoEmployinfoReq) returns (Reply)
|
|
post /crmApplication/employ/info (InfoEmployinfoReq) returns (Reply)
|
|
|
|
+
|
|
@doc "创建客户"
|
|
@doc "创建客户"
|
|
@handler customAdd
|
|
@handler customAdd
|
|
post /crmApplication/custom/add (CustomAddReq) returns (Reply)
|
|
post /crmApplication/custom/add (CustomAddReq) returns (Reply)
|
|
|
|
+
|
|
@doc "文件上传"
|
|
@doc "文件上传"
|
|
@handler fileUpload
|
|
@handler fileUpload
|
|
- post /crmApplication/file/upload(FileUploadReq) returns (Reply)
|
|
|
|
|
|
+ post /crmApplication/file/upload (FileUploadReq) returns (Reply)
|
|
|
|
+
|
|
@doc "分发"
|
|
@doc "分发"
|
|
- @handler employDistribute
|
|
|
|
- post /crmApplication/employ/distribute(EmployDistributeReq) returns (Reply)
|
|
|
|
|
|
+ @handler employDistribute
|
|
|
|
+ post /crmApplication/employ/distribute (EmployDistributeReq) returns (Reply)
|
|
|
|
+
|
|
@doc "企业详情"
|
|
@doc "企业详情"
|
|
- @handler entinfo
|
|
|
|
- post /crmApplication/ent/info(EntInfoReq) returns (Reply)
|
|
|
|
|
|
+ @handler entinfo
|
|
|
|
+ post /crmApplication/ent/info (EntInfoReq) returns (Reply)
|
|
|
|
+
|
|
@doc "消息推送"
|
|
@doc "消息推送"
|
|
@handler pushMsg
|
|
@handler pushMsg
|
|
- post /crmApplication/info/push(PushMsgReq) returns (Reply)
|
|
|
|
|
|
+ post /crmApplication/info/push (PushMsgReq) returns (Reply)
|
|
|
|
+
|
|
@doc "是否可以创建"
|
|
@doc "是否可以创建"
|
|
@handler canAddReq
|
|
@handler canAddReq
|
|
- post /crmApplication/info/canAdd(CanAddReq) returns (Reply)
|
|
|
|
-}
|
|
|
|
|
|
+ post /crmApplication/info/canAdd (CanAddReq) returns (Reply)
|
|
|
|
+}
|
|
|
|
+
|