task priority, comments
This commit is contained in:
63
frontend/modules/api/models/Comment.php
Normal file
63
frontend/modules/api/models/Comment.php
Normal file
@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace frontend\modules\api\models;
|
||||
|
||||
/**
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="Comment",
|
||||
* @OA\Property(
|
||||
* property="id",
|
||||
* type="int",
|
||||
* example=12,
|
||||
* description="Идентификатор комментария"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="text",
|
||||
* type="string",
|
||||
* example="Очень хорошая задача",
|
||||
* description="Текст комментария"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="created_at",
|
||||
* type="datetime",
|
||||
* example="2023-04-07 02:09:42",
|
||||
* description="Дата и время создания"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="updated_at",
|
||||
* type="datetime",
|
||||
* example="2023-04-10 16:20:48",
|
||||
* description="Дата и время обновления"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="user_id",
|
||||
* type="integer",
|
||||
* example=19,
|
||||
* description="Идентификатор пользователя"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="entity_type",
|
||||
* type="int",
|
||||
* example=2,
|
||||
* description="Идентификатор типа сущности комментария"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="entity_id",
|
||||
* type="int",
|
||||
* example=2,
|
||||
* description="Идентификатор сущности комментария"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* example="1",
|
||||
* description="Статус"
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
*/
|
||||
class Comment extends \common\models\Comment
|
||||
{
|
||||
|
||||
}
|
@ -59,10 +59,16 @@ namespace frontend\modules\api\models;
|
||||
* description="Описание задачи"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="priority",
|
||||
* type="int",
|
||||
* example="1",
|
||||
* description="Приоритет задачи"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="int",
|
||||
* example="1",
|
||||
* description="Статус колонки"
|
||||
* description="Статус задачи"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="taskUsers",
|
||||
|
Reference in New Issue
Block a user