feat(profit-share): 调整分账与退款消息结构并优化接口

- 修改手动分账接口路径为 /manual 并支持请求体参数
- 更新计算分账结果接口路径为 /calculate
- 将退款消息主题从 zt-refund 更改为 zt-profitshare-refund
-重构退款消息对象字段,增加退款类型和原订单 ID
- 更新退款消息生产者逻辑以适配新字段和主题配置
- 强化退款消息校验规则,确保必要字段完整性
This commit is contained in:
2025-10-24 20:10:44 +08:00
parent bdeb41bead
commit 8064c68b8b
4 changed files with 40 additions and 39 deletions

View File

@@ -13,7 +13,7 @@ public class KafkaIntegrationProperties {
private String bootstrapServers = "100.64.0.12:39092";
private String ztMessageTopic = "zt-message"; // topic for zt-message microservice
private String profitShareTopic = "zt-profitshare"; // topic for profit share messages
private String refundTopic = "zt-refund"; // topic for refund messages
private String refundTopic = "zt-profitshare-refund"; // topic for refund messages
private Consumer consumer = new Consumer();
private Producer producer = new Producer();