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.
22 lines
685 B
PHP
22 lines
685 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Admin\YeWu;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use App\Services\Admin\YeWu\HealthOrganizationService;
|
|
|
|
class HealthOrganizationController extends Controller
|
|
{
|
|
//获取可用的体检机构
|
|
public function GetEnableList(Request $request){
|
|
$userid = $request->get('userid');//中间件产生的参数
|
|
$group = $request->get('role');//中间件产生的参数
|
|
if($group<>1 or $group<>7) \Yz::echoError('无此接口访问权限');
|
|
|
|
$s=app()->make(HealthOrganizationService::class);
|
|
return $s->GetList(['type'=>'enable','group'=>$group,'userid'=>$userid]);
|
|
|
|
}
|
|
}
|