@@ -53,7 +53,9 @@ class PlanController extends Controller
$assetIds = $request->get("assets", []);
$emptyResponse = $this->success([
'data' => [],
- 'total'=>0
+ 'mate'=>[
+ 'total'=>0
+ ]
]);
if (! $assetIds) {
@@ -19,6 +19,8 @@ class PlanByAssetResource extends JsonResource
'title' => $this->title,
'asset_id' => $this->asset_id,
'asset_name' => $this->asset ? $this->asset->name : null,
+ 'begin' => $this->begin,
+ 'end' => $this->end,
];
}