You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
611 B
29 lines
611 B
<?php
|
|
|
|
namespace App\Http\Controllers\Customer;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Project;
|
|
|
|
class PublicController extends Controller
|
|
{
|
|
/**
|
|
* @OA\Get(
|
|
* path="/customer/get-projects",
|
|
* summary="V2-获取医院列表",
|
|
* description="获取医院列表",
|
|
* @OA\Response(
|
|
* response="200",
|
|
* description="获取医院列表",
|
|
|
|
* )
|
|
* )
|
|
*/
|
|
|
|
public function getProjects()
|
|
{
|
|
$projects = Project::select("id","name","address")->get();
|
|
return response()->json($projects->toArray());
|
|
}
|
|
}
|