update service api (#29)

* update service api

* update api.ts
This commit is contained in:
UUBulb
2024-12-05 21:00:48 +08:00
committed by GitHub
parent 1cc36b9098
commit 2ad96714f3
4 changed files with 46 additions and 42 deletions

View File

@@ -29,7 +29,7 @@ import { ScrollArea } from "@/components/ui/scroll-area"
import { useForm } from "react-hook-form"
import { z } from "zod"
import { zodResolver } from "@hookform/resolvers/zod"
import { ModelService, ModelServiceResponse } from "@/types"
import { ModelService } from "@/types"
import { createService, updateService } from "@/api/service"
import { Checkbox } from "@/components/ui/checkbox"
import { Label } from "@/components/ui/label"
@@ -48,7 +48,7 @@ import { useTranslation } from "react-i18next";
interface ServiceCardProps {
data?: ModelService;
mutate: KeyedMutator<ModelServiceResponse>;
mutate: KeyedMutator<ModelService[]>;
}
const serviceFormSchema = z.object({