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.
34 lines
751 B
34 lines
751 B
9 months ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace app\store\controller\goods;
|
||
|
|
||
|
use think\response\Json;
|
||
|
use app\store\controller\Controller;
|
||
|
use app\store\model\GoodsSource as GoodsSourceModel;
|
||
|
|
||
|
// yoshop_goods_source
|
||
|
/**
|
||
|
* 商品货源控制器
|
||
|
* Class Source
|
||
|
* @package app\store\controller
|
||
|
*/
|
||
|
class Source extends Controller
|
||
|
{
|
||
|
/**
|
||
|
* 商品货源列表
|
||
|
* @param int $goodsId 商品ID
|
||
|
* @return Json
|
||
|
* @throws \think\db\exception\DataNotFoundException
|
||
|
* @throws \think\db\exception\DbException
|
||
|
* @throws \think\db\exception\ModelNotFoundException
|
||
|
*/
|
||
|
public function list(): Json
|
||
|
{
|
||
|
$modal = new GoodsSourceModel;
|
||
|
$list = $modal->getList($this->request->param());
|
||
|
return $this->renderSuccess(compact('list'));
|
||
|
}
|
||
|
}
|