diff --git a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountStatus.java b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountStatus.java index 540ceab..61440cf 100644 --- a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountStatus.java +++ b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountStatus.java @@ -23,7 +23,7 @@ public final class AccountStatus extends Enumeration implements I public static final AccountStatus AVAILABLE = new AccountStatus(0, "账号正常"); public static final AccountStatus LOCKED = new AccountStatus(1, "账号被锁定"); - private static final ValueSet VALUE_SET = new ValueSet<>( + private static final ValueSet VALUE_SET = ValueSet.of( AVAILABLE, LOCKED); diff --git a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Sex.java b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Sex.java index 09735c5..7232581 100644 --- a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Sex.java +++ b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/Sex.java @@ -25,7 +25,7 @@ public final class Sex extends Enumeration implements IValueObject { super(id, name); } - private static final ValueSet VALUE_SET = new ValueSet<>(UNSET, MALE, FEMALE); + private static final ValueSet VALUE_SET = ValueSet.of(UNSET, MALE, FEMALE); @StaticFactoryMethod(Sex.class) public static Sex of(int value) {