2025-04-15 14:24:27 +08:00
|
|
|
import {
|
|
|
|
|
CarInfoType,
|
|
|
|
|
DrvexamType,
|
|
|
|
|
ES_CARINFOType,
|
|
|
|
|
MA_CDSBINFOType,
|
|
|
|
|
MA_ITEMINFOType,
|
|
|
|
|
MA_MAP_POINT_ITEMType,
|
|
|
|
|
MA_MAP_POINTType,
|
|
|
|
|
MA_MARKRULEType,
|
|
|
|
|
MA_SYSTEMPARMType,
|
|
|
|
|
User
|
|
|
|
|
} from '.';
|
2025-04-10 10:28:07 +08:00
|
|
|
|
|
|
|
|
// -----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
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-15 10:16:33 +08:00
|
|
|
export interface ObtainCarExamInfoRspBody extends CarInfoType {
|
2025-04-10 10:28:07 +08:00
|
|
|
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;
|
2025-04-15 14:24:27 +08:00
|
|
|
body: ImageCompareRspBodyType
|
2025-04-10 10:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
2025-04-15 14:24:27 +08:00
|
|
|
interface ImageCompareRspBodyType {
|
2025-04-22 14:35:34 +08:00
|
|
|
GunCameraInfo: PublicInfoType,
|
|
|
|
|
Sysset: PublicInfoType,
|
|
|
|
|
SystemParm: PublicInfoType,
|
|
|
|
|
MarkRule: PublicInfoType,
|
|
|
|
|
MarkRuleSet: PublicInfoType,
|
|
|
|
|
Cdsbinfo: PublicInfoType,
|
|
|
|
|
CarInfo: PublicInfoType,
|
|
|
|
|
ItemInfo: PublicInfoType
|
2025-04-15 14:24:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//-----开始 初始化表结构---
|
|
|
|
|
|
|
|
|
|
|
2025-04-22 16:26:36 +08:00
|
|
|
export type PublicInfoType = Array<RecordType> | RecordType;
|
2025-04-15 14:24:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
export interface RecordType extends User, MA_SYSTEMPARMType, ES_CARINFOType, MA_SYSTEMPARMType, MA_CDSBINFOType, MA_ITEMINFOType, MA_MAP_POINTType, MA_MAP_POINT_ITEMType, MA_MARKRULEType {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-----结束 初始化表结构---
|
|
|
|
|
|
2025-04-10 10:28:07 +08:00
|
|
|
|
|
|
|
|
export interface GetExaminationStudentInfoResponse {
|
|
|
|
|
getExaminationStudentInfoRsp: ImageCompareRsp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface FaceCompareResp {
|
|
|
|
|
imageCompareRsp?: ImageCompareRsp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ResponseDataType {
|
2025-04-22 14:35:34 +08:00
|
|
|
// initializationRsp?: ImageCompareRsp
|
|
|
|
|
head: Head
|
|
|
|
|
body: ImageCompareRspBodyType
|
2025-04-10 10:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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<ES_CHECK_CAR_ITEMItem>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
2025-08-12 11:05:28 +08:00
|
|
|
sfzmhm?: string;
|
2025-04-10 10:28:07 +08:00
|
|
|
examinationRoomId: string;
|
|
|
|
|
username: string;
|
2025-08-12 11:05:28 +08:00
|
|
|
lsh?: string;
|
|
|
|
|
md5Message?: string
|
2025-04-10 10:28:07 +08:00
|
|
|
}
|
|
|
|
|
|