Skip to content

Commit

Permalink
chore: 파일 정리 및 url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyeon08 committed Jul 4, 2024
1 parent dd49803 commit 22f75cb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 31 deletions.
29 changes: 10 additions & 19 deletions src/apis/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ export class ApiClient
return response.data;
}

async getPoint() {
const response = await this.axiosInstance.request<
BaseResponseType<PointType>
>({
method: 'get',
url: '/user/point',
});
return response.data;
}

// ------- account -------
async getAccountList() {
const response = await this.axiosInstance.request<
Expand Down Expand Up @@ -134,23 +144,6 @@ export class ApiClient
return response.data;
}

// ------- mypage -------

// 하나머니 조회
async getPoint() {
const response = await this.axiosInstance.request<
BaseResponseType<PointType>
>({
method: 'get',
url: '/user/point',
});
return response.data;
}

//---------host---------

//---------account---------

//---------transaction---------
async postQrPay(reqData: QrPayReqType) {
const response = await this.axiosInstance.request<
Expand Down Expand Up @@ -192,8 +185,6 @@ export class ApiClient
return response.data;
}

//---------category---------

//---------lesson---------

// 클래스 상세
Expand Down
3 changes: 1 addition & 2 deletions src/apis/url.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const API_BASE_URL = 'http://43.200.46.175:8080';
// export const API_BASE_URL = 'http://localhost:8080';
export const API_BASE_URL = 'https://hanafun.kro.kr';
3 changes: 2 additions & 1 deletion src/pages/mypage/MyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { useQuery } from '@tanstack/react-query';
import { NotFindMyLesson } from '../../components/molecules/NotFindMyLesson';
import { Loading } from '../Loading';
import { ErrorPage } from '../ErrorPage';
import { getCookie } from '../../utils/cookie';

const MyPage = () => {
const username = '오감자';
const username = getCookie('username');
const navigate = useNavigate();

const handleNavigate = () => {
Expand Down
4 changes: 0 additions & 4 deletions src/types/calendarData.d.ts

This file was deleted.

5 changes: 5 additions & 0 deletions src/types/lesson.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ interface CreateLessonReqType {
materials: string;
lessonDate: LessonDateCommonType[];
}

interface CalendarDataType {
lesson_id: number;
date: string;
}
5 changes: 0 additions & 5 deletions src/types/monthSales.d.ts

This file was deleted.

0 comments on commit 22f75cb

Please sign in to comment.