2023-06-21 17:22:35 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace frontend\modules\api\models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="FileEntity",
|
|
|
|
* @OA\Property(
|
|
|
|
* property="id",
|
|
|
|
* type="int",
|
|
|
|
* example=1,
|
|
|
|
* description="Идентификатор файла"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="file_id",
|
|
|
|
* type="integer",
|
2023-06-30 18:13:40 +03:00
|
|
|
* example=1,
|
2023-06-21 17:22:35 +03:00
|
|
|
* description="Идентификатор файла"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-06-30 18:13:40 +03:00
|
|
|
* property="file",
|
|
|
|
* ref="#/components/schemas/FileExample",
|
|
|
|
* description="Файл"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-06-21 17:22:35 +03:00
|
|
|
* property="entity_type",
|
|
|
|
* type="integer",
|
|
|
|
* example=2,
|
|
|
|
* description="Идентификатор типа сущности"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="entity_id",
|
|
|
|
* type="integer",
|
|
|
|
* example=24,
|
|
|
|
* description="Идентификатор сущности"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="status",
|
|
|
|
* type="integer",
|
|
|
|
* example=1,
|
|
|
|
* description="Статус прикрепления"
|
|
|
|
* ),
|
|
|
|
*)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class FileEntity extends \common\models\FileEntity
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|