调整角色&系统&脚手架写法

This commit is contained in:
2025-07-22 09:32:18 +08:00
committed by mzl
parent a7af3fe74e
commit 701389ddd8
11 changed files with 162 additions and 158 deletions
+8 -1
View File
@@ -2,13 +2,20 @@
namespace app\common\logic;
use app\common\traits\crud\CrudLogicTrait;
use app\common\model\Systems;
class SystemsLogic
{
use CrudLogicTrait;
/**
* 指定当前要操作的模型
*/
protected string $modelClass = Systems::class;
public function getList()
{
return Systems::where('status', 1)->orderBy('sort', 'asc')->get(['id', 'name', 'code', 'icon', 'type']);
return Systems::where('status', 1)->orderBy('sort', 'asc')->get(['id', 'name', 'code', 'type', 'type']);
}
}