123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace app\api\controller\diagnosis;
- use app\admin\model\diagnosis\DiagnosisCate;
- use app\admin\model\diagnosis\DiagnosisService;
- use app\admin\model\system\{
- SystemAttachment, ShippingTemplates
- };
- use app\admin\model\user\User;
- use app\Request;
- use crmeb\services\{
- CacheService,
- ExpressService,
- SystemConfigService,
- UtilService
- };
- /**
- * 陪诊类型
- * Class StoreOrderController
- * @package app\api\controller\order
- */
- class DiagnosisCateController
- {
- /**
- * 陪诊代办类型
- * @param Request $request
- * @return mixed
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function type(Request $request)
- {
- $data = UtilService::getMore([
- ['type']
- ]);
- $list = DiagnosisCate::where('type', $data['type'])->where('status', 1)->select()->toArray();
- return app('json')->successful($list);
- }
- /**
- * 陪诊服务
- * @param Request $request
- * @return mixed
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function service(Request $request)
- {
- $list = DiagnosisService::select()->where('status', 1)->toArray();
- return app('json')->successful($list);
- }
- }
|