feat(panel): add representation dashboard API helpers
افزودن getRepresentationDashboardMonthly و getRepresentationDashboardYearly به لایه request برای مصرف endpointهای داشبورد نماینده. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user