Merge branch 'develop'
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\logic;
|
||||
|
||||
use app\common\traits\crud\CrudLogicTrait;
|
||||
use app\common\model\SysDictCategory;
|
||||
|
||||
class SysDictCategoryLogic
|
||||
{
|
||||
use CrudLogicTrait;
|
||||
|
||||
/**
|
||||
* 指定当前要操作的模型
|
||||
*/
|
||||
protected string $modelClass = SysDictCategory::class;
|
||||
|
||||
public function getList()
|
||||
{
|
||||
return SysDictCategory::where('status', 1)->orderBy('sort','desc')->get(['id', 'category_name']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user