Topic:{tenant}/proj_{项目}/v1-business-customer
{
"msgId":123132131231,
"reportTs":1682216549951,
"profile":{
"poiCode":"s009",
"appType":"customer",
"modelId":9
},
"events":{
"customerAdd":{
"eventType":1,
"eventSendUserId":"12123243242",
"id":324235435243243,
"education":0,
"nation":"",
"facePhoto":"",
"openId":"6659967826199557",
"postalCode":"",
"remark":"",
"idNumber":"",
"speciality":"",
"character":"",
"interest":"",
"marriage":0,
"contractName":"",
"spaceIds":[
],
"email":"",
"profession":"",
"contractPhone":"",
"jobNum":"",
"idType":0,
"address":"",
"unionId":"6659967826199558",
"sex":0,
"phone":"12121",
"name":"21121",
"nativePlace":"",
"projectId":1080446148159139840
},
"customerUpdate":{
"eventType":1,
"eventSendUserId":"12123243242",
"id":324235435243243,
"profession":"",
"contractPhone":"",
"jobNum":"",
"idType":0,
"address":"",
"education":0,
"nation":"",
"facePhoto":"",
"sex":0,
"postalCode":"",
"remark":"",
"idNumber":"",
"speciality":"",
"character":"",
"phone":"1231",
"interest":"",
"marriage":0,
"name":"12132",
"nativePlace":"",
"contractName":"",
"spaceIds":[
],
"projectId":371344636432453,
"email":""
},
"customerBindCompany":{
"eventSendUserId":"12123243242",
"eventType":1,
"companyIds":[
1090560337592619000,
1095697073878896600,
1089935576986456000
],
"customerId":1106257098023592000,
"projectId":1080446148159139840,
"userId": "1787768503159414786",
"openId":"1323124131121"
},
"customerUnbindCompany":{
"eventSendUserId":"12123243242",
"eventType":1,
"companyIds":[
1090560337592619000,
1095697073878896600
],
"customerId":1106254901758820400,
"projectId":371344636432453,
"userId": "1787768503159414786",
"openId":"1323124131121"
},
"customerDelete":{
"eventSendUserId":"12123243242",
"eventType":1,
"customerUserDTOS":[{
"customerId":1106257098023592000,
"openId":"1323124131121",
"companyIds":[
1090560337592619000,
1095697073878896600
]
}
]
},
"companyAdd":{
"eventSendUserId":"12123243242",
"eventType":1,
"income":"",
"registrationName":"",
"remark":"",
"developmentCost":"",
"idNumber":"",
"employeeCount":"",
"legalPerson":"",
"whichIndustry":"",
"contractName":"",
"spaceIds":[
],
"fax":"",
"profit":"",
"email":"",
"contractPhone":"",
"website":"",
"merchantCode":"",
"idType":0,
"address":"",
"ratal":"",
"stockCode":"",
"logoUrl":"",
"registerAddress":"",
"countryCertification":0,
"registerCapital":"",
"phone":"1111",
"name":"1111",
"projectId":371344636432453,
"status":0
},
"companyUpdate":{
"eventSendUserId":"12123243242",
"eventType":1,
"income":"",
"registrationName":"",
"remark":"",
"developmentCost":"",
"idNumber":"",
"employeeCount":"",
"legalPerson":"",
"whichIndustry":"",
"contractName":"",
"spaceIds":[
],
"fax":"",
"profit":"",
"email":"",
"contractPhone":"",
"website":"",
"merchantCode":"",
"idType":0,
"address":"",
"ratal":"",
"stockCode":"",
"logoUrl":"",
"registerAddress":"",
"countryCertification":0,
"registerCapital":"",
"phone":"111",
"name":"111",
"projectId":371344636432453,
"status":0
},
"companyDelete":{
"eventSendUserId":"12123243242",
"eventType":1,
"ids":[1106260436558184400]
}
}
}
事件名称 | 事件类型 | 事件描述 |
---|---|---|
customerAdd | 通知型 | 客戶新增 |
customerUpdate | 通知型 | 客户更新 |
customerBindCompany | 通知型 | 客户绑定企业 |
customerUnbindCompany | 通知型 | 客户解绑企业 |
customerDelete | 通知型 | 客户删除 |
companyAdd | 通知型 | 企业新增 |
companyUpdate | 通知型 | 企业更新 |
companyDelete | 通知型 | 企业删除 |
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
eventSendUserId | string | 发送事件用户id | 否 |
eventType | int | 事件类型(默认1通知 2客户启用 3客户禁用) | 是 |
id | long | 主键id | 是 |
projectId | long | 项目id | 是 |
name | string | 名称 | 是 |
phone | string | 电话 | 是 |
idType | int | 证件类型,0:代表空,1:身份证,2:护照,3:港澳通行证,4:其他 | 否 |
idNumber | string | 证件号码 | 否 |
sex | int | 性别,0:代表未填,1:男,2:女 | 否 |
age | int | 年龄 | 否 |
spaceIds | long[] | 所属空间 空间客户关联表 | 否 |
customerGradeId | long | 客户级别 | 否 |
customerTypeId | long | 客户类型 | 否 |
contractName | string | 紧急联系人 | 否 |
contractPhone | string | 紧急联系人电话 | 否 |
address | string | 地址 | 否 |
email | string | 邮箱 | 否 |
remark | string | 备注 | 否 |
bornDate | long | 出生年月 | 否 |
nativePlace | string | 籍贯 | 否 |
nation | string | 民族 | 否 |
marriage | int | 婚姻,0:代表未填空,1:未婚,2:已婚,3:离婚,4:丧偶 | 否 |
education | int | 学历,0:代表未填空,1:小学,2:初中,3:中专/高中,4:专科,5:本科,6:硕士,7:博士 | 否 |
profession | string | 职业 | 否 |
speciality | string | 特长 | 否 |
interest | string | 兴趣爱好 | 否 |
character | string | 性格 | 否 |
postalCode | string | 邮政编码 | 否 |
jobNum | string | 员工工号 | 否 |
facePhoto | string | 人脸识别 | 否 |
openId | string | 用户id | 否 |
unionId | string | 通行证id | 否 |
customerStatus | int | 客户状态 1正常 2禁用 | 否 |
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
eventSendUserId | string | 发送事件用户id | 否 |
eventType | int | 事件类型(默认1通知) | 是 |
customerId | long | 客户id | 是 |
companyIds | long[] | 企业id集合 | 是 |
outCompanyIds | string[] | 外部企业id集合 | 否 |
projectId | long | 项目id | 是 |
openId | string | 租户用户id | 是 |
userId | string | 全局用户ID。全局唯一。不同租户同手机号的用户userId是相同的 | 是 |
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
eventSendUserId | string | 发送事件用户id | 否 |
eventType | int | 事件类型(默认1通知) | 是 |
customerUserDTOS | object[] | 客户删除数据 | 是 |
+customerId | long | 客户id | 是 |
+openId | string | 租户用户id | 是 |
+userId | string | 全局用户ID。全局唯一。不同租户同手机号的用户userId是相同的 | 是 |
+companyIds | long[] | 企业id集合 | 是 |
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
eventSendUserId | string | 发送事件用户id | 否 |
eventType | int | 事件类型(默认1通知 2企业启用 3企业禁用) | 是 |
id | long | 主键id | 是 |
projectId | long | 项目id | 是 |
name | string | 名称 | 是 |
phone | string | 电话 | 是 |
idType | int | 证件类型,0:代表空,1:统一社会信用代码,2:工商注册号 | 否 |
idNumber | string | 证件号码 | 否 |
spaceIds | long[] | 所属空间 空间企业关联表 | 否 |
customerGradeId | long | 客户级别id | 否 |
customerTypeId | long | 客户类型id | 否 |
contractName | string | 紧急联系人姓名 | 否 |
contractPhone | string | 紧急联系人电话 | 否 |
address | string | 客户地址 | 否 |
email | string | 邮箱 | 否 |
remark | string | 备注 | 否 |
registrationName | string | 登记机关 | 否 |
legalPerson | string | 登记法人 | 否 |
registerDate | long | 成立日期 | 否 |
status | int | 企业状态,0:代表空,1:存续,2:在业,3:吊销,4:注销,5:迁入,6:迁出,7:停业,8:清算 | 否 |
registerCapital | string | 注册资本 | 否 |
registerAddress | string | 注册地点 | 否 |
fax | string | 传真 | 否 |
employeeCount | string | 员工数 | 否 |
stockCode | string | 股票代码 | 否 |
countryCertification | int | 国高认证 0:代表空,1:是,2:否 | 否 |
website | string | 网站 | 否 |
income | string | 收入 | 否 |
profit | string | 利润 | 否 |
ratal | string | 纳税额 | 否 |
whichIndustry | string | 所属行业 | 否 |
developmentCost | string | 研发投入 | 否 |
merchantCode | string | 商户号 | 否 |
logoUrl | string | 企业Logo | 否 |
customerStatus | int | 企业状态 1正常 2禁用 | 否 |
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
eventSendUserId | string | 发送事件用户id | 否 |
eventType | int | 事件类型(默认1通知) | 是 |
ids | long[] | 企业id集合 | 是 |