You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
540 B
25 lines
540 B
<?php
|
|
namespace app\api\logic;
|
|
|
|
use app\common\basics\Logic;
|
|
use app\common\model\goods\GoodsColumn;
|
|
|
|
class GoodsColumnLogic extends Logic
|
|
{
|
|
/**
|
|
* 获取商品栏目列表
|
|
*/
|
|
public static function getGoodsColumnList()
|
|
{
|
|
$where = [
|
|
'del' => 0, // 未删除
|
|
'status' => 1, // 显示
|
|
];
|
|
$list = GoodsColumn::field('id,name,remark')
|
|
->where($where)
|
|
->order('sort', 'asc')
|
|
->select()
|
|
->toArray();
|
|
return $list;
|
|
}
|
|
}
|