declare namespace API { type BasicPageParams = { /** 页码 */ current: number /** 页数 */ pageSize: number } type BasicFetchResult = { items: T[] total: number } type ProjectList = BasicFetchResult type ProjectListItem = { createdTime: string name: string created: Nullable<{ ID: string name: string institution: { ID: string name: string } }> createdID: string projectTypeID: string ID: string reportAccount: { ID: string; name: string }[] approval: { ID?: string name?: string } } type ProjectDetail = ProjectListItem & { approval: Nullable<{ ID: string; name: string }> } type ProjectListParams = BasicPageParams & { search?: string projectTypeID?: string } type ProjectDelParams = { ID: string } type ProjectUpdateParams = { ID: string name: string projectTypeID: string } type ProjectAddParams = Omit type ProjectTypeList = ProjectTypeListItem[] type ProjectTypeListItem = { name: string ID: string updatedTime: string createdTime: string } /** 事业单位列表 */ type InstitutionList = BasicFetchResult type InstitutionListItem = { name: string /** @name 简称 */ acronym: string /** @name 企业代码 */ enterpriseCode: string /** @name 组织结构代码 */ organizationCode: string /** @name 人员账号数量 */ institutionAccountTotal: number bank: string bankAccount: string phone: string address: string fax: string legalPerson: string idCard: string createdTime: string updatedTime: string ID: string /** @name 成员总数 */ memberTotal: number /** @name 单位管理员 */ manager: { ID: string name: string } } type InstitutionListParams = BasicPageParams & { search?: string accountType?: string dataID?: string isCreated?: string } type InstitutionAddParams = Omit type InstitutionUpdateParams = Omit /** 账号列表 */ type AccountList = BasicFetchResult type AccountListItem = { ID: string createdTime: number accountType: string account: string name: string phone: string institution: { ID: string name: string } key: string value: string created?: { id: string name: string } createdID: string id: string dataID: string gender: string } type AccountListParams = BasicPageParams & { search?: string /** @name 账号类型(1-企事业账号) ... */ accountType: number } type AcountAddParams = { /** @name 企事业ID */ institutionID: string /** @name 账号类型(1-企事业账号) ... */ accountType: string account: string password: string name: string phone?: string gender: number } type AcountUpdateParams = Omit & { ID: string } type AcountInstitutionListParams = BasicPageParams & { search?: string /** @name 账号类型(1-企事业账号) ... */ accountType: number /** @name 对应类型ID*/ dataID?: string } type AccountType = { value: number name: string } type OrganizationalStructureListParams = { structureType: string dataID: string } type OrganizationalListParams = { institutionID: string } type OrganizationalStructureListItem = { structureType: number dataID: string name: string parentID: string ID: string accountTotal: number sort: number id: string children: OrganizationalStructureListItem[] isLeaf: boolean } type OrganizationalStructureAddParams = { structureType: string dataID: string name: string parentID: string } type OrganizationalStructureUpdateParams = { ID: string name: string } type OrganizationalStructureMoveSortParams = { ID: string operation: string } type OrganizationalStructureMoveParams = { ID: string moveID: string } type OrganizationalStructureDelParams = { ID: string } type Schema = { ID: string columnType: number schema: string } type SchemaParams = { columnType: number } type ApprovalItem = { ID: string name: string flowProcess: any flowProcessData: any } type ApprovalList = ApprovalItem[] type ApprovalListParams = BasicPageParams & { search?: string } type ApprovalSetParams = { ID: string accountID: string approvalID: string } type LoginParams = { account: string password: string autoLogin: boolean type: string } type LoginResult = { code: number msg: number } type AurrentAccount = { ID: string createdTime: number accountType: string account: string name: string phone: string institution: { ID: string name: string } created: string createdID: string id: string dataID: string gender: string } type UpdateSettingParams = { password: string newPassword: string confirmPassword: string } type SettingInfo = { name: string logo: string backstageName: string backstageLogo: string } type MenuRoleItem = { id: string name: string } type RoleListParams = { normal?: boolean } type CreateRoleParams = { name: string } type UpdateRoleParams = { ID: string name: string } type DelRoleParams = { ID: string } type RoleStaffItem = { account: string name: string institution: { ID: string name: string } } type LinkAccountParams = { ID: string accountID: string } type RolePermissionParams = { ID: string frontPermission: string } type DataSourceMenuItem = { ID?: string name?: string url?: string items?: DataSourceItem[] } type DataSourceItem = { ID?: string name?: string enable?: string index?: number } type TemplateListItem = { action?: string name?: string schema?: string } type SaveApprovalParams = { name?: string accountIDs?: AccountListItem[] } type ApprovalAccountDetail = { name: string institutionID: string accountIDs: [] } type ProfileTemplateItem = { ID?: string parentID?: string name?: string enable?: boolean required?: boolean mode?: 'paper' | 'upload' sort?: number folder?: boolean moveable?: boolean position?: 'top' | 'bottom' children?: ProfileTemplateItem[] } type InstitutionRoleItem = { ID: string acronym: string approvalMember: any[] created: string createdID: string createdTime: number id: string institutionAcountTotal: number memberTotal: number name: string } type AddInstitutionRoleParams = { institutionID: string accountID: string } type UpdateInstitutionRoleParams = { ID: string institutionID: string accountID: string } type RuleCodeUpdateParams = { tab: string rules: any[] } type SubjectParams = { ID: string name: string institutionIDs: any[] } type RuleCodeParams = { tab: string subjectID: string } type ExecutorItem = { ID?: string name?: string /** 设置方式: yz-预置成员,bz-步骤设置 */ setType?: 'yz' | 'bz' /** 审批模式: user-指定用户, xx-会签, yy-或签 */ approvalType?: 'user' step?: string members?: { type: string value: string | string[] } businessType?: string } type AccountBgParams = { name: string account: string password: string roleIDs: string enable: boolean } type Executor = { ID?: string name?: string configure?: string[] /** 表示该执行者由动态配置出来的 */ dynamicID?: string dynamicSteps?: { executorID: string; stepID: string }[] } type ParticipantInfo = { approvalWay?: string executor?: Executor dynamicID?: string dynamicSteps?: { stepID: string; executorID: string }[] stepMatters?: { matterID: string formPermission: string[] costPermission: string[] profilePermission: string[] }[] } type ConditionInfo = { ID?: string /** 条件内容 */ specificCondition?: { condition?: [string, string, string]; value?: string }[] process?: ApprovalProcess[] } /** 业务审批 */ type ApprovalProcess = { ID?: string name?: string sectorType?: 'approval' | 'condition' participantInfo?: ParticipantInfo conditionInfo?: ConditionInfo[] } type LoginLogParams = { ID: string ip: string ipInfo: string browser: string os: string userID: string platform: string createTime: number id: string } type MatterTreeItem = { ID?: string subjectID?: string matterType?: 'category' | 'matter' businessType?: string parentID?: string name?: string sort?: number assembly?: any[] id?: string children?: MatterTreeItem[] } type MatterItem = Omit type AddMatterParams = Pick type UpdateMatterParams = Pick type DelMatterParams = Pick }