feat: Log Util
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Admin\User;
|
||||
namespace App\Service\Admin\Login;
|
||||
|
||||
use App\Cache\Redis\Admin\UserCache;
|
||||
use App\Constants\Admin\UserCode;
|
||||
@@ -18,7 +18,6 @@ use App\Extend\SystemUtil;
|
||||
use App\Lib\Crypto\CryptoFactory;
|
||||
use App\Model\AdminUser;
|
||||
use App\Service\Admin\BaseService;
|
||||
use Exception;
|
||||
use Hyperf\Di\Annotation\Inject;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
use Psr\Container\NotFoundExceptionInterface;
|
||||
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
namespace App\Service\Admin\User;
|
||||
|
||||
use App\Exception\AdminException;
|
||||
use App\Lib\Log;
|
||||
use App\Model\AdminRole;
|
||||
use App\Service\Admin\BaseService;
|
||||
use Exception;
|
||||
@@ -25,7 +26,11 @@ class RoleService extends BaseService
|
||||
#[Inject]
|
||||
protected AdminRole $adminRoleModel;
|
||||
|
||||
private string $field = 'id as role_id, name, remark, status, created_at, updated_at';
|
||||
/**
|
||||
* 查询字段
|
||||
* @var array|string[]
|
||||
*/
|
||||
private array $field = ['id as role_id', 'name', 'remark', 'status', 'create_time'];
|
||||
|
||||
/**
|
||||
* 列表
|
||||
|
||||
Reference in New Issue
Block a user