fix: 下沉消息体对象
This commit is contained in:
@@ -9,7 +9,7 @@ import cn.code.nl.module.task.enums.FinishedTypeEnum;
|
||||
import cn.code.nl.module.task.enums.TaskEventTypeEnum;
|
||||
import cn.code.nl.module.task.enums.TaskOperationTypeEnum;
|
||||
import cn.code.nl.module.task.enums.TransportTaskStatusEnum;
|
||||
import cn.code.nl.module.task.mq.message.TaskEventMessage;
|
||||
import cn.code.nl.module.task.message.TaskEventMessage;
|
||||
import cn.code.nl.module.task.mq.producer.TaskEventProducer;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
package cn.code.nl.module.task.mq.message;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 任务事件 MQ 消息体
|
||||
*/
|
||||
@Data
|
||||
public class TaskEventMessage {
|
||||
|
||||
/** 事件ID */
|
||||
private String eventId;
|
||||
|
||||
/** 事件类型:TASK_FINISHED / TASK_CANCELLED */
|
||||
private String eventType;
|
||||
|
||||
/** 任务ID */
|
||||
private Long taskId;
|
||||
|
||||
/** 任务编码 */
|
||||
private String taskCode;
|
||||
|
||||
/** 业务归属服务:LMS / WMS */
|
||||
private String ownerService;
|
||||
|
||||
/** 任务类型 */
|
||||
private String taskType;
|
||||
|
||||
/** 业务类型 */
|
||||
private String bizType;
|
||||
|
||||
/** 业务侧标识 */
|
||||
private String bizId;
|
||||
|
||||
/** 业务回调处理器编码 */
|
||||
private String handleCode;
|
||||
|
||||
/** 扩展数据 */
|
||||
private Map<String, Object> payload;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.code.nl.module.task.mq.producer;
|
||||
|
||||
import cn.code.nl.module.task.mq.message.TaskEventMessage;
|
||||
import cn.code.nl.module.task.message.TaskEventMessage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
Reference in New Issue
Block a user