#增加系统参数配置模块
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.maibu.core.domain.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.maibu.core.domain.OrgNoUserDO;
|
||||
import com.maibu.core.enums.SysParamType;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName(value = "sys_param")
|
||||
public class SysParam extends OrgNoUserDO {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private SysParamType paramType;
|
||||
|
||||
private String paramKey;
|
||||
|
||||
private String nameTranslateKey;
|
||||
|
||||
private String paramValue;
|
||||
|
||||
private String descTranslateKey;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String nameTranslate;
|
||||
@TableField(exist = false)
|
||||
private String descTranslate;
|
||||
|
||||
private String valueRange;
|
||||
|
||||
private String dataType;
|
||||
|
||||
}
|
||||
@@ -1,27 +1,26 @@
|
||||
package com.maibu.core.enums;
|
||||
|
||||
import com.maibu.annotation.Excel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum AlarmType {
|
||||
|
||||
UAV_FAULT("UAV_FAULT", "无人机故障"),
|
||||
|
||||
MOWER_FAULT("MOWER_FAULT", "割草机故障"),
|
||||
|
||||
OTHER_DEVICE_FAULT("OTHER_DEVICE_FAULT", "其他设备故障"),
|
||||
|
||||
SERVER_FAILURE("SERVER_FAILURE", "服务器故障"),
|
||||
|
||||
SYSTEM_ERROR("SYSTEM_ERROR", "系统错误");
|
||||
|
||||
/** 错误来源值(存储在数据库中) */
|
||||
private final String value;
|
||||
|
||||
/** 错误来源名称(用于前端显示) */
|
||||
private final String name;
|
||||
|
||||
}
|
||||
package com.maibu.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum AlarmType {
|
||||
|
||||
UAV_FAULT("UAV_FAULT", "无人机故障"),
|
||||
|
||||
MOWER_FAULT("MOWER_FAULT", "割草机故障"),
|
||||
|
||||
OTHER_DEVICE_FAULT("OTHER_DEVICE_FAULT", "其他设备故障"),
|
||||
|
||||
SERVER_FAILURE("SERVER_FAILURE", "服务器故障"),
|
||||
|
||||
SYSTEM_ERROR("SYSTEM_ERROR", "系统错误");
|
||||
|
||||
/** 错误来源值(存储在数据库中) */
|
||||
private final String value;
|
||||
|
||||
/** 错误来源名称(用于前端显示) */
|
||||
private final String name;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.maibu.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum SysParamType {
|
||||
|
||||
site("site", "场站维度"),
|
||||
|
||||
org("org", "组织维度"),
|
||||
|
||||
global("global", "全局维度"),
|
||||
|
||||
personal("personal", "个人维度");
|
||||
|
||||
private final String value;
|
||||
|
||||
private final String name;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user