import { PageQueryParam } from '../base';

/**
 * 抄表器基本参数配置查询声明
 */
export interface TAicbqCfgQueryParam extends PageQueryParam {
  deviceSn: string,
  stationCode?: string,
  useFlag: string,
  createTimeStart: Date,
  createTimeEnd: Date,
  dataFrom: string,
  deviceType: string
}

/**
* 抄表器基本参数配置声明
*/
export interface TAicbqCfg {
  id: number,
  cfgId: string,
  deviceSn: string,
  stationCode: string,
  lastVal: number,
  serverIp1: string,
  serverPort1: number,
  serverIp2: string,
  serverPort2: number,
  serverIp3: string,
  serverPort3: number,
  serverIp4: string,
  serverPort4: number,
  domainName: string,
  domainPort: number,
  dnType: number,
  digitNum: number,
  wheelNum: number,
  uintType: number,
  setupDir: string,
  sampleInterval: 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,
  upWholeImgWeek1: string,
  upWholeImgWeek2: string,
  upWholeImgWeek3: string,
  upWholeImgWeek4: string,
  upWholeImgWeek5: string,
  upWholeImgWeek6: string,
  upWholeImgWeek7: string,
  ip1ExpandOn: string,
  createTime: Date,
  dataFrom: string,
  taskDownId: string,
  invalidTime: Date,
  useFlag: string,
  meterFontStyle: 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,

  wiTaskManwakeupFlag: string,
  wiTaskMonthFlag: string,
  wiTaskSpecdateFlag: string,
  logUploadRules: string,
  uploadLastFailLogFlag: string,
  logTaskManwakeupFlag: string,
  pgManualConfigLevel: 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:全部信息)

  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的压缩类型
}