niucloud-admin/niucloud/app/service/admin/schedule/ScheduleLogService.php
全栈小学生 ad6298a9a9 up
2024-11-22 15:08:42 +08:00

74 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\service\admin\schedule;
use app\service\core\schedule\CoreScheduleLogService;
use core\base\BaseAdminService;
/**
* 计划任务执行记录服务层
* Class CoreCronService
* @package app\service\core\cron
*/
class ScheduleLogService extends BaseAdminService
{
public function __construct()
{
parent::__construct();
}
/**
* 获取自动任务列表
* @param array $data
* @return array
*/
public function getPage(array $data = [])
{
return (new CoreScheduleLogService())->getPage($data);
}
/**
* 添加
* @param array $data
* @return true
*/
public function add(array $data)
{
$res = (new CoreScheduleLogService())->add($data);
return true;
}
/**
* 删除计划任务执行记录
* @param $ids
* @return bool
*/
public function del($ids)
{
return (new CoreScheduleLogService())->del($ids);
}
/**
* 清空计划任务执行记录
* @param $data
* @return bool
*/
public function clear($data)
{
return (new CoreScheduleLogService())->clear($data);
}
}