"use server"; import { serverFetchJson } from "@/app/utils/fetchUtil"; import { BASE_API_URL } from "@/config/api"; export interface CreateQcCategoryInputs { code: string; name: string; } export const saveQcCategory = async (data: CreateQcCategoryInputs) => { return serverFetchJson(`${BASE_API_URL}/qcCategories/save`, { method: "POST", body: JSON.stringify(data), headers: { "Content-Type": "application/json" }, }); };