This commit is contained in:
2023-12-17 21:29:59 +08:00
parent 3ae0046c88
commit ec6b900318
20 changed files with 652 additions and 31 deletions

14
app/Const/Filter.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace App\Const;
class Filter
{
const REQ_LOG_FILTER = [
'password',
'passwd',
'token',
'_token',
];
}

17
app/Const/RedisConst.php Normal file
View File

@ -0,0 +1,17 @@
<?php
namespace App\Const;
class RedisConst{
const COMMON_EXP_TIME = 86400*60;
const UID_TOKENS = 'UID_TOKENS:';
const TOKEN_UID = 'TOKEN_UID:';
const ORM_FIND_CACHE_SECOND = 120;
const ORM_CACHE_USER = 'ORM_CACHE_USER:';
}

9
app/Const/Responses.php Normal file
View File

@ -0,0 +1,9 @@
<?php
namespace App\Const;
class Responses{
const CODE_SUCCESS = 200;
const CODE_ERROR = 10000;
}