Files
MrleeAdmin/backend/app/adminapi/schema/response/system/FeedbackResponse.php
T
2026-08-31 11:33:59 +08:00

45 lines
1.8 KiB
PHP

<?php
declare(strict_types=1);
namespace app\adminapi\schema\response\system;
use OpenApi\Attributes as OA;
#[OA\Schema(title: '问题反馈响应')]
class FeedbackResponse
{
#[OA\Property(property: 'id', description: '反馈ID', type: 'string', example: '234161405304516608')]
public string $id;
#[OA\Property(property: 'type', description: '反馈类型', type: 'string', enum: ['bug', 'suggestion', 'correction'])]
public string $type;
#[OA\Property(property: 'content', description: '问题描述', type: 'string')]
public string $content;
#[OA\Property(property: 'contact', description: '联系方式', type: 'string', nullable: true)]
public ?string $contact;
#[OA\Property(property: 'images', description: '截图附件地址数组', type: 'array', items: new OA\Items(type: 'string'), nullable: true)]
public ?array $images;
#[OA\Property(property: 'source', description: '反馈来源', type: 'string', enum: ['app', 'web'])]
public string $source;
#[OA\Property(property: 'reply_content', description: '管理员回复内容', type: 'string', nullable: true)]
public ?string $reply_content;
#[OA\Property(property: 'reply_name', description: '回复管理员名称', type: 'string', nullable: true, example: '管理员')]
public ?string $reply_name;
#[OA\Property(property: 'reply_date', description: '回复时间', type: 'string', nullable: true, example: '2026-08-26 15:30:00')]
public ?string $reply_date;
#[OA\Property(property: 'created_name', description: '提交人名称,匿名提交显示匿名用户', type: 'string', example: '张三')]
public string $created_name;
#[OA\Property(property: 'created_date', description: '提交时间', type: 'string', example: '2026-08-24 15:30:00')]
public string $created_date;
}