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.
27 lines
624 B
27 lines
624 B
9 months ago
|
<?php
|
||
|
|
||
|
namespace app\api\controller;
|
||
|
|
||
|
use app\admin\model\content\Company as companyModel;
|
||
|
use app\common\controller\Api;
|
||
|
|
||
|
class Company extends Api
|
||
|
{
|
||
|
protected $noNeedLogin = ['*'];
|
||
|
protected $noNeedRight = ['*'];
|
||
|
protected $model;
|
||
|
|
||
|
public function _initialize() {
|
||
|
parent::_initialize();
|
||
|
|
||
|
$this->model = new companyModel();
|
||
|
}
|
||
|
|
||
|
public function list() {
|
||
|
$list = $this->model->where('status', 1)->paginate(10);
|
||
|
foreach ($list as &$row) {
|
||
|
$row['image'] = $this->request->domain().$row['image'];
|
||
|
}
|
||
|
$this->success('资质列表', $list);
|
||
|
}
|
||
|
}
|