29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
<?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;
|
||
|
|
}
|