Skip to content

Commit

Permalink
feat : update services/statistics.service.js (#83)
Browse files Browse the repository at this point in the history
월별 수익 API 추가
  • Loading branch information
JungYeonHwi committed Oct 17, 2023
1 parent 05959de commit fa27806
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion services/statistics.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ const getDailyRevenue = async(id) => {
}
}

const getMonthlyProfit = async(id) => {
try {
const data = await statisticsApi.getMonthlyProfit(id);
return data;
} catch (error) {
throw error;
}
}

const statisticsService = {
getDailyProfit,
getDailyRevenue
getDailyRevenue,
getMonthlyProfit
}

export default statisticsService;

0 comments on commit fa27806

Please sign in to comment.