Servicescategory.php 571 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace addon\cardservice\api\controller;
  3. use app\model\goods\ServiceCategory as ServiceCategoryModel;
  4. use app\api\controller\BaseApi;
  5. /**
  6. * 分类
  7. */
  8. class Servicescategory extends BaseApi
  9. {
  10. public function lists()
  11. {
  12. $goods_category_model = new ServiceCategoryModel();
  13. $condition = [
  14. [ 'site_id', '=', $this->site_id ],
  15. [ 'is_show', '=', 0 ],//是否显示(0显示 -1不显示)
  16. ];
  17. $data = $goods_category_model->getCategoryList($condition);
  18. return $this->response($data);
  19. }
  20. }