유저 지표 잔존율 생성

This commit is contained in:
2025-07-16 18:39:30 +09:00
parent 7fa9abcad4
commit 7041d4a649
10 changed files with 252 additions and 309 deletions

View File

@@ -62,10 +62,14 @@ export const userIndexExport = async (token, filename, sendDate, endDate) => {
};
// Retention
export const RetentionIndexView = async (token, start_dt, end_dt) => {
export const RetentionIndexView = async (token, startDate, endDate, order, size, currentPage) => {
try {
const res = await Axios.get(`/api/v1/indicators/retention/list?start_dt=${start_dt}&end_dt=${end_dt}`, {
headers: { Authorization: `Bearer ${token}` },
const res = await Axios.get(`/api/v1/indicators/retention/list?start_dt=${startDate}&end_dt=${endDate}
&orderby=${order}&page_no=${currentPage}&page_size=${size}`, {
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json'
},
});
return res.data.data;