admin/addon/cardservice/api/controller/Servicescategory.php

24 lines
567 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace addon\cardservice\api\controller;
use app\model\goods\ServiceCategory as ServiceCategoryModel;
use app\api\controller\BaseApi;
/**
* 分类
*/
class Servicescategory extends BaseApi
{
public function lists()
{
$goods_category_model = new ServiceCategoryModel();
$condition = [
['site_id', '=', $this->site_id],
['is_show', '=', 0],//是否显示0显示 -1不显示
];
$data = $goods_category_model->getCategoryList($condition);
return $this->response($data);
}
}