141 lines
3.1 KiB
PHP
141 lines
3.1 KiB
PHP
<?php
|
|
/**
|
|
*+------------------
|
|
* madong
|
|
*+------------------
|
|
* Copyright (c) https://gitee.com/motion-code All rights reserved.
|
|
*+------------------
|
|
* Author: Mr. April (405784684@qq.com)
|
|
*+------------------
|
|
* Official Website: https://madong.tech
|
|
*/
|
|
|
|
namespace app\api\schema\response\system;
|
|
|
|
use madong\swagger\schema\BaseResponseDTO;
|
|
use OpenApi\Attributes as OA;
|
|
|
|
#[OA\Schema(
|
|
title: '配置详情响应模型',
|
|
description: '配置详情接口的返回数据结构'
|
|
)]
|
|
class ConfigResponse extends BaseResponseDTO
|
|
{
|
|
#[OA\Property(
|
|
property: 'id',
|
|
description: '配置ID',
|
|
type: 'string',
|
|
example: '242218273104986112'
|
|
)]
|
|
public string $id;
|
|
|
|
#[OA\Property(
|
|
property: 'group_code',
|
|
description: '分组编码',
|
|
type: 'string',
|
|
example: 'site'
|
|
)]
|
|
public string $group_code;
|
|
|
|
#[OA\Property(
|
|
property: 'code',
|
|
description: '配置编码',
|
|
type: 'string',
|
|
example: 'site_name'
|
|
)]
|
|
public string $code;
|
|
|
|
#[OA\Property(
|
|
property: 'name',
|
|
description: '配置名称',
|
|
type: 'string',
|
|
example: '网站名称'
|
|
)]
|
|
public string $name;
|
|
|
|
#[OA\Property(
|
|
property: 'content',
|
|
description: '配置内容',
|
|
type: 'mixed',
|
|
example: '我的网站'
|
|
)]
|
|
public mixed $content;
|
|
|
|
#[OA\Property(
|
|
property: 'description',
|
|
description: '配置描述',
|
|
type: 'string',
|
|
example: '网站名称配置项',
|
|
nullable: true
|
|
)]
|
|
public ?string $description;
|
|
|
|
#[OA\Property(
|
|
property: 'sort',
|
|
description: '排序号',
|
|
type: 'integer',
|
|
example: 1
|
|
)]
|
|
public int $sort;
|
|
|
|
#[OA\Property(
|
|
property: 'enabled',
|
|
description: '状态(1启用 0禁用)',
|
|
type: 'integer',
|
|
enum: [0, 1],
|
|
example: 1
|
|
)]
|
|
public int $enabled;
|
|
|
|
#[OA\Property(
|
|
property: 'created_by',
|
|
description: '创建人ID',
|
|
type: 'string',
|
|
example: '1'
|
|
)]
|
|
public string $created_by;
|
|
|
|
#[OA\Property(
|
|
property: 'updated_by',
|
|
description: '更新人ID',
|
|
type: 'string',
|
|
example: '1'
|
|
)]
|
|
public string $updated_by;
|
|
|
|
#[OA\Property(
|
|
property: 'created_at',
|
|
description: '创建时间',
|
|
type: 'string',
|
|
format: 'date-time',
|
|
example: '2024-01-01 12:00:00'
|
|
)]
|
|
public string $created_at;
|
|
|
|
#[OA\Property(
|
|
property: 'updated_at',
|
|
description: '更新时间',
|
|
type: 'string',
|
|
format: 'date-time',
|
|
example: '2024-01-01 12:00:00'
|
|
)]
|
|
public string $updated_at;
|
|
|
|
#[OA\Property(
|
|
property: 'created_date',
|
|
description: '创建时间(格式化)',
|
|
type: 'string',
|
|
example: '2024-01-01 12:00:00',
|
|
nullable: true
|
|
)]
|
|
public ?string $created_date;
|
|
|
|
#[OA\Property(
|
|
property: 'updated_date',
|
|
description: '更新时间(格式化)',
|
|
type: 'string',
|
|
example: '2024-01-01 12:00:00',
|
|
nullable: true
|
|
)]
|
|
public ?string $updated_date;
|
|
} |