랜드 소유권 변경

This commit is contained in:
2025-03-07 18:32:20 +09:00
parent 04adce4aaf
commit 3efd663f0d
8 changed files with 436 additions and 17 deletions

View File

@@ -69,6 +69,21 @@ export const LandAuctionSingleRegist = async (token, params) => {
}
};
// 랜드 소유권 변경 등록
export const LandOwnedChangesRegist = async (token, params) => {
try {
const res = await Axios.post(`/api/v1/land/change`, params, {
headers: { Authorization: `Bearer ${token}` },
});
return res.data;
} catch (e) {
if (e instanceof Error) {
throw new Error('LandAuctionSingleRegist Error', e);
}
}
};
// 랜드 경매 수정
export const LandAuctionModify = async (token, id, params) => {
try {
@@ -84,6 +99,21 @@ export const LandAuctionModify = async (token, id, params) => {
}
};
// 랜드 소유권 변경 수정
export const LandOwnedChangesModify = async (token, id, params) => {
try {
const res = await Axios.put(`/api/v1/land/change/${id}`, params, {
headers: { Authorization: `Bearer ${token}` },
});
return res.data;
} catch (e) {
if (e instanceof Error) {
throw new Error('LandAuctionModify Error', e);
}
}
};
// 랜드 경매 삭제
export const LandAuctionDelete = async (token, params, id) => {
try {