houzhongjian
2025-06-18 b15fed198fa1fc64c82dd4d4dfceed8439ded204
iailab-module-system/iailab-module-system-api/src/main/java/com/iailab/module/system/enums/permission/DataScopeEnum.java
@@ -1,6 +1,6 @@
package com.iailab.module.system.enums.permission;
import com.iailab.framework.common.core.IntArrayValuable;
import com.iailab.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
@@ -15,7 +15,7 @@
 */
@Getter
@AllArgsConstructor
public enum DataScopeEnum implements IntArrayValuable {
public enum DataScopeEnum implements ArrayValuable {
    ALL(1), // 全部数据权限
@@ -30,10 +30,10 @@
     */
    private final Integer scope;
    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DataScopeEnum::getScope).toArray();
    public static final Integer[] ARRAYS = Arrays.stream(values()).map(DataScopeEnum::getScope).toArray(Integer[]::new);
    @Override
    public int[] array() {
    public Integer[] array() {
        return ARRAYS;
    }