Browse Source

feat: 获取监控权限设置

lipk 3 years ago
parent
commit
98987f85b4
2 changed files with 15 additions and 0 deletions
  1. 9 0
      types/src/interface/api/approvaApi.ts
  2. 6 0
      types/src/interface/approvalStatus.ts

+ 9 - 0
types/src/interface/api/approvaApi.ts

@@ -1,4 +1,5 @@
 import {
 import {
+  ApprovlaViewable,
   EUpDown,
   EUpDown,
   IAuditScoreLog,
   IAuditScoreLog,
   IAuditScoreRemark,
   IAuditScoreRemark,
@@ -179,3 +180,11 @@ export namespace PostApprovlaValidAuditScore {
     errMatterIds: string[];
     errMatterIds: string[];
   };
   };
 }
 }
+
+export namespace GetApprovalViewable {
+  export type Params = {
+    userID?: string;
+  };
+
+  export type Response = Record<ApprovlaViewable, boolean>;
+}

+ 6 - 0
types/src/interface/approvalStatus.ts

@@ -12,3 +12,9 @@ export interface IApprovalStatus {
   executorID: string;
   executorID: string;
   members: [executorMember];
   members: [executorMember];
 }
 }
+
+export enum ApprovlaViewable {
+  ApprovalProgress = 'approvalProgress',
+  ApprovalBrief = 'approvalBrief',
+  ApprovalLog = 'approvalLog',
+}