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