Skip to content

Commit

Permalink
chore :: 주말급식 변경
Browse files Browse the repository at this point in the history
주말급식 변경
  • Loading branch information
phyuna0525 authored Jan 2, 2025
2 parents ec83554 + 6ca3331 commit 6270b67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/CItest.yml

This file was deleted.

14 changes: 8 additions & 6 deletions src/apis/weekendMeal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ interface notCheckMeal {
num: number;
}

const router = "/weekend-meal";

export const Printexcel = () => {
const downloadExcel = async () => {
try {
const response = await instance.get("/weekend-meal/excel", {
const response = await instance.get(`${router}/excel`, {
responseType: "blob",
});

Expand All @@ -52,7 +54,7 @@ export const useClassWeekendMealExcel = () => {
const usedownloadClassExcel = async (grade: number, class_num: number) => {
try {
const { data } = await instance.get(
`/weekend-meal/excel/grade?grade=${grade}&class_num=${class_num}`,
`${router}/excel/grade?grade=${grade}&class_num=${class_num}`,
{
responseType: "blob",
}
Expand Down Expand Up @@ -83,7 +85,7 @@ export const ChangeState = () => {
mutationFn: async (params) => {
try {
await instance.patch(
`/weekend-meal/status?id=${params.id}&status=${params.status}`
`${router}/status?id=${params.id}&status=${params.status}`
);
} catch (error) {
handleError(error);
Expand All @@ -98,7 +100,7 @@ export const GetAllStudentMeal = () => {
queryKey: ["GetAllStudentMeal"],
queryFn: async () => {
try {
const { data } = await instance.get(`weekend-meal/hey`);
const { data } = await instance.get(`${router}/application-list`);
return data;
} catch (error) {
handleError(error);
Expand All @@ -114,7 +116,7 @@ export const MealCheck = (grade: number, class_num: number) => {
queryFn: async () => {
try {
const { data } = await instance.get<mealcheckProp[]>(
`/weekend-meal/all?grade=${grade}&class_num=${class_num}`
`${router}/all?grade=${grade}&class_num=${class_num}`
);
return data;
} catch (error) {
Expand All @@ -131,7 +133,7 @@ export const NotMealCheck = (grade: number, class_num: number) => {
queryFn: async () => {
try {
const { data } = await instance.get<notCheckMeal[]>(
`/weekend-meal/quit?grade=${grade}&class_num=${class_num}`
`${router}l/quit?grade=${grade}&class_num=${class_num}`
);
return data;
} catch (error) {
Expand Down

0 comments on commit 6270b67

Please sign in to comment.