ztt 8 months ago
parent a1ff64ada3
commit 9792cebe06
  1. 28
      application/api/controller/Warehouse.php

@ -0,0 +1,28 @@
<?php
namespace app\api\controller;
use app\common\controller\Api;
use app\admin\model\Warehouse as warehouseModel;
class Warehouse extends Api
{
protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
protected $model;
public function _initialize() {
parent::_initialize();
$this->model = new warehouseModel();
}
/**
* 仓库列表
* @return
*/
public function list() {
$list = $this->model->paginate(10);
$this->success('success', $list);
}
}
Loading…
Cancel
Save