add project_id and company_id to reports
update doc
This commit is contained in:
@ -153,6 +153,51 @@ namespace frontend\modules\api\models;
|
||||
* type="string",
|
||||
* example="/profileava/m8.png"
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="ProjectTaskReportsExample",
|
||||
* type="array",
|
||||
* @OA\Items(
|
||||
* @OA\Property(
|
||||
* property="id",
|
||||
* type="integer",
|
||||
* example=1
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="report_id",
|
||||
* type="integer",
|
||||
* example=12
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="task",
|
||||
* type="string",
|
||||
* example="Задача"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="hours_spent",
|
||||
* type="integer",
|
||||
* example=2
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="created_at",
|
||||
* type="integer",
|
||||
* example=1671148800
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* example=1
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="minutes_spent",
|
||||
* type="integer",
|
||||
* example=0
|
||||
* ),
|
||||
* )
|
||||
*
|
||||
*
|
||||
|
||||
*)
|
||||
*
|
||||
*/
|
||||
|
132
frontend/modules/api/models/Reports.php
Normal file
132
frontend/modules/api/models/Reports.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
namespace frontend\modules\api\models;
|
||||
|
||||
/**
|
||||
* @OA\Schema(
|
||||
* schema="Reports",
|
||||
* @OA\Property(
|
||||
* property="difficulties",
|
||||
* type="string",
|
||||
* description="Описание сложностей возникших при выполнении задач"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="tomorrow",
|
||||
* type="string",
|
||||
* description="Описание планов на завтра"
|
||||
* ),
|
||||
*
|
||||
* @OA\Property(
|
||||
* property="created_at",
|
||||
* type="datetime",
|
||||
* example="2023-04-07 02:09:42",
|
||||
* description="Дата создания"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* example="1",
|
||||
* description="Статус"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="user_card_id",
|
||||
* type="integer",
|
||||
* example=19,
|
||||
* description="ID карты(профиля) пользователя"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="project_id",
|
||||
* type="integer",
|
||||
* example=1,
|
||||
* description="ID проекта"
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="company_id",
|
||||
* type="integer",
|
||||
* example=1,
|
||||
* description="ID компании",
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="ReportsResponseCreateExample",
|
||||
* type="array",
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
* @OA\Property(
|
||||
* property="difficulties",
|
||||
* type="string",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="tomorrow",
|
||||
* type="string",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="created_at",
|
||||
* type="datetime",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="user_card_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="project_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="company_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="ReportsResponseExample",
|
||||
* type="array",
|
||||
* @OA\Items(
|
||||
* type="object",
|
||||
* @OA\Property(
|
||||
* property="difficulties",
|
||||
* type="string",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="tomorrow",
|
||||
* type="string",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="created_at",
|
||||
* type="datetime",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="status",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="user_card_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="project_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="company_id",
|
||||
* type="integer",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="task",
|
||||
* ref="#/components/schemas/ProjectTaskReportsExample",
|
||||
* ),
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
*/
|
||||
class Reports extends \common\models\Reports
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user