parent
0330250028
commit
34999265e3
@ -0,0 +1,20 @@
|
||||
package com.chanko.yunxi.mes.module.heli.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 预警类型
|
||||
* @author chenxi
|
||||
* @date 2024-02-23 10:15
|
||||
*/
|
||||
@Getter
|
||||
public enum WarningEnum {
|
||||
|
||||
PROCESS_DESIGN_DEFERRED_WARNING("工艺设计延期预警");
|
||||
|
||||
private String description;
|
||||
|
||||
WarningEnum(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package com.chanko.yunxi.mes.module.heli.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 预警信息
|
||||
*
|
||||
* @author chenxi
|
||||
* @date 2024-02-23 09:54
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class WarningMessageVO {
|
||||
|
||||
@Schema(description = "是否包含预警信息")
|
||||
private boolean hasWarning = false;
|
||||
|
||||
@Schema(description = "预警信息")
|
||||
private List<WarningVO> warnings;
|
||||
|
||||
|
||||
public static abstract class WarningVO {}
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public static class ProcessDesignDeferredWarningVO extends WarningVO {
|
||||
|
||||
/**
|
||||
* {@link com.chanko.yunxi.mes.module.heli.enums.WarningEnum}
|
||||
*/
|
||||
@Schema(description = "预警类型")
|
||||
private String warningType;
|
||||
|
||||
/**
|
||||
* {@link com.chanko.yunxi.mes.module.heli.enums.ProcessDesignTypeEnum}
|
||||
*/
|
||||
@Schema(description = "工艺设计类型")
|
||||
private String processDesignType;
|
||||
|
||||
@Schema(description = "预警接收人")
|
||||
private String ownerName;
|
||||
|
||||
@Schema(description = "项目编号")
|
||||
private String projectCode;
|
||||
|
||||
@Schema(description = "子项目编号")
|
||||
private String projectSubCode;
|
||||
|
||||
@Schema(description = "剩余时间")
|
||||
private long remainingTime;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue