FPSMS-frontend
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.
 
 

21 lines
524 B

  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. })