feat: 템플릿 관리 페이지 생성
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user