Product.php 357 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. *
  4. *User:Administrator
  5. *Date:2021/10/11
  6. */
  7. namespace app\api\controller\v1;
  8. use app\api\business\ProductBus;
  9. class Product
  10. {
  11. public function selectProductList()
  12. {
  13. $type_id = request()->param('type_id', 1, 'int');
  14. $result = (new ProductBus())->selectProductList($type_id);
  15. return showSuccess($result);
  16. }
  17. }