You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
747B

  1. import { APICommonResponse, ApiId, HttpMethod, makeParam, request } from "api";
  2. import { getUrl } from "./url";
  3. type 顧客マスタ = {
  4. id: number;
  5. customer_id: string;
  6. customer_name: string;
  7. };
  8. // -------顧客ログインユーザ新規登録---------------
  9. export type 顧客マスタ一覧取得Request = {};
  10. export type 顧客マスタ一覧取得Response = {
  11. data: {
  12. list: 顧客マスタ[];
  13. };
  14. } & APICommonResponse;
  15. export const 顧客マスタ一覧取得 = async (param: 顧客マスタ一覧取得Request) => {
  16. const res = await request<顧客マスタ一覧取得Response>({
  17. url: getUrl(ApiId.顧客マスタ一覧取得),
  18. method: HttpMethod.GET,
  19. data: new URLSearchParams(param),
  20. });
  21. return res;
  22. };