New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 审核状态 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 15:15 |
| | | */ |
| | | @Getter |
| | | public enum AuditingStatus { |
| | | |
| | | PASS("PASS", "通过"), |
| | | NO_PASS("NO_PASS", "未通过"), |
| | | ; |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | AuditingStatus(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 点位状态 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 14:57 |
| | | */ |
| | | @Getter |
| | | public enum PointStatus { |
| | | |
| | | |
| | | WAIT("WAIT", "待开始"), |
| | | ING("ING", "进行中"), |
| | | END("END", "已结束"); |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | PointStatus(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 关联业务类型 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 15:13 |
| | | */ |
| | | @Getter |
| | | public enum RefType { |
| | | |
| | | WORK_ORDER("WORK_ORDER", "工单"), |
| | | ; |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | RefType(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 规则启用状态 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 15:10 |
| | | */ |
| | | @Getter |
| | | public enum RuleStatus { |
| | | |
| | | USE("USE", "启用"), |
| | | STOP("STOP", "停用"); |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | RuleStatus(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 运维检测结果 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 15:05 |
| | | */ |
| | | @Getter |
| | | public enum YwCheckResult { |
| | | |
| | | SUCCESS("SUCCESS", "成功,完成"), |
| | | FAIL("FAIL", "失败、未完成"); |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | YwCheckResult(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package enumeration.general; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * 运维结果 |
| | | * |
| | | * @author:xp |
| | | * @date:2024/3/4 15:05 |
| | | */ |
| | | @Getter |
| | | public enum YwResult { |
| | | |
| | | SUCCESS("SUCCESS", "成功,完成"), |
| | | FAIL("FAIL", "失败、未完成"), |
| | | NOT_START("NOT_START", "未开始"); |
| | | |
| | | |
| | | @EnumValue // 标明该字段存入数据库 |
| | | @JsonValue // 标明在转JSON时使用该字段,即响应时 |
| | | private final String code; |
| | | |
| | | private final String desc; |
| | | |
| | | YwResult(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | } |