Browse Source

类型调整

zhangzf 2 ngày trước cách đây
mục cha
commit
fb7dd856f4
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/app/api/shop/customer-addresses/route.ts

+ 3 - 3
src/app/api/shop/customer-addresses/route.ts

@@ -1,10 +1,10 @@
-import { NextResponse } from "next/server";
+import { NextResponse,NextRequest } from "next/server";
 import { restApiFetch } from "@/utils/bagisto";
 import { isBagistoError } from "@/utils/type-guards";
 import { getAuthToken } from "@/utils/helper";
-import { NextRequestHint } from "next/dist/server/web/adapter";
+// import { NextRequestHint } from "next/dist/server/web/adapter";
 // import type { GiftListBody,FetchWrap  } from '@/types/api/gift/lists';
-export async function GET(req: NextRequestHint) {
+export async function GET(req: NextRequest) {
     try {
         const guestToken = getAuthToken(req);
         // 从查询参数取 page,默认 1