lengfaqiang 2 anni fa
parent
commit
c006b60581

+ 30 - 0
slope-common/slope-common-core/src/main/java/com/sckw/core/model/enums/DictEnum.java

@@ -0,0 +1,30 @@
+package com.sckw.core.model.enums;
+
+/**
+ * @author lfdc
+ * @description
+ * @date 2023-11-05 15:11:30
+ */
+
+public enum DictEnum {
+
+    THRESHOLD_TYPE("threshold_type", "预警字段类型"),
+    DEVICE_TYPE("device_type", "设备类型"),
+    MODEL_PART("model_part", "检测要素"),
+    ;
+    private final String codeType;
+    private final String name;
+
+    DictEnum(String codeType, String name) {
+        this.codeType = codeType;
+        this.name = name;
+    }
+
+    public String getCodeType() {
+        return codeType;
+    }
+
+    public String getName() {
+        return name;
+    }
+}

+ 18 - 0
slope-common/slope-common-core/src/main/java/com/sckw/core/web/response/PhpResult.java

@@ -0,0 +1,18 @@
+package com.sckw.core.web.response;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * @author lfdc
+ * @description
+ * @date 2023-11-05 16:11:46
+ */
+@Data
+public class PhpResult implements Serializable {
+    private boolean status;
+    private int code;
+    private String message;
+    private Object data;
+}

+ 46 - 0
slope-modules/slope-detection/src/main/java/com/sckw/slope/detection/model/dto/SystemDict.java

@@ -0,0 +1,46 @@
+package com.sckw.slope.detection.model.dto;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.time.LocalDateTime;
+
+/**
+ * @author lfdc
+ * @description saas字典表
+ * @date 2023-11-06 08:11:46
+ */
+@Data
+public class SystemDict implements Serializable {
+
+    private int id;
+    //类型
+    private String code;
+    //选项值
+    private String value;
+    //选项
+    private String label;
+    //描述
+    private String description;
+    //图标、文件等
+    private String url;
+    //排序(升序)
+    private int sort;
+    //父级编号
+    @JsonProperty("parent_id")
+    private String parentId;
+    //备注信息
+    private String remark;
+    //类型
+    private int status;
+    //新增时间
+    @JsonProperty("create_time")
+    private LocalDateTime createTime;
+    //修改时间
+    @JsonProperty("update_time")
+    private LocalDateTime updateTime;
+    //删除时间
+    @JsonProperty("delete_time")
+    private int deleteTime;
+}