visuddhinanda 3 лет назад
Родитель
Сommit
4d11a2018d
1 измененных файлов с 27 добавлено и 0 удалено
  1. 27 0
      dashboard/src/components/api/Share.ts

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

@@ -0,0 +1,27 @@
+import { IUser } from "../auth/User";
+import { Role } from "./Auth";
+
+export interface IShareData {
+  id?: number;
+  res_id: string;
+  res_type: string;
+  power?: number;
+  res_name: string;
+  owner?: IUser;
+  created_at?: string;
+  updated_at?: string;
+}
+export interface IShareResponse {
+  ok: boolean;
+  message: string;
+  data: IShareData;
+}
+export interface IShareListResponse {
+  ok: boolean;
+  message: string;
+  data: {
+    rows: IShareData[];
+    role: Role;
+    count: number;
+  };
+}