랜드 소유권 변경
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user