import { BusinessTypeKey, MatterTypeKey } from './gather';
// 事项
export interface IMatter {
  ID: string;
  gatherID: string;
  businessType: BusinessTypeKey;
  matterType: MatterTypeKey;
  parentID: string;
  name: string;
  sort: string;
  formSchema: any;
  assembly: string[];
  dataID: string;
}

export interface IGatherMatter extends IMatter {
  businessID: string;
}

export interface IStepMatter {
  ID: string;
  gatherID: string;
  businessType: BusinessTypeKey;
  stepID: string;
  matterID: string;
  formPermission: string[];
  costPermission: string[];
  profilePermission: string[];
}

export interface IGatherStepMatter extends IStepMatter {
  businessID: string;
}

export interface IYsProfileTemplate {
  ID: string;
  parentID: string;
  gatherID: string;
  businessType: BusinessTypeKey;
  name: string;
  sort: string;
  enable: boolean;
  required: boolean;
  folder: boolean;
  mode: string[];
}

export interface IGatherYsProfileTemplate extends IYsProfileTemplate {
  businessID: string;
}

export interface IDynamicStep {
  ID: string;
  gatherID: string;
  businessType: BusinessTypeKey;
  stepID: string;
  nextStepID: string;
  executorID: boolean;
}

export interface IGatherDynamicStep extends IDynamicStep {
  businessID: string;
}
