初始上传
This commit is contained in:
24
addon/cardservice/api/controller/Servicescategory.php
Executable file
24
addon/cardservice/api/controller/Servicescategory.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user