其余文件
This commit is contained in:
25
app/api/logic/GoodsColumnLogic.php
Normal file
25
app/api/logic/GoodsColumnLogic.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user