import { client } from "@/shared/api"; import { ENDPOINT } from "@/shared/config"; import type { IpService, IpParams, IpList, IP } from "../model/ip-interface"; export class IpApiService implements IpService { public async getIpList(params: IpParams): Promise { const response = await client.get(`${ENDPOINT.CMS_SERVICE.IPS}`, { params, }); return response.data; } public async saveIpList(body: IP[]): Promise { const response = await client.post( `${ENDPOINT.CMS_SERVICE.IPS}`, body, ); return response.data; } } export const IpApi = new IpApiService();