FPSMS-frontend
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.ts 524 B

3ヶ月前
123456789101112131415161718192021
  1. import { serverFetchJson } from '@/app/utils/fetchUtil';
  2. import { BASE_API_URL } from '@/config/api';
  3. import { cache } from "react";
  4. import "server-only";
  5. export interface PrinterCombo {
  6. id: number;
  7. value: number;
  8. label?: string;
  9. code?: string;
  10. name?: string;
  11. description?: string;
  12. ip?: string;
  13. port?: number;
  14. }
  15. export const fetchPrinterCombo = cache(async () => {
  16. return serverFetchJson<PrinterCombo[]>(`${BASE_API_URL}/printers/combo`, {
  17. next: { tags: ["qcItems"] },
  18. })
  19. })