diff --git a/src/apis/auction/Auction.ts b/src/apis/auction/Auction.ts index 6dd2bfce..df25753a 100644 --- a/src/apis/auction/Auction.ts +++ b/src/apis/auction/Auction.ts @@ -53,44 +53,3 @@ export const enter = async (auctionId: string): Promise => { throw error } } - -export const startBid = async (auctionId: string): Promise => { - try { - const response = await authAxiosInstance.patch( - `${AUCTION_SERVICE_PREFIX_PATH}/admin/bids/start/${auctionId}` - ) - return response - } catch (error) { - if (error instanceof AxiosError) { - if (error.response) { - if (error.response.status >= 400 && error.response.status < 500) { - await warningModal('알림', error.response.data.message) - console.error(`Client Error=${error.response.data.message}`) - } else if (error.response.status >= 500) { - openInternalServerErrorNotification() - console.error('Internal Server Error') - } - } - } - throw error - } -} - -export const endBid = async (auctionId: string): Promise => { - try { - await authAxiosInstance.patch(`${AUCTION_SERVICE_PREFIX_PATH}/admin/bids/end/${auctionId}`) - } catch (error) { - if (error instanceof AxiosError) { - if (error.response) { - if (error.response.status >= 400 && error.response.status < 500) { - await warningModal('알림', error.response.data.message) - console.error(`Client Error=${error.response.data.message}`) - } else if (error.response.status >= 500) { - openInternalServerErrorNotification() - console.error('Internal Server Error') - } - } - } - throw error - } -} diff --git a/src/views/ChatView.vue b/src/views/ChatView.vue index 8c28fd34..ce3ea7e2 100644 --- a/src/views/ChatView.vue +++ b/src/views/ChatView.vue @@ -3,7 +3,7 @@ import { onMounted, onUnmounted, ref, nextTick, computed } from 'vue' import { StatisticCountdown, message, Image, ImagePreviewGroup, Modal } from 'ant-design-vue' import type { CreateBidRequest, ReadAuctionResponse } from '@/apis/auction/AuctionDto' import type { ReadProductDetailResponse } from '@/apis/product/ProductDto' -import { createBid, enter, startBid, endBid } from '@/apis/auction/Auction' +import { createBid, enter} from '@/apis/auction/Auction' import { useRoute } from 'vue-router' import { useAuctionStore } from '@/stores/auction/AuctionStore' import { useMemberStore } from '@/stores/member/MemberStore'