feat: 템플릿 관리 페이지 생성

This commit is contained in:
2025-04-09 13:06:44 +09:00
parent dc1abe83fa
commit ec4b7db2f3
9 changed files with 254 additions and 55 deletions
@@ -0,0 +1,19 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
TemplateService,
TemplateList,
TemplateParams,
} from "../model/template-interface";
export class TemplateApiService implements TemplateService {
public async getTemplateList(params?: TemplateParams): Promise<TemplateList> {
const response = await client.get<TemplateList>(
`${ENDPOINT.CMS_SERVICE.TEMPLATE}`,
{ params },
);
return response.data;
}
}
export const TemplateApi = new TemplateApiService();