You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
4.3 KiB
PHP

<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Services\ConfigService;
use Illuminate\Http\Request;
class ApiMapController extends Controller
{
//获取站点配置信息
public function h5()
{
$base_url = env('APP_URL');
return [];
}
//获取站点配置信息
public function public()
{
$base_url = env('APP_URL');
return [
'OrderList' => $base_url . '/api/H5/Order/list',
'ComboList' => $base_url . '/api/H5/Combo/list',
'ComboSelect' => $base_url . '/api/H5/Combo/select',
'UserInfo' => $base_url . '/api/H5/User/info',
'ConfigVersion' => $base_url . '/api/H5/Config/version',
'ConfigConfig' => $base_url . '/api/H5/Config/config',
'DemoPay' => $base_url . '/api/Demo/pay',
'ApiMapTest' => $base_url . '/api/ApiMap/test',
'CheckUpTypeGetList' => $base_url . '/api/H5/CheckUpTypeGetList',
'GetPersonList' => $base_url . '/api/H5/GetPersonList',
'SetDefaultPerson' => $base_url . '/api/H5/SetDefaultPerson',
'GetGeJianButtonList' => $base_url . '/api/H5/GetGeJianButtonList',
'ArticleGetList' => $base_url . '/api/H5/ArticleGetList',
'ArticleGetDetail' => $base_url . '/api/H5/ArticleGetDetail',
'GetAllItems' => $base_url . '/api/H5/GetAllItems',//获取全部自选项目
'BuyInfo' => $base_url . '/api/H5/BuyInfo',//获取全部自选项目
'GetComboSort' => $base_url . '/api/H5/GetComboSort',//套餐排序、筛选标签
'GetPersonIntegralSaveMoneyCouponInfo' => $base_url . '/api/H5/GetPersonIntegralSaveMoneyCouponInfo',//获取就诊人基本信息和预存款、代金券、积分
'DoctorGetList' => $base_url . '/api/H5/DoctorGetList',//获取体检医生列表
'ComboRecommend' => $base_url . '/api/H5/ComboRecommend',//套餐推荐
'GetReadme' => $base_url . '/api/H5/GetReadme',//须知
'NMRGetMonthPlanCount' => $base_url . '/api/H5/NMRGetMonthPlanCount',//核磁每日号源
'NMRGetDayPlanList' => $base_url . '/api/H5/NMRGetDayPlanList',//核磁每日号源
'GetGroupUnit' => $base_url . '/api/H5/GetGroupUnit',//团检登记查询获取单位分组
'GetGroupCombo' => $base_url . '/api/H5/GetGroupCombo',//获取团检套餐
'OrderCreate' => $base_url . '/api/H5/OrderCreate',//创建订单
'GetReportList' => $base_url . '/api/H5/GetReportList',//获取关联的所有体检人报告列表
'GetReportJieLunJianYi' => $base_url . '/api/H5/GetReportJieLunJianYi',//获取报告结论建议页面数据
'GetReportDetaiList' => $base_url . '/api/H5/GetReportDetaiList',//完整报告中的列表
'GetReportDetai' => $base_url . '/api/H5/GetReportDetai',//完整报告中的详情
'StartPay' => $base_url . '/api/H5/StartPay',//开始支付
'CheckPay' => $base_url . '/api/H5/CheckPay',//支付查询
'Refund' => $base_url . '/api/H5/Refund',//退款
'GetMonthPlanCount' => $base_url . '/api/H5/GetMonthPlanCount',//按月获取每日号源
'GetDayPlanList' => $base_url . '/api/H5/GetDayPlanList',//获取每日号源
'ComboCompare' => $base_url . '/api/H5/ComboCompare',//套餐对比
'GetOrderDetail' => $base_url . '/api/H5/GetOrderDetail',//获取订单详情
'ReportContrast' => $base_url . '/api/H5/ReportContrast',//报告对比
'QuestionGetList' => $base_url . '/api/H5/QuestionGetList',//获取问卷
'QuestionSubmitAnswer' => $base_url . '/api/H5/QuestionSubmitAnswer',//提交问卷回答
'AnalysisTypeGetList' => $base_url . '/api/H5/AnalysisTypeGetList',//趋势分析项目列表
'FenzhenAbandon' => $base_url . '/api/H5/Fenzhen/abandon',// 分诊弃检
'FenzhenList' => $base_url . '/api/H5/Fenzhen/list',// 分诊时间线
'FenzhenInfo' => $base_url . '/api/H5/Fenzhen/info',// 分诊项目详情
'FenzhenCheck' => $base_url . '/api/H5/Fenzhen/check',// 分诊检测
];
}
public function test()
{
return \Yz::Return(true, '获取成功', [
'name' => env('APP_NAME'),
'datetime' => date('Y-m-d H:i:s'),
]);
}
public function list($type)
{
$list = self::public();
switch ($type) {
case 'h5':
$list = array_merge($list, self::h5());
break;
}
return \Yz::Return(true, '获取成功', [
'list' => $list
]);
}
}