初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
@@ -0,0 +1,81 @@
<?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\monitor;
use madong\swagger\schema\BaseResponseDTO;
use OpenApi\Attributes as OA;
#[OA\Schema(
title: 'Redis监控信息响应模型',
description: 'Redis服务器监控接口的返回数据结构'
)]
class RedisMonitorResponse extends BaseResponseDTO
{
#[OA\Property(
property: 'redis_version',
description: 'Redis版本',
type: 'string',
example: '6.2.6'
)]
public string $redis_version;
#[OA\Property(
property: 'used_memory',
description: '已使用内存(字节)',
type: 'integer',
example: 1048576
)]
public int $used_memory;
#[OA\Property(
property: 'used_memory_human',
description: '人类可读已使用内存',
type: 'string',
example: '1.00M'
)]
public string $used_memory_human;
#[OA\Property(
property: 'connected_clients',
description: '已连接客户端数',
type: 'integer',
example: 10
)]
public int $connected_clients;
#[OA\Property(
property: 'uptime_in_days',
description: '运行天数',
type: 'integer',
example: 30
)]
public int $uptime_in_days;
#[OA\Property(
property: 'keyspace_hits',
description: '键空间命中次数',
type: 'integer',
example: 10000
)]
public int $keyspace_hits;
#[OA\Property(
property: 'keyspace_misses',
description: '键空间未命中次数',
type: 'integer',
example: 100
)]
public int $keyspace_misses;
}
@@ -0,0 +1,75 @@
<?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\monitor;
use madong\swagger\schema\BaseResponseDTO;
use OpenApi\Attributes as OA;
#[OA\Schema(
title: '服务器监控信息响应模型',
description: '服务器CPU、内存、磁盘及PHP环境监控接口的返回数据结构'
)]
class ServerMonitorResponse extends BaseResponseDTO
{
#[OA\Property(
property: 'cpu',
description: 'CPU监控信息',
properties: [
new OA\Property(property: 'usage', description: 'CPU使用率(%)', type: 'number', format: 'float', example: 25.5),
new OA\Property(property: 'cores', description: 'CPU核心数', type: 'integer', example: 8),
new OA\Property(property: 'model', description: 'CPU型号', type: 'string', example: 'Intel(R) Core(TM) i7-8700K'),
],
type: 'object',
)]
public object $cpu;
#[OA\Property(
property: 'memory',
description: '内存监控信息',
properties: [
new OA\Property(property: 'total', description: '总内存(MB)', type: 'integer', example: 16384),
new OA\Property(property: 'used', description: '已使用内存(MB)', type: 'integer', example: 8192),
new OA\Property(property: 'free', description: '空闲内存(MB)', type: 'integer', example: 8192),
new OA\Property(property: 'usage', description: '内存使用率(%)', type: 'number', format: 'float', example: 50.0),
],
type: 'object',
)]
public object $memory;
#[OA\Property(
property: 'disk',
description: '磁盘监控信息',
properties: [
new OA\Property(property: 'total', description: '总磁盘空间(GB)', type: 'integer', example: 512),
new OA\Property(property: 'used', description: '已使用磁盘空间(GB)', type: 'integer', example: 256),
new OA\Property(property: 'free', description: '空闲磁盘空间(GB)', type: 'integer', example: 256),
new OA\Property(property: 'usage', description: '磁盘使用率(%)', type: 'number', format: 'float', example: 50.0),
],
type: 'object',
)]
public object $disk;
#[OA\Property(
property: 'php',
description: 'PHP环境信息',
properties: [
new OA\Property(property: 'version', description: 'PHP版本', type: 'string', example: '7.4.33'),
new OA\Property(property: 'max_execution_time', description: '最大执行时间(秒)', type: 'integer', example: 30),
new OA\Property(property: 'memory_limit', description: '内存限制', type: 'string', example: '128M'),
],
type: 'object',
)]
public object $php;
}