feat: 이미지 목록 페이지 작업
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user