| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- export enum ShareType {
- PROJECT = 1, // 项目
- RATION_LIB, // 定额库
- GLJ_LIB, // 工料机库
- PRICE_TEMPLATE, // 租价模板
- }
- export interface IShareProject {
- shareDate?: number;
- updateDate?: number;
- projectID: string; // 项目ID
- isRead?: boolean;
- allowCopy: boolean;
- allowCooperate: boolean;
- }
- export interface IShareLib {
- shareDate?: number;
- updateDate?: number;
- compilationID: string;
- allowCopy: boolean;
- allowCooperate: boolean;
- }
- export interface IShare {
- ID: string;
- owner: string;
- receiver: string;
- recentDate: number;
- projectList: IShareProject[];
- rationLibList: IShareLib[];
- gljLibList: IShareLib[];
- priceTemplateList: IShareLib[];
- }
- export type ShareItem = IShareProject | IShareLib;
- export interface ICreatShare {
- doc: ShareItem;
- type: ShareType;
- }
- export interface IUpdateShare {
- filter: { projectID?: string; compilationID?: string };
- update: {
- updateDate?: number;
- isRead?: boolean;
- allowCopy?: boolean;
- allowCooperate?: boolean;
- };
- type: ShareType;
- }
- export interface IDelShare {
- filter: { projectID?: string; compilationID?: string };
- type: ShareType;
- }
|