初始化本地仓库
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
*+------------------
|
||||
* madong
|
||||
*+------------------
|
||||
* Copyright (c) https://gitee.com/motion-code All rights reserved.
|
||||
*+------------------
|
||||
* Author: Mr. April (405784684@qq.com)
|
||||
*+------------------
|
||||
* Official Website: http://www.madong.tech
|
||||
*/
|
||||
|
||||
namespace app\adminapi\schema\response\crontab;
|
||||
|
||||
|
||||
use madong\swagger\schema\BaseResponseDTO;
|
||||
use OpenApi\Attributes as OA;
|
||||
|
||||
#[OA\Schema(
|
||||
title: '定时任务信息',
|
||||
description: '系统定时任务数据结构'
|
||||
)]
|
||||
class CrontabResponse extends BaseResponseDTO
|
||||
{
|
||||
#[OA\Property(
|
||||
property: 'id',
|
||||
description: '任务ID',
|
||||
type: 'string',
|
||||
example: '123456789012345678'
|
||||
)]
|
||||
public string $id;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'name',
|
||||
description: '任务名称',
|
||||
type: 'string',
|
||||
example: '数据备份任务'
|
||||
)]
|
||||
public string $name;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'type',
|
||||
description: '任务类型(1:系统任务 2:自定义任务)',
|
||||
type: 'integer',
|
||||
enum: [1, 2],
|
||||
example: 1
|
||||
)]
|
||||
public int $type;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'command',
|
||||
description: '执行命令/类方法',
|
||||
type: 'string',
|
||||
example: 'app\command\Backup::run'
|
||||
)]
|
||||
public string $command;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'expression',
|
||||
description: 'CRON表达式',
|
||||
type: 'string',
|
||||
example: '0 0 * * *'
|
||||
)]
|
||||
public string $expression;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'status',
|
||||
description: '状态(1:运行中 0:已暂停)',
|
||||
type: 'integer',
|
||||
enum: [0, 1],
|
||||
example: 1
|
||||
)]
|
||||
public int $status;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'sort',
|
||||
description: '排序号',
|
||||
type: 'integer',
|
||||
example: 10
|
||||
)]
|
||||
public int $sort;
|
||||
|
||||
#[OA\Property(
|
||||
property: 'created_at',
|
||||
description: '创建时间',
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
example: '2024-05-12T10:30:00Z'
|
||||
)]
|
||||
public string $created_at;
|
||||
}
|
||||
Reference in New Issue
Block a user