import { APICommonResponse, ApiId, HttpMethod, makeParam, request } from "api"; import { getUrl } from "./url"; type 顧客マスタ = { id: number; customer_id: string; customer_name: string; }; // -------顧客ログインユーザ新規登録--------------- export type 顧客マスタ一覧取得Request = {}; export type 顧客マスタ一覧取得Response = { data: { list: 顧客マスタ[]; }; } & APICommonResponse; export const 顧客マスタ一覧取得 = async (param: 顧客マスタ一覧取得Request) => { const res = await request<顧客マスタ一覧取得Response>({ url: getUrl(ApiId.顧客マスタ一覧取得), method: HttpMethod.GET, data: new URLSearchParams(param), }); return res; };