From d513d2dd308070422a87d3ffe5a454668e8b51b4 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Sun, 14 Jun 2026 23:54:58 +0330 Subject: [PATCH] feat(panel): add representation dashboard API helpers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit افزودن getRepresentationDashboardMonthly و getRepresentationDashboardYearly به لایه request برای مصرف endpointهای داشبورد نماینده. Co-Authored-By: Claude Opus 4.8 --- services/response.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/response.js b/services/response.js index c42622b..4a375c0 100644 --- a/services/response.js +++ b/services/response.js @@ -125,4 +125,14 @@ export const request = { }), getRepresentationInfo: (uuid) => api.get(`api/v1/representation/${uuid}`, { requireAuth: true }), + getRepresentationDashboardMonthly: (uuid, year, month) => + api.get(`api/v1/representation/${uuid}/dashboard/monthly`, { + params: { year, month }, + requireAuth: true, + }), + getRepresentationDashboardYearly: (uuid, year) => + api.get(`api/v1/representation/${uuid}/dashboard/yearly`, { + params: { year }, + requireAuth: true, + }), };