## 会员币种、专区枚举接口调整;

This commit is contained in:
cabbage 2025-10-27 13:36:17 +08:00
parent d3d29bb9a9
commit 42a967cc1d
1 changed files with 4 additions and 2 deletions

View File

@ -464,7 +464,9 @@ public class EnumsController extends BaseController {
public AjaxResult specialAreaConsume() { public AjaxResult specialAreaConsume() {
List<EnumEntity> enumEntityList = new ArrayList<>(); List<EnumEntity> enumEntityList = new ArrayList<>();
for (ESpecialArea value : ESpecialArea.values()) { for (ESpecialArea value : ESpecialArea.values()) {
enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel())); if (value.getEnable() == EnableStatus.ENABLE.getValue()) {
enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel()));
}
} }
return AjaxResult.success(enumEntityList); return AjaxResult.success(enumEntityList);
} }
@ -561,7 +563,7 @@ public class EnumsController extends BaseController {
public AjaxResult account() { public AjaxResult account() {
List<EnumEntity> enumEntityList = new ArrayList<>(); List<EnumEntity> enumEntityList = new ArrayList<>();
for (EAccount value : EAccount.values()) { for (EAccount value : EAccount.values()) {
enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel(), EnumsPrefixConstants.ACCOUNT)); enumEntityList.add(new EnumEntity(value.getValue(), value.getLabel()));
} }
return AjaxResult.success(enumEntityList); return AjaxResult.success(enumEntityList);
} }