|
@@ -43,7 +43,6 @@ import { Plus, Edit, Trash2, Search } from 'lucide-react';
|
|
|
import { membershipPlanClient } from '@/client/api';
|
|
import { membershipPlanClient } from '@/client/api';
|
|
|
import type { InferResponseType, InferRequestType } from 'hono/client';
|
|
import type { InferResponseType, InferRequestType } from 'hono/client';
|
|
|
import { toast } from 'sonner';
|
|
import { toast } from 'sonner';
|
|
|
-import { z } from 'zod';
|
|
|
|
|
import { CreateMembershipPlanDto, UpdateMembershipPlanDto, MembershipType } from '@/server/modules/membership/membership-plan.schema';
|
|
import { CreateMembershipPlanDto, UpdateMembershipPlanDto, MembershipType } from '@/server/modules/membership/membership-plan.schema';
|
|
|
import { format } from 'date-fns';
|
|
import { format } from 'date-fns';
|
|
|
import { Badge } from '@/client/components/ui/badge';
|
|
import { Badge } from '@/client/components/ui/badge';
|
|
@@ -52,7 +51,6 @@ import { Skeleton } from '@/client/components/ui/skeleton';
|
|
|
|
|
|
|
|
// 类型定义
|
|
// 类型定义
|
|
|
type MembershipPlanResponse = InferResponseType<typeof membershipPlanClient.$get, 200>['data'][0];
|
|
type MembershipPlanResponse = InferResponseType<typeof membershipPlanClient.$get, 200>['data'][0];
|
|
|
-type MembershipPlanListResponse = InferResponseType<typeof membershipPlanClient.$get, 200>;
|
|
|
|
|
type CreateMembershipPlanRequest = InferRequestType<typeof membershipPlanClient.$post>['json'];
|
|
type CreateMembershipPlanRequest = InferRequestType<typeof membershipPlanClient.$post>['json'];
|
|
|
type UpdateMembershipPlanRequest = InferRequestType<typeof membershipPlanClient[':id']['$put']>['json'];
|
|
type UpdateMembershipPlanRequest = InferRequestType<typeof membershipPlanClient[':id']['$put']>['json'];
|
|
|
|
|
|