fix detach fail, marks
This commit is contained in:
54
frontend/modules/api/models/Mark.php
Normal file
54
frontend/modules/api/models/Mark.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
namespace frontend\modules\api\models;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="Mark",
|
||||
* @OA\Property(
|
||||
* property="id",
|
||||
* type="int",
|
||||
* example=12,
|
||||
* description="Идентификатор метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
* type="string",
|
||||
* example="Срочная задача",
|
||||
* description="Описание метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="slug",
|
||||
* type="string",
|
||||
* example="urgent",
|
||||
* description="Ключ метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="color",
|
||||
* type="string",
|
||||
* example="RED",
|
||||
* description="Цвет метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* example="1",
|
||||
* description="Статус"
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="MarkExample",
|
||||
* type="array",
|
||||
* @OA\Items(
|
||||
* ref="#/components/schemas/Mark",
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
*/
|
||||
class Mark extends \common\models\Mark
|
||||
{
|
||||
|
||||
}
|
44
frontend/modules/api/models/MarkEntity.php
Normal file
44
frontend/modules/api/models/MarkEntity.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace frontend\modules\api\models;
|
||||
|
||||
/**
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="MarkEntity",
|
||||
* @OA\Property(
|
||||
* property="id",
|
||||
* type="int",
|
||||
* example=1,
|
||||
* description="Идентификатор метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="mark_id",
|
||||
* type="integer",
|
||||
* example=1,
|
||||
* description="Идентификатор метки"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="mark",
|
||||
* ref="#/components/schemas/MarkExample",
|
||||
* description="Файл"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="entity_type",
|
||||
* type="integer",
|
||||
* example=2,
|
||||
* description="Идентификатор типа сущности"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="entity_id",
|
||||
* type="integer",
|
||||
* example=24,
|
||||
* description="Идентификатор сущности"
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
*/
|
||||
class MarkEntity extends \common\models\MarkEntity
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user