初始化本地仓库

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,32 @@
<?php
declare(strict_types=1);
namespace app\adminapi\schema\request\plugin;
use app\schema\request\BaseFormRequest;
use OpenApi\Attributes as OA;
use WebmanTech\DTO\Attributes\ValidationRules;
#[OA\Schema(
title: '应用授权表单',
description: '应用授权创建和编辑接口共用的表单请求参数'
)]
class ApplicationAuthFormRequest extends BaseFormRequest
{
#[OA\Property(property: 'name', description: '应用名称', type: 'string', example: '开放平台应用', nullable: false)]
#[ValidationRules(rules: 'required|string|max:100')]
public string $name;
#[OA\Property(property: 'expired_at', description: '失效时间戳', type: 'integer', example: 1795104000, nullable: true)]
#[ValidationRules(rules: 'nullable|integer')]
public ?int $expired_at = null;
#[OA\Property(property: 'enabled', description: '状态(1正常 0停用)', type: 'integer', enum: [0, 1], example: 1, nullable: false)]
#[ValidationRules(rules: 'required|integer|in:0,1')]
public int $enabled;
#[OA\Property(property: 'description', description: '描述', type: 'string', example: '用于第三方应用接口调用', nullable: true)]
#[ValidationRules(rules: 'nullable|string|max:500')]
public ?string $description = null;
}
@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace app\adminapi\schema\request\plugin;
use app\schema\request\BaseQueryRequest;
use OpenApi\Attributes as OA;
use WebmanTech\DTO\Attributes\ValidationRules;
#[OA\Schema(
title: '应用授权查询',
description: '应用授权列表查询请求参数'
)]
class ApplicationAuthQueryRequest extends BaseQueryRequest
{
#[OA\Property(property: 'LIKE_name', description: '应用名称', type: 'string', example: '开放平台', nullable: true)]
#[ValidationRules(rules: 'nullable|string|max:100')]
public ?string $LIKE_name = null;
#[OA\Property(property: 'LIKE_access_key', description: 'Access Key', type: 'string', example: 'AK', nullable: true)]
#[ValidationRules(rules: 'nullable|string|max:64')]
public ?string $LIKE_access_key = null;
#[OA\Property(property: 'EQ_enabled', description: '状态', type: 'integer', enum: [0, 1], example: 1, nullable: true)]
#[ValidationRules(rules: 'nullable|integer|in:0,1')]
public ?int $EQ_enabled = null;
}