|
|
@@ -1,22 +1,27 @@
|
|
|
import { IUser } from "../auth/User";
|
|
|
+import { IGroup } from "../group/Group";
|
|
|
import { TRole } from "./Auth";
|
|
|
|
|
|
export interface IShareRequest {
|
|
|
res_id: string;
|
|
|
- res_type: string;
|
|
|
+ res_type: number;
|
|
|
role: TRole;
|
|
|
- user_id: string;
|
|
|
+ user_id: string[];
|
|
|
user_type: string;
|
|
|
}
|
|
|
-
|
|
|
+export interface IShareUpdateRequest {
|
|
|
+ role: TRole;
|
|
|
+}
|
|
|
export interface IShareData {
|
|
|
- id?: number;
|
|
|
+ id?: string;
|
|
|
res_id: string;
|
|
|
res_type: string;
|
|
|
power?: number;
|
|
|
res_name: string;
|
|
|
user?: IUser;
|
|
|
+ group?: IGroup;
|
|
|
owner?: IUser;
|
|
|
+ role?: TRole;
|
|
|
created_at?: string;
|
|
|
updated_at?: string;
|
|
|
}
|
|
|
@@ -34,3 +39,8 @@ export interface IShareListResponse {
|
|
|
count: number;
|
|
|
};
|
|
|
}
|
|
|
+export interface IShareDeleteResponse {
|
|
|
+ ok: boolean;
|
|
|
+ message: string;
|
|
|
+ data: number;
|
|
|
+}
|