12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\App;
- class QualityTask extends Base
- {
- public function __construct(App $app = null) {
- parent::__construct($app);
- $this->model = new \app\common\model\QualityTask();
- }
- public function lists(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $type = input('type/d',1);
- $status = input('status/d',0);
- $ret = $this->model->lists($page,$size,$type,$status,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- public function detail(){
- $id = input('id/d',0);
- $ret = $this->model->info($id,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- public function cate(){
- $ret = model('QualityCate')->list($this->orgId);
- HelpHander::success($ret);
- }
- }
|