export const base = '/survey'

export interface IDataQuery {
  checkCode: string
  checkResult: string
  checkTargetName: string
  checkValue: number
  collectTime: string
  groupId: number
  groupName: string
  id: number
  iscancel: number
  partitionId: number
  partitionName: string
  siteAddress: string
  siteId: string
  siteName: string
  thresholdScope: string
  unit: string
}

export interface IDataQueryParam {
  /** 数据开始时间 yyyy-MM-dd HH:mm:ss */
  beginDate: string
  /** 数据结束时间 yyyy-MM-dd HH:mm:ss */
  endDate: string
  /** 判定结果 多个以,号分割 如果全部就不传 */
  checkResult: string
  /** 监测指标名称 多个以,号分割 */
  checkTargetName: string
  /** 数据有效性 不传为全部 只能单选 */
  iscancel: string
  /** 模糊查询 排水分区、分组、监测站点 */
  queryLike: string
}
interface IStatisticsDataItem {
  avgValue: string
  maxValue: string
  minValue: string
  xposition: string
}
interface IStatisticsRainFallItem {
  avgFall: number
  maxFall: number
  minFall: number
  rfall: number
  rfallTotal: number
  xposition: string
}
export interface IStatisticsData {
  checkCode: string
  siteAndIndicateVo: {
    yearData: IStatisticsDataItem[]
    quarterData: IStatisticsDataItem[]
    monthData: IStatisticsDataItem[]
  }
}

export interface IStatisticsDayNHour {
  datas: {
    checkCode: string
    statisticalData: IStatisticsDataItem[]
  }[]
  rainFallVos: IStatisticsRainFallItem[]
  xlist: string[]
}

export interface IStatisticsBase {
  beginDate: string
  endDate: string
  days: number
  partitionName: string
  notes: string
  groupByName: string
  siteName: string
  siteNote: string
  longitude: string
  latitude: string
}

export interface IAssessmentBase {
  assessmentPipes: {
    pipeLength: number
    pipeLevel: string
    pipePerCent: string
  }[]
  contentGauge: number
  coverPipe: number
  monitoringPoint: number
  pipeLength: number
  pipeMonitor: number
  waterMonitor: number
}
export interface IAssessmentFlaw {
  legendData: string[]
  seriesDatas: {
    name: string
    seriesData: number[]
  }[]
  xaxis: string[]
}
export interface IAssessmentHealth {
  value: number
  name: string
}
export interface IAssessmentAssessment {
  value: number
  name: string
}
export interface IAssessment {
  drainageType: string
  groundwaterIntrusion: number
  healthLever: string
  id: number
  length: number
  networkBroken: number
  pipeDiameter: number
  pipeNo: string
  pipelineLevel: string
  rainSewageHybrid: number
  roadName: string
  sewageStraightLine: number
  texture: string
}
