1 多属性字段定义枚举类的使用案例
package com.damagePrevention.system.enums;
import lombok.Data;
/**
* 回收站枚举类
*/
public enum RecycleBinEnums {
// 粉尘监测点
DUST("dust_id", "dust_point", 2006l, "灾害专题管理/粉尘防治/测点管理","monitoring_code"),
// 顶板监测点
ROOF("roof_pressure_id", "roof_pressure_point", 2005L, "灾害专题管理/顶板防治/工作面矿压监测/测点管理","monitoring_code");
/** 监测点表主键 */
private String primaryKey;
/** 监测点表名称 */
private String tableName;
/** 监测点菜单id */
private Long menuId;
/** 监测点数据的原位置 */
private String location;
/**唯一字段的名称(监测类的测点编码,规程类的名称*/
private String onlyName;
RecycleBinEnums(String primaryKey, String tableName, Long menuId, String location,String onlyName) {
this.primaryKey = primaryKey;
this.tableName = tableName;
this.menuId = menuId;