feat: Log Util

This commit is contained in:
2024-10-27 21:54:35 +08:00
parent a60c6ea29e
commit 5285dd6972
12 changed files with 320 additions and 13 deletions

View File

@@ -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;

View File

@@ -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'];
/**
* 列表