枚举类回显赋值
This commit is contained in:
@@ -6,7 +6,7 @@ import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum AccountStatus {
|
||||
public enum AccountStatus implements ValueEnum {
|
||||
|
||||
ACTIVE (1, "active", "有效"),
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
/**
|
||||
* 枚举类通用接口
|
||||
*/
|
||||
public interface ValueEnum {
|
||||
Integer getValue();
|
||||
String getInfo();
|
||||
}
|
||||
Reference in New Issue
Block a user