Browse Source

add IShareRequest

visuddhinanda 3 years ago
parent
commit
62ca2458bb
1 changed files with 9 additions and 0 deletions
  1. 9 0
      dashboard/src/components/api/Share.ts

+ 9 - 0
dashboard/src/components/api/Share.ts

@@ -1,12 +1,21 @@
 import { IUser } from "../auth/User";
 import { Role } from "./Auth";
 
+export interface IShareRequest {
+  res_id: string;
+  res_type: string;
+  role: Role;
+  user_id: string;
+  user_type: string;
+}
+
 export interface IShareData {
   id?: number;
   res_id: string;
   res_type: string;
   power?: number;
   res_name: string;
+  user?: IUser;
   owner?: IUser;
   created_at?: string;
   updated_at?: string;