feat: 이미지 목록 페이지 작업

This commit is contained in:
2025-04-01 15:40:38 +09:00
parent f2954e6ebd
commit a912deeefb
10 changed files with 222 additions and 48 deletions
@@ -0,0 +1,21 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
ImageParams,
ImageList,
ImageService,
} from "../model/image-interface";
export class ImageApiService implements ImageService {
public async getImageList(params: ImageParams): Promise<ImageList> {
const response = await client.get<ImageList>(
`${ENDPOINT.CMS_SERVICE.IMAGES}`,
{
params,
},
);
return response.data;
}
}
export const ImageApi = new ImageApiService();