发布推送

This commit is contained in:
ROmani
2024-02-26 00:41:25 +08:00
parent 70304f730b
commit 1a9008b318
33 changed files with 1515 additions and 216 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace App\Cache\Base;
use Illuminate\Support\Facades\Cache;
//用户缓存用户基础信息结构自己组装uid为主键
abstract class StructBaseCache extends BaseCache
{
public string $primary_key_column = 'uid'; //值标识
public array $aCacheKey = [];
function loadData(): array|null
{
$aData = [];
foreach ($this->aCacheKey as $key => $value) {
if (method_exists($this, $value)) $aData[$key] = $this->$value();
}
return $aData;
}
}