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