cfmgrv4 init...10
This commit is contained in:
parent
7d8e3c10a6
commit
ab46592ca4
@ -23,45 +23,45 @@ abstract class AdminController extends CommonController
|
||||
//생성
|
||||
protected function create_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return parent::create_process_result($message);
|
||||
}
|
||||
protected function create_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::create_process_failed($message);
|
||||
}
|
||||
//수정
|
||||
protected function modify_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return parent::modify_process_result($message);
|
||||
}
|
||||
protected function modify_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::modify_process_failed($message);
|
||||
}
|
||||
//단일필드작업
|
||||
protected function toggle_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return parent::toggle_process_result($message);
|
||||
}
|
||||
protected function toggle_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::toggle_process_failed($message);
|
||||
}
|
||||
//일괄처리작업
|
||||
protected function batchjob_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return parent::batchjob_process_result($message);
|
||||
}
|
||||
protected function batchjob_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::batchjob_process_failed($message);
|
||||
}
|
||||
//삭제 delete,batchjob_delete 공통사용
|
||||
@ -72,18 +72,18 @@ abstract class AdminController extends CommonController
|
||||
}
|
||||
protected function delete_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::delete_process_failed($message);
|
||||
}
|
||||
//일괄삭제
|
||||
protected function batchjob_delete_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return parent::batchjob_delete_process_result($message);
|
||||
}
|
||||
protected function batchjob_delete_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return parent::batchjob_delete_process_failed($message);
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,12 +58,12 @@ abstract class CloudflareController extends AdminController
|
||||
//Sync관련
|
||||
protected function sync_process_result($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message, DEFAULTS['STATUS']);
|
||||
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
|
||||
}
|
||||
protected function sync_process_failed($message): RedirectResponse|string
|
||||
{
|
||||
MyLogService::save($this->getService(), $this->myauth, $message);
|
||||
MyLogService::save($this->getService(), __FUNCTION__, $this->myauth, $message);
|
||||
return redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
|
||||
}
|
||||
protected function sync_process(string $uid): void {}
|
||||
|
||||
@ -24,12 +24,12 @@ class MyLogService
|
||||
log_message($level, $message);
|
||||
}
|
||||
|
||||
static public function save($service, AuthService $myauth, string $title, string $status = "unuse"): MyLogEntity
|
||||
static public function save($service, string $method, AuthService $myauth, string $title, string $status = "unuse"): MyLogEntity
|
||||
{
|
||||
$formDatas = [
|
||||
'user_uid' => $myauth->getUIDByAuthInfo(),
|
||||
'class_name' => $service->getClassName(),
|
||||
'method_name' => $service->getClassPath(),
|
||||
'method_name' => $method,
|
||||
'title' => $title,
|
||||
'content' => implode("\n", self::$_logBuffers),
|
||||
'status' => $status,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user