车辆归属的船舶

This commit is contained in:
2025-06-24 08:56:44 +08:00
parent 92d0651043
commit 6f541557f8
6 changed files with 34 additions and 1 deletions
@@ -7,12 +7,18 @@ use support\Response;
use plugin\admin\app\model\LogisticsShip;
use plugin\admin\app\controller\Crud;
use support\exception\BusinessException;
use util\Util;
/**
* 船舶信息
*/
class LogisticsShipController extends Crud
{
/**
* 不需要鉴权的方法
* @var string[]
*/
protected $noNeedAuth = ['getAll'];
/**
* @var LogisticsShip
@@ -87,4 +93,11 @@ class LogisticsShipController extends Crud
]);
}
public function getAll()
{
$lang = session('lang', 'zh-cn');
$locations = LogisticsShip::whereIn('status',[0,1])->get();
return Util::success($locations);
}
}