import { CarInfoType, DrvexamType, ES_CARINFOType, MA_CDSBINFOType, MA_ITEMINFOType, MA_MAP_POINT_ITEMType, MA_MAP_POINTType, MA_MARKRULEType, MA_SYSTEMPARMType, User } from '.'; // -----new----- export interface ApiResponseType { //获取考车信息 /der2/services/exam/obtainCarExamInfo.ws obtainCarExamInfoRsp?: ObtainCarExamInfoRsp // 自检结果上传 /der2/services/exam/uploadExamCarCheckResult.ws uploadExamCarCheckResultRsp?: UploadExamCarCheckResultRsp // 设备注册 /der2/services/exam/registrationDeviceNo.ws registrationDeviceNoRsp?: RegistrationDeviceNoRspDetails; // 时间同步 /der2/services/exam/timeSynchronization.ws timeSynchronizationRsp?: TimeSynchronizationRsp; // 缺考 examinationStuAbsentRsp?: ExaminationStuAbsentRsp // 考官登录 examinerLoginRsp?: ExaminerLoginRsp } interface ExaminerLoginRsp { head: Head body: ExaminerLoginInfo } export interface ExaminerLoginInfo { carId?: string; examinationRoomId?: string; examinerName?: string; examinerPwd?: string; username?: string; kgxm?: string; ksyh?: string; plateNo?: string isNeedCheck?: string examSubject?: string } interface ExaminationStuAbsentRsp { head: Head } interface TimeSynchronizationRsp { head: Head body: TimeSynchronizationRspBody } export interface TimeSynchronizationRspBody { mode?: string; url?: string paraKdid?: string kdid?: string } export interface examinerLoginRsp { bz1?: string; fieldid?: string kchp?: string ksdd?: string kscx?: string kskm?: string kslx?: string kssycs?: string ksxl?: string ksy1?: string kszt?: string lsh?: string sfzmhm?: string xb?: string xh?: string xldm?: string xm?: string yycs?: string ksy1sfzmhm?: string } interface UploadExamCarCheckResultRsp { head: Head } interface ObtainCarExamInfoRsp { head: Head body?: ObtainCarExamInfoRspBody } export interface ObtainCarExamInfoRspBody extends CarInfoType { carId: string; carIp: string; carNo: string; examSubject: string; examinationRoomId: string; gpsAddress: string; hintPort: string; isNeedCheck: string; ksdd: string; messagePort: string; plateNo: string; udpAddress: string; voicePort: string; } export interface TimeSynchronizationParams { time: string deviceNo: string version: string judgeVersion: string } interface Head { resultCode?: string; time?: string; resultMessage?: string; checkCode?: string; } export interface InitModelParams { head: Head; body: InitModelBody; } export interface InitModelResponse { body: InitModelResponseBody } interface InitModelResponseBody { // TODO ES_MODEL: ESObject } interface InitModelBody { rtkType?: string; rspType?: string; paraKdid?: string; examinationRoomId?: string; carMac?: string; } // -----new----- interface RegistrationDeviceNoRspDetails { head: Head; } interface ImageCompareRsp { head: Head; body: ImageCompareRspBodyType } interface ImageCompareRspBodyType { GunCameraInfo: PublicInfoType, Sysset: PublicInfoType, SystemParm: PublicInfoType, MarkRule: PublicInfoType, MarkRuleSet: PublicInfoType, Cdsbinfo: PublicInfoType, CarInfo: PublicInfoType, ItemInfo: PublicInfoType } //-----开始 初始化表结构--- export type PublicInfoType = Array | RecordType; export interface RecordType extends User, MA_SYSTEMPARMType, ES_CARINFOType, MA_SYSTEMPARMType, MA_CDSBINFOType, MA_ITEMINFOType, MA_MAP_POINTType, MA_MAP_POINT_ITEMType, MA_MARKRULEType {} //-----结束 初始化表结构--- export interface GetExaminationStudentInfoResponse { getExaminationStudentInfoRsp: ImageCompareRsp } export interface FaceCompareResp { imageCompareRsp?: ImageCompareRsp } export interface ResponseDataType { // initializationRsp?: ImageCompareRsp head: Head body: ImageCompareRspBodyType } export interface SpzdType { carId?: string; examinationRoomId?: string; examinerName?: string; examinerPwd?: string; username?: string; kgxm?: string; ksyh?: string; } export interface IdCard { name?: string; sex?: string; nation?: string; born?: string; address?: string; idCard?: string; photo?: string; } export interface TimeInfo { mode: string; url: string; paraKdid: string; kdid: string; carid: string; ksdd: string; } export interface CarConfigurationInfoResponse { body: CarConfigurationInfoResponseBody } interface CarConfigurationInfoResponseBody { ES_CHECK_CAR_ITEM: Array; } interface ES_CHECK_CAR_ITEMItem { ITEMS: string; } export interface ObtainCarExamInfoParams { time: string deviceNo: string } //监管接口参数 export interface RegulatoryInterfaceParams { xtlb?: string; jkxlh?: string; jkid?: string; drvexam?: DrvexamType } export interface BeginExamRequest { keystr?: string; message?: string | Resource; code?: number } export interface GetExaminationItemRsp { getExaminationItemRsp: GetExaminationItemRspDetails } interface GetExaminationItemRspDetails { head?: Head; body: GetExaminationItemRspBody; } interface GetExaminationItemRspBody { ykxx: string; kssycs?: string | number; } export interface ExaminationStuAbsentParams { carId: string; sfzmhm?: string; examinationRoomId: string; username: string; lsh?: string; md5Message?: string }