首页修改,jk8修改,历史记录相关,api权限

This commit is contained in:
2026-06-04 10:53:45 +08:00
parent 95684c784e
commit 1975d24db3
16 changed files with 565 additions and 96 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace app\admin\model;
use think\model\relation\HasMany;
use Throwable;
use think\model;
use think\Exception;
use think\model\relation\BelongsTo;
/**
* MoneyLogHistory 模型
*/
class MoneyLogHistory extends model
{
protected $autoWriteTimestamp = true;
protected $updateTime = false;
public static function onBeforeDelete(): bool
{
return false;
}
public function moneyLog(): BelongsTo
{
return $this->belongsTo(UserMoneyLog::class, 'money_log_id');
}
public function admin(): BelongsTo
{
return $this->belongsTo(Admin::class, 'created_by');
}
}