{ "name": "WebHookAPI演示", "topicDefinition": { "name": "cp-dispatch", "topic": "", "consumerGroupId": "dispatch.webhook.api", "enableAutoCommit": true, "scanStartupMode": "group-offsets", "primaryKeyName": "ID", "autoOffsetRest": "earliest", "bootstrapServer": "117.78.39.204:9092" }, "webHookConfigs": [ { "title": "同步企业信息到RedisJson", "topic": "dispatch.binlog-cdc.topic.rd_company_summary", "apiDefinition": { "api": "https://v5qy.te.baibaodun.com.cn/dispatch/flush/request", "method": "POST", "isBodyCollection": true, "bodyJsonTemplate": "{\"contents\":[{\"ids\":[\"#{after.id}\"],\"dataType\":\"Company\"}]}", "headerJsonTemplate": "{\"Content-Type\":\"application/json\"}" } }, { "title": "同步职员信息到RedisJson", "topic": "dispatch.binlog-cdc.topic.rd_employee_summary", "apiDefinition": { "api": "https://v5qy.te.baibaodun.com.cn/dispatch/flush/request", "method": "POST", "isBodyCollection": true, "bodyJsonTemplate": "{\"contents\":[{\"ids\":[\"#{after.id}\"],\"dataType\":\"Employee\"}]}", "headerJsonTemplate": "{\"Content-Type\":\"application/json\"}" } }, { "title": "同步驻勤点信息到RedisJson", "topic": "dispatch.binlog-cdc.topic.rd_security_station_summary", "apiDefinition": { "api": "https://v5qy.te.baibaodun.com.cn/dispatch/flush/request", "method": "POST", "isBodyCollection": true, "bodyJsonTemplate": "{\"contents\":[{\"ids\":[\"#{after.id}\"],\"dataType\":\"Station\"}]}", "headerJsonTemplate": "{\"Content-Type\":\"application/json\"}" } }, { "title": "实时计算通讯日志及联动值", "topic": "dispatch.binlog-cdc.topic.tencent_close_room_events", "apiDefinition": { "api": "https://v5qy.te.baibaodun.com.cn/dispatch/tencent/callback/calculate", "method": "POST", "isBodyCollection": true, "bodyJsonTemplate": "{\"ids\":[\"#{after.id}\"]}", "headerJsonTemplate": "{\"Content-Type\":\"application/json\"}" } }, { "title": "同步驻勤人员信息", "topic": "dispatch.binlog-cdc.topic.rd_security_station_person_summary", "apiDefinition": { "api": "https://v5qy.te.baibaodun.com.cn/dispatch/flush/request", "method": "POST", "isBodyCollection": true, "bodyJsonTemplate": "{\"contents\":[{\"stationPersonRequest\":{\n \"stationIds\":[\"#{after.id}\"],\"employeeIds\":[\"#{after.id}\"]\n },\"dataType\":\"Station\"}]}", "headerJsonTemplate": "{\"Content-Type\":\"application/json\"}" } } ] }