랜드 정보 조회 - 조회 부분 작업

This commit is contained in:
2025-02-26 22:29:21 +09:00
parent 24e09a65bc
commit 2b2cec3d10
13 changed files with 286 additions and 102 deletions

View File

@@ -21,6 +21,24 @@ export const LandAuctionView = async (token, landType, landData, userType, userD
}
};
export const LandInfoData = async (token, landType, landData, landSize, category, status, startDate, endDate, order, size, currentPage) => {
try {
const res = await Axios.get(
`/api/v1/land/info?land_type=${landType}&land_data=${landData}&land_size=${landSize}&category=${category}&status=${status}&start_dt=${startDate}&end_dt=${endDate}&orderby=${order}&page_no=${currentPage}
&page_size=${size}`,
{
headers: { Authorization: `Bearer ${token}` },
},
);
return res.data.data;
} catch (e) {
if (e instanceof Error) {
throw new Error('LandInfoData Error', e);
}
}
};
// 랜드 경매 상세보기
export const LandAuctionDetailView = async (token, id) => {
try {