import { getApiClient } from "./client"; import { getConfig } from "@common/config"; import { ENDPOINT } from "../config"; export interface Banner { bnrSn: number; bnrTypeCd: string; bnrTypeNm: string; bnrTtl: string; lnkgUrlAddr: string; useYn: string; atflCd: string; mdfcnDt: string; mdfr: string; mdfrNm: string; } const { PROXY_HOST } = getConfig(); const BASE_URL = `${PROXY_HOST}/server`; const client = getApiClient(); export const getBannerList = async (siteId: string) => { const response = await client.get( `${BASE_URL}${ENDPOINT.CMS_SERVICE.BANNERS}/${siteId}`, { method: "GET", headers: { "Content-Type": "application/json", }, }, ); return response.data; };