2023-04-25 01:32:15 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace frontend\modules\api\models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="ProjectTask",
|
|
|
|
* @OA\Property(
|
|
|
|
* property="id",
|
|
|
|
* type="int",
|
|
|
|
* example=95,
|
|
|
|
* description="Идентификатор задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="title",
|
|
|
|
* type="string",
|
|
|
|
* example="Задачи на проверку",
|
|
|
|
* description="Заголовок задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="project_id",
|
|
|
|
* type="int",
|
|
|
|
* example="95",
|
|
|
|
* description="Проект к которому относится задача"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="column_id",
|
|
|
|
* type="int",
|
|
|
|
* example="23",
|
|
|
|
* description="Колонка к которой относится задача"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="user_id",
|
|
|
|
* type="int",
|
|
|
|
* example="19",
|
2023-04-27 01:53:21 +03:00
|
|
|
* description="Идентификатор пользователя создавшего задачу"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="user",
|
|
|
|
* ref="#/components/schemas/ProjectTaskUsersShortExample",
|
2023-04-25 01:32:15 +03:00
|
|
|
* description="Пользователь создавший задачу"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-04-27 01:53:21 +03:00
|
|
|
* property="executor_id",
|
|
|
|
* type="int",
|
|
|
|
* example="2",
|
|
|
|
* description="Идентификатор исполнителя задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="executor",
|
|
|
|
* ref="#/components/schemas/ProjectTaskUsersShortExample",
|
|
|
|
* description="Исполнитель задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-04-25 01:32:15 +03:00
|
|
|
* property="description",
|
|
|
|
* type="string",
|
|
|
|
* example="Описание задачи",
|
|
|
|
* description="Описание задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-05-12 02:12:43 +03:00
|
|
|
* property="priority",
|
|
|
|
* type="int",
|
|
|
|
* example="1",
|
|
|
|
* description="Приоритет задачи"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-04-25 01:32:15 +03:00
|
|
|
* property="status",
|
|
|
|
* type="int",
|
|
|
|
* example="1",
|
2023-05-12 02:12:43 +03:00
|
|
|
* description="Статус задачи"
|
2023-04-25 01:32:15 +03:00
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-05-17 01:14:54 +03:00
|
|
|
* property="comment_count",
|
|
|
|
* type="int",
|
|
|
|
* example="5",
|
|
|
|
* description="Кол-во комментариев"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
2023-04-25 01:32:15 +03:00
|
|
|
* property="taskUsers",
|
|
|
|
* ref="#/components/schemas/ProjectTaskUsersExample",
|
|
|
|
* ),
|
|
|
|
*)
|
|
|
|
*
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="ProjectTaskExample",
|
|
|
|
* type="array",
|
|
|
|
* @OA\Items(
|
|
|
|
* type="object",
|
|
|
|
* ref="#/components/schemas/ProjectTask",
|
|
|
|
* ),
|
|
|
|
*)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="ProjectTaskUsersExample",
|
|
|
|
* type="array",
|
|
|
|
* @OA\Items(
|
|
|
|
* type="object",
|
|
|
|
* @OA\Property(
|
|
|
|
* property="id",
|
|
|
|
* type="integer",
|
|
|
|
* example="1"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="task_id",
|
|
|
|
* type="integer",
|
|
|
|
* example="1"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="user_id",
|
|
|
|
* type="integer",
|
|
|
|
* example="19"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="fio",
|
|
|
|
* type="string",
|
|
|
|
* example="Сапронов Антон Викторович"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="avatar",
|
|
|
|
* type="string",
|
|
|
|
* example="/profileava/m8.png"
|
|
|
|
* ),
|
|
|
|
* ),
|
|
|
|
*)
|
|
|
|
*
|
2023-04-27 01:53:21 +03:00
|
|
|
* @OA\Schema(
|
|
|
|
* schema="ProjectTaskUsersShortExample",
|
|
|
|
* @OA\Property(
|
|
|
|
* property="fio",
|
|
|
|
* type="string",
|
|
|
|
* example="Сапронов Антон Викторович"
|
|
|
|
* ),
|
|
|
|
* @OA\Property(
|
|
|
|
* property="avatar",
|
|
|
|
* type="string",
|
|
|
|
* example="/profileava/m8.png"
|
|
|
|
* ),
|
|
|
|
*)
|
|
|
|
*
|
2023-04-25 01:32:15 +03:00
|
|
|
*/
|
|
|
|
class ProjectTask extends \common\models\ProjectTask
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|