33 行
719 B
PHP
33 行
719 B
PHP
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use app\common\model\GranaryModel;
|
|
use app\common\model\TestingModel;
|
|
use app\common\model\TestingParamsModel;
|
|
|
|
/**
|
|
* 粮仓数字孪生API控制器 (原生支持 /api/granary/* 路径映射)
|
|
*/
|
|
class Granary extends Index
|
|
{
|
|
protected $noNeedLogin = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
|
|
/**
|
|
* 仓库列表接口 (兼容 /api/granary/list)
|
|
*/
|
|
public function list()
|
|
{
|
|
return $this->granaryList(new GranaryModel());
|
|
}
|
|
|
|
/**
|
|
* 仓库详情接口 (兼容 /api/granary/detail)
|
|
*/
|
|
public function detail()
|
|
{
|
|
return $this->granaryDetail(new GranaryModel(), new TestingModel(), new TestingParamsModel());
|
|
}
|
|
}
|