You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
637 B
31 lines
637 B
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class BaseService
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected string $menuTitle = '';
|
|
|
|
/**
|
|
* @var OperationLogService
|
|
*/
|
|
protected OperationLogService $logService;
|
|
|
|
/**
|
|
* 构造函数
|
|
* @param OperationLogService $logService
|
|
*/
|
|
public function __construct(OperationLogService $logService)
|
|
{
|
|
$this->logService = $logService;
|
|
$this->logService->menuTitle = $this->menuTitle;
|
|
}
|
|
|
|
protected function saveTranslation($id, $ch, $en, $tw, $type)
|
|
{
|
|
AdminTranslationService::saveTranslation($ch, $en, $tw, $id, $type);
|
|
}
|
|
}
|
|
|