import { ICreator } from '@/api/common'

export const base = '/survey'
export interface IFlaw extends ICreator {
  according: string
  algorithmNote: string
  description: string
  id: number
  interfaceDescription: string
  interfaceName: string
  interfaceCode: string
  name: string
  note: string
  type: string
  monitorIds: string
}

export interface IInterface {
  algorithmNote: string
  id: number
  interfaceCode: string
  interfaceDescription: string
  interfaceName: string
  interfaceUrl: string
}

export interface IParam {
  id: number
  interfaceCode: string
  paramCode: string
  paramNotes: string
  paramValue: string
  unit: string
}

export interface IFlawParam {
  defectinfo: Omit<Partial<IFlaw>, 'monitorIds'> & {
    monitorIds?: number[]
  }
  defectinfoParmSet: IParam[]
}
