import { PageQueryParam } from '@/types/api/base';

/**
 * 远程配置任务查询声明
 */
export interface TaskRemoteCfgQueryParam extends PageQueryParam {
  deviceSn?: string,
  stationCode?: string;
  finishedFlag?: string;
  createTimeStart?: Date;
  createTimeEnd?: Date;
  deviceType?: string;
}

/**
* 远程配置任务业务声明
*/
export interface TaskRemoteCfg {
  id: number,
  taskId: string,
  deviceSn: string,
  stationCode: string,
  lastVal: number,
  ip1Port1: string,
  ip2Port2: string,
  ip3Port3: string,
  ip4Port4: string,
  domainNamePort: string,
  dnType: number,
  digitNum: number,
  uintType: number,
  setupDir: string,
  sampleInterval: number,
  wheelNum: number,
  upInterval: number,
  ltSampleInterval: number,
  workLt: number,
  workHt: number,
  batAlarmVt: number,
  batAlarmSoc: number,
  aiPullBack: number,
  aiPass: number,
  aiSinglePass: number,
  cpuVersion: string,
  tongxunVersion: string,
  tianxianType: string,
  tongxunWay: string,
  networkRegTimeout: number,
  pwmHz: number,
  pwmDuty: number,
  flashBrightMin: number,
  flashBrightMax: number,
  setupYear: string,
  upWholeImgWeekRule: string,
  ip1ExpandOn: string,
  createMan: string,
  createTime: Date,
  finishedFlag: string,
  finishedTime: Date,
  meterFontStyle: string,
  stationName: string,
  deviceType: string,
  pgRangeMin: number,
  pgRangeMax: number,
  pgPrecisionType: number,
  pgCorrectvalue: number,
  pgManualConfig: string,
  pgIsDebug: string,
  pgInitTargetRegion: string,
  pgManualConfigCol: string,
  originx: number,
  originy: number,
  endx: number,
  endy: number,
  centerx: number,
  centery: number,
  isprintcomlog: string,
  isresetwdt: string,
  isresetbat: string,
  isrestmcu: string,
  uploadLastFailLogFlag: string,
  logTaskManwakeupFlag: string,
  pgManualConfigLevel: string,

  wiTaskManwakeupFlag: string,
  wiTaskMonthFlag: string,
  wiTaskSpecdateFlag: string,
  logUploadRules: string,
  wiTaskSpecdateEnable: string,//使能开关,0:Disable;1:Enable;
  wiTaskSpecdateDate: string,//指定的开始日期（yyMMdd)
  wiTaskSpecdateDays: number,//天数
  wiTaskSpecdateTimes: number,//频次

  //对日志上传规则为前台进行分割转换
  logUploadEnable: string,//使能开关,0:Disable;1:Enable;
  logUploadDate: string,//指定的开始日期（yyMMdd)
  logUploadDays: number,//天数
  logUploadTimes: number,//频次
  logUploadMcuLevel: number,//CU主程序上传级别(0:不上传； 1:精简信息； 2:全部信息)
  logUploadAiLevel: number,//AI算法上传级别(0:不上传；1：精简信息；2:全部信息)

  batchFlag:string,//是否是临时批量任务

  imageType: number,//图片类型(=1 时BMP565彩色图>1 时JPG彩色图(用质量的字节数来代替类型)取值范围1-20000默认出场配置841)
  imageMargin: number,//图片像素外扩(取值范围0-30)
  imageConfig: string,//人工配置值启用标志、旋转角度、数字区域坐标
  uploadCnnFlag: string,//上传模型输出标记
  nmsThreshold: number,//NMS阈值

  //对imageConfig的转换
  imageConfigFlag: string,//使能开关,1启用
  imageLeanAngle: number,//旋转角度
  imageNumRegionXMin: number,//数字区域-xMin
  imageNumRegionYMin: number,//数字区域-yMin
  imageNumRegionXMax: number,//数字区域-xMax
  imageNumRegionYMax: number,//数字区域-yMax
  isUseDetectedNum:string,//是否使用检测到的大框来排除野数字

  regionImageType:string,//指定坐标区域上报的图片类型
  jpgCompressType:string,//要上报的JPG的压缩类型
}