全栈小学生 e1d082e984 后台
2023-05-20 18:31:32 +08:00

55 lines
1.4 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 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\service\admin\cron;
use app\service\core\cron\CoreCronService;
use core\base\BaseAdminService;
/**
* 自动任务服务层
* Class SiteGroupService
* @package app\service\admin\site
*/
class CronService extends BaseAdminService
{
protected $core_cron_service;
public function __construct()
{
parent::__construct();
$this->core_cron_service = new CoreCronService();
}
/**
* 自动任务列表
* @param array $where
* @return mixed
*/
public function getPage(array $where = [])
{
return $this->core_cron_service->getPage($this->site_id, $where);
}
/**
* 分组详情
* @param int $group_id
* @return array
*/
public function getInfo(int $id)
{
return $this->core_cron_service->getInfo($this->site_id, $id);
}
}