import { PageQueryParam } from '@/types/api/base';
import { TServerReadModel } from '../tserverread';
/**
 * 数据查询声明
 */
export interface TAireadQueryParam extends PageQueryParam {
    deviceSn?: string;
    startTime?: string;
    endTime?: string;
    groupCode?: string;
    stationName?: string;
    stationCode?: string;
}

export interface UnitQueryParam extends PageQueryParam {
    type:number;
    code:string;
}

export interface StationsQueryParam extends PageQueryParam {
    stationCodes:string;
}

/**
* 数据声明
*/
export interface TAireadModel {
    id: number;
    aireadId: string;
    deviceSn: string;
    stationCode: string;
    wmId: string;
    goodFlag: string;
    resultValue: string;
    identValue: number;
    rawValue: number;
    debugInfo: string;
    funCode: string;
    sampleTime: string;
    rptTime: string;
    revTime: string;
    voltage: number;
    temperature: number;
    socRate: number;
    mcuRunNum: number;
    batRumTime: number;
    rsrp: number;
    errorCode: string;
    softVer: string;
    ccid: string;
    snr: number;
    hardwareCode: string;
    nbVersion: string;
    hardVersion: string;
    smallJpgUrl: string;
    smallJpgPackGid: string;
    bigJpgUrl: string;
    bigJpgPackGid: string;
    ressiuePackGid: string;
    picHeigth: string;
    picWidth: string;
    szsbz: string;
    szsbgl: string;
    actualAmount: number;
    preAmount: string;
    preTime: string;
    intervalMinutes: number;
    reviewFlag: string;
    reviewResultFlag: string;
    reviewMan: string;
    reviewTime: string;
    reviewValue: number;
    taskReviewId: string;
    src: string;
    srcList: string[];
    alist: string[];
    blist: string[];
    serverReadModel:TServerReadModel;
    stationName:string;
    aiVersion:string;
    tranDuration:number;//报文传输时长
    deviceType:string;//设备类型(1水表,2压力表...)
    deviceUnitName:string;//设备计量单位名称(pa,kpa...)
    loseFlag:string;//丢数据标记(当前记录MCU运行次数减去上一条不等于1时,代表有数据丢失)
    decimalDigits:number;//读数的小数点位数(为了展示绝对的小数点,末位是0也要展示) 2022-10-24 guozhao

    ip1SendStatus:number;//IP1发送状态
    randomCode:string;//MCU随机码
    picType:number;//图片类型
    nbRegLocation:string;//NB位置信息 2022-11-15 guozhao

    serverAList:string[];//服务侧识别调试信息
    serverBList:string[];//服务侧识别调试信息
}