123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410 |
- #ifndef HTTPDATADEF_H
- #define HTTPDATADEF_H
- #include <QString>
- #include <QStringList>
- #include <map>
- #include <QDateTime>
- enum class HttpParamType
- {
- hptUrl = 1, //放到url后面
- hptCustomBody,//自定义body
- hptBody, //放到body里面
- hptFormdata
- };
- enum class HttpType
- {
- htPost = 1,
- htGet,
- htGetUrl,//get固定url
- htPut,
- htDownload
- };
- enum class RequestType
- {
- rtUndefine = 0,
- rtUpgrade,//客户端版本升级接口
- rtGetSoftwareConfig,//获取检测黑名单
- rtAgreement,//获取隐私协议接口
- rtStudentClientConfig, //获取当前机构的客户端环境信息接口
- rtSysNotice,//平台通知接口
- rtLoginLimit,//登录限流接口
- rtLogin,//登录
- rtLogout,//退出登录接口
- rtEditPassword, //修改密码
- rtGetStudentClientMenu,//获取菜单列表
- rtGetStudentInfoBySession,// 获取考生信息
- rtOnlineSignal,//学生在线状态
- rtSpecialtyNameList,//查询考生的专业列表
- rtGetUserNoticeList,//获取用户公告列表
- rtUpdateNoticeReadStatus,//更新通知状态为已读
- rtAppDownLoadUrl,//app下载地址
- rtAppEnabled,//查询机构是否开放APP
- rtQueryBatchList,// 取考试批次列表 queryByNameLike
- rtGetExamProperty,//查询某考生的考试属性
- rtQueryExamList,//获取在线考试待考列表
- rtQueryExamEndList,//获取在线考试已结束列表
- rtQueryObjectiveScoreList,//根据examStudentId获取客观分信息
- rtQueryHomeworkList,//获取在线作业待考列表
- rtQueryPracticeCourseList,//练习课程列表
- rtQueryPracticeRecordList,//课程练习记录详情
- rtGetPracticeDetailInfo, //单次练习答题情况统计
- rtFindExamRecordDataEntity,//获取当前考试记录信息
- rtGetExamRecordQuestions,//获取交卷之后的所有试题作答信息
- rtGetOfflineCourse,//获取离线考试列表
- rtGetOffLineExamAnswerSheet,//下载离线考试答题纸接口
- rtStartOfflineExam,//离线考试 : 开始考试
- rtGetOffLineExamPaper, //离线考试 – 下载试卷
- rtPreviewOffLineExamPaper,//离线考试 – 查看试卷
- rtSubmitOfflinePaper,//离线考试:交卷 submitPaper
- rtStartExamLimit,//开始考试限流
- rtIpLimit,//检查考试是否IP限制
- rtCheckExamInProgress,//断点续考:检查正在进行中的考试
- rtStartExam,//开始考试
- rtFaceCheckEnabled,//检查考试是否支持人脸识别
- rtLivenessEnabled,//考试是否支持活体检测
- rtWeiXinAnswerEnabled, //考试是否可以微信作答
- rtGetCourseInfo,//获取课程名称
- rtGetExamById,//按ID获取考试信息接口
- rtStartAnswer,//开始答题
- rtGetQuestionContent,//取某个试题信息-考中
- rtGetQuestion,//取某个试题信息-考后
- rtSubmitQuestionAnswer,//考试过程中-考生试题作答
- rtEndExam,//结束考试:交卷
- rtGetEndExamInfo, //获取考试记录信息-交卷后获取考试分数
- rtExamHeartbeat,//考试心跳
- rtFindExamQuestionList,//考试过程中-获取已做答试题列表
- rtGetExamRecordPaperStruct,//获取考试记录试卷结构
- rtDownLoadFile, //下载文件
- rtGetWXQrCode,//获取微信二维码
- rtSaveUploadedFileAcknowledgeStatus,//修改上传音频或图片结果推送状态
- rtProcessUpload, //文件上传
- rtSaveFaceCompareResult,//保存人脸识别比对验证结果
- rtSaveFaceCaptureResult,//保存人脸抓拍比对验证结果
- rtSaveFaceLiveVerifyResult,//保存人脸活体验证结果
- rtStartFaceLiveVerify,//开始人脸活体验证接口,如:活检次数,活检开始时间等
- rtGetOrgPropertiesByGroupWithoutCache//获取活检配置参数接口
- };
- class CHttpRequestPackage
- {
- public:
- RequestType nRequestType;
- HttpType nHttpType;
- QString sUri;
- QString sCommonStr;
- QString sCommonStr1;
- QString sAdditionStr;
- HttpParamType eParamType;
- QStringList sParamList;
- QStringList sHeadList;
- int nRetryCount;
- CHttpRequestPackage()
- {
- nRequestType = RequestType::rtUndefine;
- nHttpType = HttpType::htPost;
- eParamType = HttpParamType::hptUrl;
- sUri = "";
- sCommonStr = "";
- sCommonStr1 = "";
- sAdditionStr = "";
- nRetryCount = 0;
- }
- };
- class CBaseResponsePackage
- {
- public:
- int nCode;
- QString sMessage;
- CBaseResponsePackage()
- {
- nCode = 0;
- sMessage = "";
- }
- };
- class CGetSoftwareConfig : public CBaseResponsePackage
- {
- public:
- QString sSoftwareConfig;
- CGetSoftwareConfig()
- {
- sSoftwareConfig = "";
- }
- };
- class CUpgrade : public CBaseResponsePackage
- {
- public:
- QString sVersion;
- int nBuild;
- QString sContent;
- bool bForce;
- QString sUpgradeUrl;
- CUpgrade()
- {
- sVersion = "";
- nBuild = 0;
- sContent = "";
- bForce = true;
- sUpgradeUrl = "";
- }
- };
- class CAgreement : public CBaseResponsePackage
- {
- public:
- QString sTitle;
- int nStaySeconds;
- QString sContent;
- CAgreement()
- {
- sTitle = "";
- nStaySeconds = 15;
- sContent = "";
- }
- };
- class CStudentClientConfig : public CBaseResponsePackage
- {
- public:
- QString sCusMenuLogoFileUrl;
- QString sIdentityNumberLoginAlias;//身份证号登录34s
- bool bIsCustomMenuLogo;// : "false",
- bool bStudentCodeLogin;
- bool bIdentifyNumberLogin;
- QString sLogoFileUrl;//" : "https://ecs-test-static.qmth.com.cn/org_logo/0/1613800689888.png",
- QString sStudentClientBgPictureUrl;
- QString sOeStudentSysName;//" : "网考 - 33d34sss3d",
- bool bDisableMutiScreen;
- bool bDisableRemoteAssistance;
- bool bFullScreenTop;
- bool bDisableVirtualCamera;
- QString sRootOrgId;// " : "0",
- bool bShowQmthLogo;// " : "false",
- bool bShowStudentClientAppQrcode;// " : "true",
- QString sStudentCodeLoginAlias;// " : "学号登录34s"
- CStudentClientConfig()
- {
- sCusMenuLogoFileUrl = "";
- sIdentityNumberLoginAlias = "";
- bIsCustomMenuLogo = false;
- bStudentCodeLogin = false;
- bIdentifyNumberLogin = false;
- sLogoFileUrl = "";
- sStudentClientBgPictureUrl = "";
- sOeStudentSysName = "";
- bDisableMutiScreen = false;
- bDisableRemoteAssistance = false;
- bFullScreenTop = false;
- bDisableVirtualCamera = false;
- sRootOrgId = "";// " : "0",
- bShowQmthLogo = false;// " : "false",
- bShowStudentClientAppQrcode = false;// " : "true",
- sStudentCodeLoginAlias = ""; // " : "学号登录34s"
- }
- };
- class CSysNotice : public CBaseResponsePackage
- {
- public:
- __int64 nId;// 1,
- __int64 nRootOrgId;//-1, //顶级机构ID,-1代表所有机构
- QString sContent;//"平台将于今天下午1点停服升级,请知悉!",
- QString sStartTime;// "2021 - 08 - 11 00:00 : 00", //生效开始时间
- QString sEndTime;//"2021 - 08 - 12 00:00 : 00", //生效截止开始时间
- QString sTitle;//"升级通知",
- bool bEnable;// false //是否启用
- CSysNotice()
- {
- nId = 0;
- nRootOrgId = -1;
- sContent = "";
- sStartTime = "";
- sEndTime = "";
- sTitle = "";
- bEnable = false;
- }
- };
- class CLoginLimit : public CBaseResponsePackage
- {
- public:
- int nCount;
- bool bPass; // true代表未限制
- CLoginLimit()
- {
- nCount = 0;
- bPass = false;
- }
- };
- class CLoginInfo : public CBaseResponsePackage
- {
- public:
- QString sUserType;// "STUDENT",
- __int64 nUserId;// 4,
- QString sDisplayName;// "张三",
- __int64 nRootOrgId;// 0,
- QString sRootOrgName;// 启明泰和",
- QString sCreationTime;//"2021 - 08 - 26 17:23 : 15",
- QString sClientIp;//"192.168.10.126",
- __int64 nSessionTimeout;// 7200,
- bool bPasswordWeak;// " : false
- CLoginInfo()
- {
- sUserType = "";
- nUserId = 0;
- sDisplayName = "";
- nRootOrgId = 0;
- sRootOrgName = "";
- sCreationTime = "";
- sClientIp = "";
- nSessionTimeout = 0;
- bPasswordWeak = false;
- }
- };
- class CLogout : public CBaseResponsePackage
- {
- public:
- };
- class CEditPassword : public CBaseResponsePackage
- {
- public:
- };
- class CStudentClientMenu
- {
- public:
- __int64 nId;
- QString sCode;
- QString sName;
- };
- class CGetStudentClientMenu : public CBaseResponsePackage
- {
- public:
- std::vector<CStudentClientMenu> vMenus;
- };
- class CGetStudentInfoBySession : public CBaseResponsePackage
- {
- public:
- __int64 nId;
- QString sName;
- __int64 nOrgId;
- QString sOrgCode;
- QString sOrgName;
- QString sStudentCode;
- QString sIdentityNumber;
- QString sPhotoPath;
- bool bEnable;
- CGetStudentInfoBySession()
- {
- nId = 0;
- sName = "";
- nOrgId = 0;
- sOrgCode = "";
- sOrgName = "";
- sStudentCode = "";
- sIdentityNumber = "";
- sPhotoPath = "";
- bEnable = false;
- }
- };
- class CDownLoadFileInfo : public CBaseResponsePackage
- {
- public:
- QString sFileName;
- QString sModuleName;
- QString sAdditionStr;
- CDownLoadFileInfo()
- {
- sFileName = "";
- sModuleName = "";
- sAdditionStr = "";
- }
- };
- class CSpecialtyNameList : public CBaseResponsePackage
- {
- public:
- QString sSpecialtyName;
- CSpecialtyNameList()
- {
- sSpecialtyName = "";
- }
- };
- class CNoticeInfo
- {
- public:
- __int64 nId;// 11,
- QString sTitle;
- QString sContent;
- QString sPublisher;
- QString sPublishTime;// " : "2021 - 08 - 27 16:22 : 29",
- bool bHasRead;// : false,
- bool bHasRecalled;
- CNoticeInfo()
- {
- nId = 0;
- sTitle = "";
- sContent = "";
- sPublisher = "";
- sPublishTime = "";
- bHasRead = false;
- bHasRecalled = false;
- }
- };
- class CGetUserNoticeList : public CBaseResponsePackage
- {
- public:
- std::vector<CNoticeInfo> vNoticeList;
- };
- class CUpdateNoticeReadStatus : public CBaseResponsePackage
- {
- public:
- QString sIds;
- CUpdateNoticeReadStatus()
- {
- sIds = "";
- }
- };
- class CAppDownLoadUrl : public CBaseResponsePackage
- {
- public:
- QString sUrl;
- CAppDownLoadUrl()
- {
- sUrl = "";
- }
- };
- class CAppEnabled : public CBaseResponsePackage
- {
- public:
- bool bEnable;
- CAppEnabled()
- {
- bEnable = false;
- }
- };
- class CBatchInfo
- {
- public:
- __int64 nId;
- QString sName;
- QString sExamType;
- CBatchInfo()
- {
- nId = 0;
- sName = "";
- sExamType = "";
- }
- };
- class CQueryBatchList : public CBaseResponsePackage
- {
- public:
- std::vector<CBatchInfo> vBatchList;
- };
- class CGetExamProperty : public CBaseResponsePackage
- {
- public:
- QString sType;
- QString sBeforeExamRemark;//考前说明
- bool bCheckEnvironment;//环境监测
- int nWarnThreshold;//预警阈值
- bool bIsFaceCheck;//进入考试是否验证人脸识别(强制、非强制)
- int nSnapshotInterval;//抓拍间隔时间
- int nFaceVerifyStartMinute;//活体检测开始分钟数
- int nFaceVerifyEndMinute;//活体检测结束分钟数
- bool bIsStrangerEnable;//是否启用陌生人检测
-
- QString sPracticeType;//AFTER_PRACTICE 在线练习-结束统一显示答案
- //IN_PRACTICE 在线练习-边答边显示答案
- //NO_ANSWER 在线练习-不显示答案
- int nFreezeTime;//冻结时间
- QString sAfterExamRemark;//考后说明
- bool bIsObjScoreView;//是否显示客观题成绩
- bool bShowCheatingRemark;//是否展示作弊
- QString sCheatingRemark;//作弊说明
- std::vector<QString> vOfflineUploadFileType;
- bool bIsLivenessBefore;//考前活体检测
- CGetExamProperty()
- {
- sType = "";
- sBeforeExamRemark = "";
- bCheckEnvironment = false;
- nWarnThreshold = 0;//预警阈值
- bIsFaceCheck = false;//进入考试是否验证人脸识别(强制、非强制)
- nSnapshotInterval = 0;
- nFaceVerifyStartMinute = 0;//活体检测开始分钟数
- nFaceVerifyEndMinute = 0;//活体检测结束分钟数
- bIsStrangerEnable = false;//是否启用陌生人检测
-
- sPracticeType = "";
- nFreezeTime = 0;
- sAfterExamRemark = "";
- bIsObjScoreView = false;
- bShowCheatingRemark = false;
- sCheatingRemark = "";
- bIsLivenessBefore = false;
- }
- };
- class CStartExamLimit : public CBaseResponsePackage
- {
- public:
- int nCount;
- bool bPass;
- CStartExamLimit()
- {
- nCount = 0;
- bPass = false;
- }
- };
- class CIpLimit : public CBaseResponsePackage
- {
- public:
- bool bLimited;
- CIpLimit()
- {
- bLimited = false;
- }
- };
- class CStartExam : public CBaseResponsePackage
- {
- public:
- QString sCourseCode;// ,
- QString sCourseName;// ,
- __int64 nExamRecordDataId;// 0,
- int nFaceVerifyMinute;// 0,
- QString sStudentCode;// ,
- QString sStudentName;//
- CStartExam()
- {
- sCourseCode = "";
- sCourseName = "";
- nExamRecordDataId = 0;
- nFaceVerifyMinute = 0;
- sStudentCode = "";
- sStudentName = "";
- }
- };
- class CFaceCheckEnabled : public CBaseResponsePackage
- {
- public:
- bool bEnabled;
- CFaceCheckEnabled()
- {
- bEnabled = false;
- }
- };
- class CLivenessEnabled : public CBaseResponsePackage
- {
- public:
- bool bEnabled;
- CLivenessEnabled()
- {
- bEnabled = false;
- }
- };
- class CWeiXinAnswerEnabled : public CBaseResponsePackage
- {
- public:
- bool bEnabled;
- CWeiXinAnswerEnabled()
- {
- bEnabled = false;
- }
- };
- class CGetExamById : public CBaseResponsePackage
- {
- public:
- __int64 nId;
- QString sCode;
- __int64 nRootOrgId;
- QString sBeginTime;
- QString sEndTime;
- QString sName;
- QString sExamType;
- int nDuration;
- bool bEnable;
- bool bStarted;
- bool bExamLimit;
- bool bIpLimitSettingsEnabled;
- CGetExamById()
- {
- nId = 0;
- sCode = "";
- nRootOrgId = 0;
- sBeginTime = "";
- sEndTime = "";
- sName = "";
- sExamType = "";
- nDuration = 0;
- bEnable = false;
- bStarted = false;
- bExamLimit = false;
- bIpLimitSettingsEnabled = false;
- }
- };
- class CStartAnswer : public CBaseResponsePackage
- {
- public:
- __int64 nDuration;
- __int64 nExamRecordDataId;
- __int64 nUsedExamSeconds;
- CStartAnswer()
- {
- nDuration = 0;
- nExamRecordDataId = 0;
- nUsedExamSeconds = 0;
- }
- };
- class COption
- {
- public:
- QString sBody;
- COption()
- {
- sBody = "";
- }
- };
- class CSubQuestion
- {
- public:
- QString sQuestionType;
- QString sBody;
- std::vector<int> voptionPermutation;
- std::vector<COption> vOptions;
- std::vector<QString> vRightAnswer;
- QString sAnswerType;
- CSubQuestion()
- {
- sQuestionType = "";
- sBody = "";
- sAnswerType = "";
- }
- };
- class CGetQuestionContent : public CBaseResponsePackage
- {
- public:
- QString sOrder;
- QString sQuestionId;
- QString sBody;
- QString sVersion;
- bool bhasAudios;
- std::vector<CSubQuestion> vSubQuestion;
- CGetQuestionContent()
- {
- sQuestionId = "";
- sOrder = "";
- sBody = "";
- sVersion = "";
- bhasAudios = false;
- }
- };
- class CGetQuestion : public CBaseResponsePackage
- {
- public:
- QString sId;
- QString sBody;
- QString sVersion;
- bool bhasAudios;
- std::vector<CSubQuestion> vSubQuestion;
- CGetQuestion()
- {
- sId = "";
- sBody = "";
- sVersion = "";
- bhasAudios = false;
- }
- };
- class CSubmitQuestionAnswer : public CBaseResponsePackage
- {
- public:
- int nOrder;
- int nVersion;
- CSubmitQuestionAnswer()
- {
- nOrder = 0;
- }
- };
- class COfflineFileInfo
- {
- public:
- __int64 nExamRecordDataId;// 0,
- QString sFileType;// ,
- __int64 nId;// 0,
- QString sOfflineFileName;// ,
- QString sOfflineFileUrl;// ,
- QString sOriginalFileName;// ,
- QString sProperties;// ,
- QString sSuffix;//
- QString sLocalFileName;
- COfflineFileInfo()
- {
- nExamRecordDataId = 0;
- sFileType = "";
- nId = 0;
- sOfflineFileName = "";
- sOfflineFileUrl = "";
- sOriginalFileName = "";
- sProperties = "";
- sSuffix = "";
- sLocalFileName = "";
- }
- };
- class COfflineCourseInfo
- {
- public:
- QString sCourseCode;// ,
- QString sCourseLevel;// ,
- QString sCourseName;// ,
- QString sEndTime;// ,
- __int64 nExamId;// 0,
- QString sStartTime;// ,
- QString sExamName;// ,
- __int64 nExamRecordDataId;// 0,
- __int64 nExamStudentId;// 0,
- bool bIsvalid;// true,
- QString sOrgName;// ,
- QString sPaperId;// ,
- QString sSpecialtyName;// ,
- QString sStatus;// ,
- QString sStudentCode;// ,
- QString sStudentName;//
- std::vector<COfflineFileInfo> vOfflineFileInfo;
- COfflineCourseInfo()
- {
- sCourseCode = "";// ,
- sCourseLevel = "";// ,
- sCourseName = "";// ,
- sEndTime = "";// ,
- nExamId = 0;// 0,
- sStartTime = "";// ,
- sExamName = "";// ,
- nExamRecordDataId = 0;// 0,
- nExamStudentId = 0;// 0,
- bIsvalid = false;
- sOrgName = "";// ,
- sPaperId = "";// ,
- sSpecialtyName = "";// ,
- sStatus = "";// ,
- sStudentCode = "";// ,
- sStudentName = "";//
- }
- };
- class CWeekTransform
- {
- public:
- static QString getWeekCycles(std::vector<int> vWeek)
- {
- QStringList weekList;
- for (int nWeek : vWeek)
- {
- weekList << mWeekCycle.at(nWeek-1);
- }
- return weekList.join(QString::fromLocal8Bit(","));
- }
- static bool isInTimeRange(QTime tCurrent, QStringList sExamCycleTimeRange)
- {
- bool bRet = false;
- for (QString sTimeRange : sExamCycleTimeRange)
- {
- QStringList list = sTimeRange.split("~");
- if(list.count() == 2)
- {
- QTime sStart = QTime::fromString(list[0], "hh:mm");
- QTime sEnd = QTime::fromString(list[1], "hh:mm");
- if (sStart < tCurrent && tCurrent < sEnd)
- {
- bRet = true;
- }
- }
- }
- return bRet;
- }
- private:
- inline static std::vector<QString> mWeekCycle = {
- QString::fromLocal8Bit("周一"),
- QString::fromLocal8Bit("周二"),
- QString::fromLocal8Bit("周三"),
- QString::fromLocal8Bit("周四"),
- QString::fromLocal8Bit("周五"),
- QString::fromLocal8Bit("周六"),
- QString::fromLocal8Bit("周日"),
- };
- };
- class CExamCourseInfo
- {
- public:
- int nAllowExamCount;// 0,
- bool bAppExamEnabled;// true,
- QString sCourseCode;// ,
- __int64 nCourseId;// 0,
- QString sCourseLevel;// ,
- QString sCourseName;// ,
- QString sEndTime;// ,
- bool bExamCycleEnabled;// true,
- QStringList sExamCycleTimeRange;// [],
- std::vector<int> vExamCycleWeek;// [],
- __int64 nExamId;// 0,
- QString sExamName;// ,
- QString sExamStatus;// ,
- __int64 nExamStudentId;// 0,
- bool bFaceCheck;// true,
- bool bFaceEnable;// true,
- QString sIdentityNumber;// ,
- bool bIsFinished;// ,
- bool bIsObjScoreView;// true,
- bool bIsPhotoUpload;// ,
- __int64 nOrgId;// 0,
- QString sOrgName;// ,
- int nPaperMins;// 0,
- __int64 nRootOrgId;// 0,
- QString sSpecialtyLevel;// ,
- QString sSpecialtyName;// ,
- QString sStartTime;// ,
- QString sStudentCode;// ,
- QString sStudentName;//
- CExamCourseInfo()
- {
- nAllowExamCount = 0;
- bAppExamEnabled = false;
- sCourseCode = "";// ,
- nCourseId = 0;// 0,
- sCourseLevel = "";// ,
- sCourseName = "";// ,
- sEndTime = "";// ,
- bExamCycleEnabled = false;// true,
- nExamId = 0;// 0,
- sExamName = "";// ,
- sExamStatus = "";// ,
- nExamStudentId = 0;// 0,
- bFaceCheck = false;// true,
- bFaceEnable = false;// true,
- sIdentityNumber = "";// ,
- bIsFinished = "";// ,
- bIsObjScoreView = false;
- bIsPhotoUpload = "";// ,
- nOrgId = 0;// 0,
- sOrgName = "";// ,
- nPaperMins = 0;// 0,
- nRootOrgId = 0;// 0,
- sSpecialtyLevel = "";//
- sSpecialtyName = "";// ,
- sStartTime = "";// ,
- sStudentCode = "";// ,
- sStudentName = "";//
- }
- };
- class CQueryExamList : public CBaseResponsePackage
- {
- public:
- std::vector<CExamCourseInfo> vOnlieExamList;
- };
-
- class CQueryExamEndList : public CBaseResponsePackage
- {
- public:
- std::vector<CExamCourseInfo> vOnlieEndExamList;
- };
- class CObjectiveScore
- {
- public:
- QString sEndTime;// ,
- int nExamOrder;// 0,
- __int64 nExamRecordDataId;// 0,
- bool bIsAuditing;// true,
- bool bIsExamEnded;// true,
- bool bIsIllegality;// true,
- double fObjectiveScore;// 0,
- QString sStartTime;//
- CObjectiveScore()
- {
- sEndTime = "";
- nExamOrder = 0;
- nExamRecordDataId = 0;
- bIsAuditing = 0;
- bIsExamEnded = 0;
- bIsIllegality = 0;
- fObjectiveScore = 0;
- sStartTime = "";
- }
- };
- class CQueryObjectiveScoreList : public CBaseResponsePackage
- {
- public:
- QString sExamStudentId;
- std::vector<CObjectiveScore> vObjectiveScore;
- CQueryObjectiveScoreList()
- {
- sExamStudentId = "";
- }
- };
- class CQueryHomeworkList : public CBaseResponsePackage
- {
- public:
- std::vector<CExamCourseInfo> vHomeworkExamList;
- };
- class CPracticeCourseInfo
- {
- public:
- double fAveObjectiveAccuracy;// 0,
- QString sCourseCode;// ,
- QString sCourseName;// ,
- QString sEndTime;// ,
- bool bExamCycleEnabled;// true,
- QStringList sExamCycleTimeRange;// [],
- std::vector<int> vExamCycleWeek;// [],
- __int64 nExamId;// 0,
- QString sExamName;// ,
- __int64 nExamStudentId;// 0,
- QString sExamType;// ,
- double fMaxObjectiveAccuracy;// 0,
- int nPracticeCount;// 0,
- double fRecentObjectiveAccuracy;// 0,
- QString sStartTime;// ,
- QString sStudentCode;// ,
- QString sStudentName;//
- CPracticeCourseInfo()
- {
- fAveObjectiveAccuracy = 0;
- sCourseCode = "";// ,
- sCourseName = "";// ,
- sEndTime = "";// ,
- bExamCycleEnabled = false;
- nExamId = 0;// 0,
- sExamName = "";// ,
- nExamStudentId = 0;// 0,
- sExamType = "";// ,
- fMaxObjectiveAccuracy = 0;// 0,
- nPracticeCount = 0;
- fRecentObjectiveAccuracy = 0;
- sStartTime = "";//
- sStudentCode = "";
- sStudentName = "";
- }
- };
- class CQueryPracticeCourseList : public CBaseResponsePackage
- {
- public:
- std::vector<CPracticeCourseInfo> vPracticeCourseInfo;
- };
- class CPracticeRecord
- {
- public:
- QString sCourseCode;// ,
- QString sCourseName;// ,
- QString sEndTime;// ,
- QString sExamName;// ,
- int nFailQuestionNum;// 0,
- __int64 nId;// 0,
- int nNotAnsweredCount;// 0,
- double fObjectiveAccuracy;// 0,
- int nObjectiveNum;// 0,
- QString sStartTime;// ,
- int nSuccQuestionNum;// 0,
- int nTotalQuestionCount;// 0,
- __int64 nUsedExamTime;// 0
- CPracticeRecord()
- {
- sCourseCode = "";
- sCourseName = "";
- sEndTime = "";
- sExamName = "";
- nFailQuestionNum = 0;
- nId = 0;
- nNotAnsweredCount = 0;
- fObjectiveAccuracy = 0;
- nObjectiveNum = 0;
- sStartTime = "";
- nSuccQuestionNum = 0;
- nTotalQuestionCount = 0;
- nUsedExamTime = 0;
- }
- };
- //课程练习记录详情
- class CQueryPracticeRecordList : public CBaseResponsePackage
- {
- public:
- std::vector<CPracticeRecord> vPracticeRecordList;
- };
- class CPracticePaperStructInfo
- {
- public:
- int nCount;
- int nFailQuestionNum;
- int nIndex;
- int nNotAnsweredCount;
- int nQuestionCount;
- QString sQuestionType;
- QString sScore;
- int nSuccQuestionNum;
- QString sTitle;
- double fTotalScore;
- CPracticePaperStructInfo()
- {
- nCount = 0;
- nFailQuestionNum = 0;
- nIndex = 0;
- nNotAnsweredCount = 0;
- nQuestionCount = 0;
- sQuestionType = "";
- sScore = "";
- nSuccQuestionNum = 0;
- sTitle = "";
- fTotalScore = 0;
- }
- };
- //单次练习答题情况统计
- class CGetPracticeDetailInfo : public CBaseResponsePackage
- {
- public:
- QString sCourseCode;
- QString sCourseName;
- __int64 nId;
- double fObjectiveAccuracy;
- std::vector<CPracticePaperStructInfo> vPracticePaperStructList;
- CGetPracticeDetailInfo()
- {
- sCourseCode = "";
- sCourseName = "";
- nId = 0;
- fObjectiveAccuracy = 0;
- }
- };
- //获取当前考试记录信息
- class CFindExamRecordDataEntity : public CBaseResponsePackage
- {
- public:
- __int64 nExamId;
- QString sPaperType;
- CFindExamRecordDataEntity()
- {
- nExamId = 0;
- sPaperType = "";
- }
- };
- //获取交卷之后的所有试题作答信息
- class CAnsweredQuestion
- {
- public:
- QString sAnswerType;// ,
- QString sAudioPlayTimes;// ,
- QString sCorrectAnswer;// ,
- QString sExamQuestionTempId;// ,
- __int64 nExamRecordDataId;// 0,
- bool bIsAnswer;// true,
- bool bIsInMongo;// true,
- bool bIsSign;// true,
- int nMainNumber;// 0,
- std::vector<int> vOptionPermutation;// [],
- int nOrder;// 0,
- QString sQuestionId;// ,
- double fQuestionScore;// 0,
- QString sQuestionType;// ,
- QString sStudentAnswer;// ,
- double fStudentScore;// 0
- bool bHasQuestonInfo;
- CAnsweredQuestion()
- {
- sAnswerType = "";
- sAudioPlayTimes = "";
- sCorrectAnswer = "";
- sExamQuestionTempId = "";
- nExamRecordDataId = 0;
- bIsAnswer = false;
- bIsInMongo = false;
- bIsSign = false;
- nMainNumber = 0;
- nOrder = 0;
- sQuestionId = "";
- fQuestionScore = 0;
- sQuestionType = "";
- sStudentAnswer = "";
- fStudentScore = 0;
- }
- };
- class CGetExamRecordQuestions : public CBaseResponsePackage
- {
- public:
- std::vector<CAnsweredQuestion> vExamRecordQuestions;
- };
- class CGetOfflineCourse : public CBaseResponsePackage
- {
- public:
- std::vector<COfflineCourseInfo> vOfflineCourseInfo;
- };
- class CGetOffLineExamAnswerSheet : public CBaseResponsePackage
- {
- public:
- QString sAnswerSheetUrl;
- CGetOffLineExamAnswerSheet()
- {
- sAnswerSheetUrl = "";
- }
- };//下载离线考试答题纸接口
- class CGetOffLineExamPaper : public CBaseResponsePackage
- {
- public:
- QString sPaperUrl;
- int nRow;
- CGetOffLineExamPaper()
- {
- sPaperUrl = "";
- nRow = 0;
- }
- };
- class CPreviewOffLineExamPaper : public CBaseResponsePackage
- {
- public:
- QString sUrl;
- int nRow;
- CPreviewOffLineExamPaper()
- {
- sUrl = "";
- nRow = -1;
- }
- };
- class CStartOfflineExam : public CBaseResponsePackage
- {
- public:
- int nRow;
- CStartOfflineExam()
- {
- nRow = 0;
- }
- };
- class CSubmitOfflinePaper : public CBaseResponsePackage
- {
- public:
- };
- namespace EXAM_INPROGRESS_ENTER_TYPE
- {
- const QString EIET_COURSE_LIST = "COURSE_LIST";
- const QString EIET_ENTER_EXAM = "ENTER_EXAM";
- }
- class CCheckExamInProgress : public CBaseResponsePackage
- {
- public:
- bool bHasExamInProgress;
- int nInterruptNum;
- int nMaxInterruptNum;
- bool bIsExceed;
- __int64 nExamRecordDataId;
- __int64 nExamId;
- __int64 nUsedTime;
- int nFaceVerifyMinute;
- QString sExamType;
- QString sEnterType;
- CCheckExamInProgress()
- {
- bHasExamInProgress = false;
- nInterruptNum = 0;
- nMaxInterruptNum = 0;
- bIsExceed = false;
- nExamRecordDataId = 0;
- nExamId = 0;
- nUsedTime = 0;
- nFaceVerifyMinute = 0;
- sExamType = "";
- }
- };
- class CGetCourseInfo : public CBaseResponsePackage
- {
- public:
- QString sCourseCode;
- QString sCourseName;
- CGetCourseInfo()
- {
- sCourseCode = "";
- sCourseName = "";
- }
- };
- class CEndExam : public CBaseResponsePackage
- {
- public:
- QString sModuleName;
- bool bForce;
- CEndExam()
- {
- sModuleName = "";
- bForce = false;
- }
- };
- class CGetEndExamInfo : public CBaseResponsePackage
- {
- public:
- __int64 nExamRecordDataId;
- bool bIsWarn;
- double fObjectiveAccuracy;
- double fObjectiveScore;
- bool bIsCalculate;
- CGetEndExamInfo()
- {
- nExamRecordDataId = 0;
- bIsWarn = false;
- fObjectiveAccuracy = 0;
- fObjectiveScore = 0;
- bIsCalculate = false;
- }
- };
- class CExamHeartbeat : public CBaseResponsePackage
- {
- public:
- __int64 nLeftTime;//毫秒
- CExamHeartbeat()
- {
- nLeftTime = 0;
- }
- };
- class CFindExamQuestionList : public CBaseResponsePackage
- {
- public:
- std::vector<CAnsweredQuestion> vAnsweredQuestion;
- };
- namespace QUESTION_TYPE
- {
- const QString SingleChoice = "SINGLE_CHOICE";
- const QString MultipleChoice = "MULTIPLE_CHOICE";
- const QString TrueOrFalse = "TRUE_OR_FALSE";
- const QString FillUp = "FILL_UP";
- const QString Essay = "ESSAY";
- };
- class CSubQuestionStruct
- {
- public:
- std::vector<int> voptionPermutation;
- double fQuestionScore;
- QString sQuestionType;
- QString sAnswerType;
- bool bMarked;
- bool bAnswered;
- int nVersion;
- bool bUpload;
- QString sSubjectiveTempAns;
- QString sUploadAnswer;
- bool bCurrent;
- QString sStudentAnswer;
- int nShowNumber;
- int nOrder;
- QString sBody;
- std::vector<COption> vOptions;
- std::vector<QString> vRightAnswer;
- int nLimitedPlayTimes;
- CSubQuestionStruct()
- {
- fQuestionScore = 0;
- sQuestionType = "";
- sAnswerType = "";
- bMarked = false;
- bAnswered = false;
- nVersion = 0;
- bUpload = true;
- sUploadAnswer = "";
- sSubjectiveTempAns = "";
- bCurrent = false;
- nShowNumber = 0;
- nOrder = 0;
- sBody = "";
- nLimitedPlayTimes = 0;
- }
- };
- class CQuestionStruct
- {
- public:
- QString sQuestionId;
- QString sVersion;
- double fQuestionScore;
- int nLimitedPlayTimes;
- int nPlayedTimes;
- int nTimeLimit;
- bool bHasContent;
- QString sBody;
- bool bhasAudios;
- std::vector<CSubQuestionStruct> vSubQuestionStruct;
- CQuestionStruct()
- {
- sQuestionId = "";
- sVersion = "";
- fQuestionScore = 0;
- nLimitedPlayTimes = 0;
- nPlayedTimes = 0;
- nTimeLimit = 0;
- sBody = "";
- sVersion = "";
- bhasAudios = false;
- bHasContent = false;
- }
- };
- class CPaperGroupStruct
- {
- public:
- QString sGroupName;
- double fGroupScore;
- int nNumber;
- int nTotalSubquestion;
- int nAnsweredCount;
- std::vector<CQuestionStruct> vQuestionStruct;
- CPaperGroupStruct()
- {
- sGroupName = "";
- fGroupScore = 0;
- nNumber = 0;
- nTotalSubquestion = 0;
- nAnsweredCount = 0;
- }
- };
- class CGetExamRecordPaperStruct : public CBaseResponsePackage
- {
- public:
- QString sPaperId;
- QString sPaperName;
- bool bFullyObjective;
- std::vector<CPaperGroupStruct> vPaperGroupStruct;
- CGetExamRecordPaperStruct()
- {
- sPaperId = "";
- sPaperName = "";
- }
- };
- class CGetWXQrCode : public CBaseResponsePackage
- {
- public:
- QString sUrl;
- CGetWXQrCode()
- {
- sUrl = "";
- }
- };
- class CSaveUploadedFileAcknowledgeStatus : public CBaseResponsePackage
- {
- public:
- QString sFileUrl;
- CSaveUploadedFileAcknowledgeStatus()
- {
- sFileUrl = "";
- }
- };
- class CProcessUpload : public CBaseResponsePackage
- {
- public:
- QString sFileUrl;
- QString sCommonStr;
- CProcessUpload()
- {
- sFileUrl = "";
- }
- };
- class CGetOrgPropertiesByGroupWithoutCache : public CBaseResponsePackage
- {
- public:
- int nActionNum;
- QString sActionOptions;//SHAKE,BLINK,NOD
- QString sActionOrder;//FIXED
- int nActionDuration;//单个动作最大时长
- int nActionAlert;//指定动作检测提醒N秒后开始检测
- int nAllActionDuration;//整体动作时长
- CGetOrgPropertiesByGroupWithoutCache()
- {
- nActionNum = 0;
- sActionOptions = "";
- sActionOrder = "";
- nActionDuration = 0;
- nActionAlert = 15;
- nAllActionDuration = 120;
- }
- };
- class CStartFaceLiveVerify : public CBaseResponsePackage
- {
- public:
- __int64 nFaceLiveVerifyId;
- int nStartMinute;
- int nTimes;
- CStartFaceLiveVerify()
- {
- nFaceLiveVerifyId = 0;
- nStartMinute = 0;
- nTimes = 0;
- }
- };
- #endif // HTTPDATADEF_H
|