<?php

/**
 * 所有所属v1的控制器路由
 */

use Application\Controller\CommonController;
use Application\Controller\CrontabController;
use Application\Controller\FieldController;
use Application\Controller\FormController;
use Application\Controller\FormgroupController;
use Application\Controller\LoginController;
use Application\Controller\project\SaeController;
use Application\Service\Extension\Helper\RouterHelper;

return RouterHelper::generateRouteMap([
    LoginController::class => [
        ['/login-code' => 'loginCode'],
        ['/v2/login-code' => 'loginCodeV2'],
        ['/is-scan' => 'isScan'],
        ['/forward' => 'forward'],
        ['/upload' => 'upload'],
        ['/callback' => 'callback'],
        ['/send-sms' => 'sendSms'],
        ['/h5/send-sms' => 'h5SendSms'],
        ['/bind' => 'bind'],
        ['/h5/bind' => 'h5Bind'],
        ['/logout' => 'logout'],
        ['/mini-login' => 'miniLogin'],
        ['/' => 'index'],
        ['/wechatuser' => 'wechatuser'],
        ['/oauth' => 'oauth'],
        ['/getwebsitefiling' => 'getwebsitefiling'],
        ['/patientH5/oauth' => 'patientH5Oauth'],
        ['/patientH5' => 'patientH5'],
        ['/webH5' => 'webH5'],
        ['/webH5/oauth' => 'webH5Oauth'],
        ['/webH5Forward' => 'webH5Forward'],
        ['/webH5Callback' => 'webH5Callback'],
        ['/login/accountPwd' => 'accountPwd'],
        ['/login/send-sms' => 'sendLoginSms'],
    ],
    \Application\Controller\WechatController::class => [
        ['/wechat/entry' => 'entry'],
        ['/wechat/bind' => 'bind'],
        ['/wechat/bind-captcha' => 'bindCaptcha'],
        ['/wechat/bind-submit' => 'bindSubmit'],
    ],
    FormController::class => [
        ['/dictionary/form' => 'index'],
        ['/dictionary/form/del' => 'del'],
        ['/dictionary/form/view' => 'view'],
        ['/dictionary/form/getField' => 'getField'],
        ['/dictionary/form/create' => 'create'],
        ['/dictionary/form/preview' => 'preview'],
        ['/dictionary/form/copyTo' => 'copyTo'],
        ['/dictionary/form/copy' => 'copy'],
    ],
    FieldController::class => [
        ['/dictionary/field' => 'index'],
        ['/dictionary/field/view' => 'view'],
        ['/dictionary/field/version' => 'version'],
        ['/dictionary/field/create' => 'create'],
        ['/dictionary/field/del' => 'del'],
        ['/dictionary/field/addVersion' => 'addVersion'],
        ['/dictionary/field/getRelationInformation' => 'getRelationInformation'],
    ],
    \Application\Controller\item\FieldController::class => [
        ['/item/field' => 'index'],
        ['/item/field/view' => 'view'],
        ['/item/field/version' => 'version'],
        ['/item/field/create' => 'create'],
        ['/item/field/del' => 'del'],
        ['/item/field/addVersion' => 'addVersion'],
        ['/item/field/getRelationInformation' => 'getRelationInformation'],
        ['/item/field/selectcheck' => 'selectcheck'],
        ['/item/field/selectform' => 'selectform'],
        ['/item/field/selectchecktime' => 'selectchecktime'],
        ['/item/field/selectformchecktime' => 'selectformchecktime'],
        ['/item/field/setolddata' => 'setolddata'],
        ['/item/field/formFieldSelect' => 'formFieldSelect'],
        ['/item/field/formChecktimeSelect' => 'formChecktimeSelect'],
        ['/item/field/checktimeFormRealtion' => 'checktimeFormRealtion']
    ],
    \Application\Controller\item\FormController::class => [
        ['/item/form' => 'index'],
        ['/item/form/del' => 'del'],
        ['/item/form/view' => 'view'],
        ['/v1/item/form/lock' => 'lock'], // 锁定表单
        ['/item/form/create' => 'create'],

        /** @see \Application\Controller\item\FormController::previewAction() */
        ['/item/form/getdrugcm' => 'getdrugcm'], //获取合并用药表单-药物-默认用药原因
        ['/item/form/preview' => 'preview'], // 表单结构预览
        ['/v1/item/form/unlock' => 'unlock'], // 解锁表单
        ['/v1/item/form/detail' => 'detail'], // 查看表单详情
        ['/v1/item/form/getannexdata' => 'getannexdata'], // 获取化验单锁定数据
        ['/v1/item/form/getanneximg' => 'getanneximg'], // 获取一对多化验单图片
        ['/item/form/getField' => 'getField'],
        ['/v1/item/form/outPreview' => 'outPreview'], // 预览脱落表单
        ['/v2/item/form/outPreview' => 'outPreviewV2'], // 预览脱落表单V2
        ['/v1/item/form/createOutForm' => 'createOutForm'], // 创建/编辑 脱落表单
        ['/v1/item/form/viewOutForm' => 'viewOutForm'], // 查看脱离表单详情,
        ['/item/form/processed' => 'processed'], //一对多表单删除后对应的质疑历史数据的处理

        /** @see \Application\Controller\item\FormController::scoreFormPreviewAction() */
        ['/v1/item/form/scoreFormPreview' => 'scoreFormPreview'], // 预览评分功能表单

        /** @see \Application\Controller\item\FormController::scoreFormListAction() */
        ['/v1/item/form/scoreFormList' => 'scoreFormList'], // 获取所有评分功能表单列表

        /** @see \Application\Controller\item\FormController::scoreFormViewAction() */
        ['/v1/item/form/scoreFormView' => 'scoreFormView'], // 获取所有评分功能表单列表
        ['/item/form/itemFormSource' => 'itemFormSource'], // 获取项目表单数据源数据

    ],
    FormgroupController::class => [
        ['/dictionary/formgroup/treelist' => 'treelist'],
        ['/dictionary/formgroup/list' => 'list'],
        ['/dictionary/formgroup/edit' => 'edit'],
        ['/dictionary/formgroup/save' => 'save'],
        ['/dictionary/formgroup/delete' => 'delete'],
    ],
    \Application\Controller\item\patient\FormController::class => [
        ['/patient/form' => 'index'],
        ['/patient/form/del' => 'del'],
        /** @see  \Application\Controller\item\patient\FormController::viewAction() */
        ['/patient/form/view' => 'view'],
        ['/patient/form/flush' => 'flush'], // 清空表单数据
        ['/patient/form/recovery' => 'recovery'], // 恢复删除的表单
        ['/patient/form/unlock' => 'unlock'], // 申请表单解锁
        ['/patient/form/create' => 'create'],
        ['/patient/form/cover-by-question-reply' => 'coverByQuestionReply'],
        ['/patient/form/applyunlock' => 'applyunlock'],
        ['/patient/form/saveApplyunlock' => 'saveApplyunlock'],
        ['/patient/form/confirmApplyunlock' => 'confirmApplyunlock'],

        /** @see \Application\Controller\item\patient\FormController::scoreFormCreateAction() */
        ['/v1/item/form/scoreFormCreate' => 'scoreFormCreate'], // 获取所有评分功能表单列表

        /** @see  \Application\Controller\item\patient\FormController::importAction() */
        ['/patient/form/import' => 'import'], // 导入受试者表单数据
        ['/patient/form/importCheckForm' => 'importCheckForm'], // 导入受试者表单数据
        ['/patient/form/getImportErrorData' => 'getImportErrorData'], // 获取错误数据
        ['/patient/form/getImportErrorInfo' => 'getImportErrorInfo'], // 获取错误数据
        ['/patient/form/importDataSave' => 'importDataSave'], // 数据录入
        ['/patient/form/importDataExecute' => 'importDataExecute'], // 数据验证
        ['/patient/form/delErrorInfo' => 'delErrorInfo'], // 删除某一条数据
        ['/patient/form/delCache' => 'delCache'], // 删除缓存

        /** @see \Application\Controller\item\patient\FormController::tempStorageAction() */
        ['/patient/form/tempStorage' => 'tempStorage'], // 暂存表单数据

        /** @see \Application\Controller\item\patient\FormController::lockShareForm() */
        ['/patient/form/lockShareForm' => 'lockShareForm'], // 锁定常规识别类表单

        ['/patient/form/unlockShareForm' => 'unlockShareForm'], // 解锁常规识别类表单

        ['/patient/form/uploadMultiShareFormImage' => 'uploadMultiShareFormImage'],

        ['/patient/form/deleteShareFormMulti' => 'deleteShareFormMulti']




    ],
    CommonController::class => [
        ['/common/upload' => 'upload'],
        ['/common/uploadImg' => 'uploadImg'],
        ['/common/renderFormComponent' => 'renderFormComponent'],
        ['/common/formatExpression' => 'formatExpression'],
        ['/common/calculate' => 'calculateExpression'],
        ['/common/v2/calculate' => 'calculateExpressionV2'], // 表单公式计算v2
        ['/common/showPic' => 'showPic'],
        ['/common/errormsg' => 'errormsg'],
        ['/common/miniVersion' => 'miniVersion'], // 获取最新小程序版本
        ['/common/patient-mobile' => 'patientMobile'], // 受试者手机号码是否存在
        //['/com/editSend'=>'editSend'],
        //['/com/savePatientSend' => 'savePatientSend'],
        ['/common/download' => 'download'],    // 在线下载文件
        ['/common/signFileUrl' => 'signFileUrl'],    // 在线下载文件签名
        ['/common/qrcode' => 'qrcode'],    // 企业微信图片
    ],
    SaeController::class => [
        ['/v1/item/sae' => 'index'],
        ['/v1/item/sae/patient' => 'patient'],
        ['/v1/item/sae/saecount' => 'saecount'],
        ['/v1/item/sae/form' => 'form'],
        ['/v1/item/sae/create' => 'create'],
        ['/v1/item/sae/view' => 'view'],
    ],
    \Application\Controller\item\QuestionController::class => [
        ['/v1/item/question/preview' => 'preview'],
        ['/v1/item/question/updateQuestion' => 'updateQuestion'],
        ['/v1/item/question/replyQuestion' => 'replyQuestion'],
        ['/v1/item/question/historyReply' => 'historyReply'],
        ['/question/view' => 'questionView'],
    ],
    CrontabController::class => [
        ['/crontab/manyReidentification' => 'manyReidentification'],
    ],
    \Application\Controller\IndexController::class => [
        ['/test' => 'test'],
    ],
    \Application\Controller\EdcController::class => [
        ['/v1/edc/importQuery' => 'importQuery']
    ],
    \Application\Controller\QAController::class => [
        ['/qa' => 'form'],
        ['/qa/submit' => 'submit'],
    ],
    \Application\Controller\LogicController::class => [
        /** @see LogicController::indexAction */
        ['/logic' => 'index'],


        ['/logic/view' => 'view'],
        ['/logic/delete' => 'delete'],
        ['/logic/create' => 'create'],
        ['/logic/config' => 'config'],
        ['/logic/formList' => 'formList'],
        ['/logic/varList' => 'varList'],
        ['/logic/varListV2' => 'varListV2'],
        ['/logic/errorList' => 'errorList'],
        ['/logic/execute' => 'execute'],
        ['/logic/formList' => 'formList'],

        /** @see LogicController::formViewAction() */
        ['/logic/form/view' => 'formView'],

        /** @see LogicController::formDetailAction() */
        ['/logic/form/detail' => 'formDetail'],

        /** @see LogicController::errorClosedAction() */
        ['/logic/error/closed' => 'errorClosed'], // 关闭质疑

        /** @see LogicController::queriedErrorListAction() */
        ['/logic/error/queried' => 'queriedErrorList'], // sdm质疑列表

        /** @see LogicController::errorQueriedCreateAction() */
        ['/logic/error/queried/create' => 'errorQueriedCreate'], // 发送质疑

        /** @see LogicController::errorReplyAction() */
        ['/logic/error/reply' => 'errorReply'],

        /** @see LogicController::setQueriedAction() */
        ['/logic/error/setQueried' => 'setQueried'],

        /** @see LogicController::geterrorpatientListAction() */
        ['/logic/error/geterrorpatientList' => 'geterrorpatientList'], // 逻辑核查-受试者列表

        /** @see LogicController::geterrorpatientListAction() */
        ['/logic/error/geterrorchecktimeList' => 'geterrorchecktimeList'], // 逻辑核查-受试者检查点列表

        /** @see LogicController::geterrorpatientListAction() */
        ['/logic/error/getlasterror' => 'getlasterror'], // 逻辑核查-受试者检查点列表

    ],
    \Application\Controller\ExposeController::class => [
        /** @see \Application\Controller\ExposeController::reportAction() */
        ['/expose/report' => 'report'], // edc 化验单质疑推送

        ['/expose/fileTimestamp' => 'fileTimestamp']
    ],
    \Application\Controller\Drug\DrugController::class => [
        ['/app/drug/patientDrug' => 'patientDrug'],
        ['/app/drug/drugLock' => 'drugLock'],
        ['/app/drug/drugDaySave' => 'drugDaySave'],
        ['/app/drug/drugDay' => 'drugDay'],
        ['/app/drug/arrangeDrugSave' => 'arrangeDrugSave'],
    ],
    \Application\Controller\SasController::class => [
        ['/sas/export' => 'export'],
        ['/sas/edit' => 'edit'],
        ['/sas/list' => 'list'],
        ['/sas/delete' => 'delete'],
    ],
    \Application\Controller\CmController::class => [
        ['/cm' => 'index'],
        ['/cm/preview' => 'preview'],
        ['/cm/view' => 'view'],
        ['/cm/create' => 'create'],
        ['/cm/ae/index' => 'aeList'],
        ['/cm/ae/view' => 'aeListView'],
        ['/cm/ae/viewRow' => 'aeViewRow'],
        ['/cm/ae/edit' => 'aeEdit'],
        ['/cm/ae/delete' => 'aeDelete'],
    ],
    \Application\Controller\Temple\ChecklistController::class => [
        ['/temple/checklist/siglist' => 'siglist'],
        ['/temple/checklist/patientlist' => 'patientlist'],
        ['/temple/checklist/list' => 'list'],
        ['/temple/checklist/edit' => 'edit'],
        ['/temple/checklist/save' => 'save'],
        ['/temple/checklist/delete' => 'delete'],
        ['/temple/checklist/lock' => 'lock'],
        ['/temple/checklist/annexlist' => 'annexlist'],
    ],
    \Application\Controller\PatientH5Controller::class => [
        ['/com/editSend'=>'editSend'],
        ['/com/savePatientSend' => 'savePatientSend'],
    ],
    \Application\Controller\ThirdController::class => [
        ['/third/source' => 'source']
    ]
]);
