Skip to content

Commit

Permalink
feat : update api/statics.js (#83)
Browse files Browse the repository at this point in the history
Daily Revenue API 추가
  • Loading branch information
JungYeonHwi committed Oct 17, 2023
1 parent cd78a0a commit 5dde260
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ const getDailyProfit = async(id) => {
return data.data;
}

const getDailyRevenue = async(id) => {
const {data} = await fetcher.get(
`api/v1/statistics/daily/revenue?storeId=${id}`
);
return data.data;
}

const statistics = {
getDailyProfit
getDailyProfit,
getDailyRevenue
}

export default statistics;

0 comments on commit 5dde260

Please sign in to comment.