WasteDevice.php 500 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. class WasteDevice extends Base
  6. {
  7. public function list(){
  8. $page=input('page/d',1);
  9. $size=input('size/d',1000000);
  10. $orgId=input('orgId/d');
  11. $model = new \app\common\model\WasteDevice();
  12. $ret=$model->list($page,$size,$orgId);
  13. if($ret){
  14. HelpHander::success($ret);
  15. }else{
  16. HelpHander::error('暂无数据');
  17. }
  18. }
  19. }