21 lines
421 B
PHP
21 lines
421 B
PHP
<?php
|
|
|
|
namespace app\common\logic;
|
|
|
|
use app\common\traits\crud\CrudLogicTrait;
|
|
use app\common\model\PostCategory;
|
|
|
|
class PostCategoryLogic
|
|
{
|
|
use CrudLogicTrait;
|
|
|
|
/**
|
|
* 指定当前要操作的模型
|
|
*/
|
|
protected string $modelClass = PostCategory::class;
|
|
|
|
public function getList($where)
|
|
{
|
|
return PostCategory::where('status', 1)->where($where)->orderBy('sort','desc')->get();
|
|
}
|
|
} |