Files
bsh_sample/app/common/logic/PostCategoryLogic.php
T
2025-12-08 17:37:34 +08:00

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();
}
}