import {Customer} from "@/services/customers/entities/customer"; import {CreateCustomerDto} from "@/services/customers/dtos/createCustomer.dto"; import {callApi} from "@/lib/api/callApi"; export class CustomerRepository { static async getAll(): Promise { return await callApi("/customers", "GET"); } static async create(payload: CreateCustomerDto): Promise { await callApi("/customers", "POST", payload); } }