Browse Source

feat(style): 业务状态数据权限

lipk 1 year ago
parent
commit
7715369c7d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      types/src/interface/process.ts

+ 8 - 0
types/src/interface/process.ts

@@ -70,6 +70,13 @@ export enum RoleType {
   NORMAL = 'normal',
 }
 
+// 数据权限
+export enum EDataPermissionBusinessLedger {
+  UNREPORTED = 'unreported',
+  APPROVAL_IN_PROGRESS = 'approvalInProgress',
+  APPROVAL_COMPLETED = 'approvalCompleted',
+}
+
 // 角色
 export interface IRole {
   ID: string;
@@ -77,6 +84,7 @@ export interface IRole {
   roleType: RoleType;
   frontPermission: RolePermission[];
   backstagePermission: string[]; // 后台权限
+  dataPermission: { businessLedger: EDataPermissionBusinessLedger[] };
 }
 
 // 参与者模式