123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504 |
- declare namespace API {
- type BasicPageParams = {
- /** 页码 */
- current: number
- /** 页数 */
- pageSize: number
- }
- type BasicFetchResult<T> = {
- items: T[]
- total: number
- }
- type ProjectList = BasicFetchResult<ProjectListItem>
- 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<ProjectUpdateParams, 'ID'>
- type ProjectTypeList = ProjectTypeListItem[]
- type ProjectTypeListItem = {
- name: string
- ID: string
- updatedTime: string
- createdTime: string
- }
- /** 事业单位列表 */
- type InstitutionList = BasicFetchResult<InstitutionListItem>
- 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<InstitutionListItem, 'createdTime' | 'updatedTime' | 'ID'>
- type InstitutionUpdateParams = Omit<InstitutionListItem, 'createdTime' | 'updatedTime'>
- /** 账号列表 */
- type AccountList = BasicFetchResult<AccountListItem>
- 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<AcountAddParams, 'account' | 'accountType' | 'password'> & {
- 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<MatterTreeItem, 'children'>
- type AddMatterParams = Pick<MatterTreeItem, 'subjectID' | 'businessType' | 'matterType' | 'name'>
- type UpdateMatterParams = Pick<MatterTreeItem, 'ID' | 'parentID' | 'name'>
- type DelMatterParams = Pick<MatterTreeItem, 'ID'>
- }
|