import type { BaseWorkflowForm } from '@cacp/ui'

export const contextPath = '/government'

// const processCode = 'DemoSimpleProcess'
export const processCode = 'DemoParentProcess'
export const urlFormat = 'http://localhost:3000/#/gov-detail-oper?mode=oper'
export const range = 2

export interface GovernmentInfo extends BaseWorkflowForm {
  formContent?: string
}

export const initGovernment: GovernmentInfo = {
  formId: '',
  appCode: '',
  formTitle: '',
  formStatus: 'NOSTART',
  exists: true,
  processId: '',
  processCode: '',
  processRange: 0,
  issueUserId: '',
  issueUserName: '',
  issueUserParentId: '',
  issueUserFullPathName: '',
  issueDeptFullPathName: '',
  createTime: ''
}

export interface GovernmentQueryInfo {
  title: string
  startDate: string
  endDate: string
  pageSize: number
  pageIndex: number
}

export interface UserTaskQueryInfo {
  type: string
  pageSize: number
  pageIndex: number
}
