api 분리

This commit is contained in:
focp212@naver.com
2025-09-16 13:40:23 +09:00
parent f2f8831724
commit e0c5ae67c6
47 changed files with 318 additions and 189 deletions

View File

@@ -0,0 +1,32 @@
import {
API_BASE_URL,
API_URL_KEY,
} from './../constants/url';
/* Hoem Management = 홈 API */
export const API_URL_HOME = {
homeToday: () => {
// POST: 오늘 매출 및 정산 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/today`;
},
homeOverview: () => {
// POST: 거래 인사이트 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/overview`;
},
homeNoticeList: () => {
// POST: 공지사항 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/notice/list`;
},
homeMonth: () => {
// POST: 당월 매출 및 정산 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/month`;
},
homeGroups: () => {
// POST: GID 또는 MID 권한 별 mid 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/groups`;
},
homeBannerList: () => {
// POST: 배너 조회
return `${API_BASE_URL}/api/v1/${API_URL_KEY}/home/banner/list`;
},
}