📈 CRM:code review 数据权限

This commit is contained in:
YunaiV
2023-12-06 20:04:15 +08:00
parent d430063eec
commit 3707662187
15 changed files with 26 additions and 325 deletions

View File

@ -72,7 +72,4 @@ public interface ErrorCodeConstants {
// ========== 客户公海规则设置 1_020_012_000 ==========
ErrorCode CUSTOMER_LIMIT_CONFIG_NOT_EXISTS = new ErrorCode(1_020_012_000, "客户限制配置不存在");
// ========== 关注的数据 1_020_013_000 ==========
ErrorCode CRM_CONCERNED_NOT_EXISTS = new ErrorCode(1_020_013_000, "关注数据不存在");
}

View File

@ -7,6 +7,7 @@ import lombok.Getter;
import java.util.Arrays;
// TODO @puhui999这个枚举要不改成 CrmSceneTypeEnum
/**
* CRM 列表检索场景
*
@ -18,6 +19,7 @@ public enum CrmSceneEnum implements IntArrayValuable {
OWNER(1, "我负责的"),
FOLLOW(2, "我关注的"),
// TODO @puhui999还有一个我参与的
SUBORDINATE(3, "下属负责的");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmSceneEnum::getType).toArray();