QualityTask.php 902 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\App;
  6. class QualityTask extends Base
  7. {
  8. public function __construct(App $app = null) {
  9. parent::__construct($app);
  10. $this->model = new \app\common\model\QualityTask();
  11. }
  12. public function lists(){
  13. $page = input('page/d',1);
  14. $size = input('size/d',10);
  15. $type = input('type/d',1);
  16. $status = input('status/d',0);
  17. $ret = $this->model->lists($page,$size,$type,$status,$this->userId,$this->orgId);
  18. HelpHander::success($ret);
  19. }
  20. public function detail(){
  21. $id = input('id/d',0);
  22. $ret = $this->model->info($id,$this->userId,$this->orgId);
  23. HelpHander::success($ret);
  24. }
  25. public function cate(){
  26. $ret = model('QualityCate')->list($this->orgId);
  27. HelpHander::success($ret);
  28. }
  29. }