From cad243905ffe241d8cfe41b71bc07041531c9f76 Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 21 Nov 2024 21:40:08 +0800 Subject: [PATCH] fix ts request cli (#4461) Co-authored-by: robinzhang --- tools/goctl/api/tsgen/request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/goctl/api/tsgen/request.ts b/tools/goctl/api/tsgen/request.ts index 83a63e017ec3..a0a2845836e0 100644 --- a/tools/goctl/api/tsgen/request.ts +++ b/tools/goctl/api/tsgen/request.ts @@ -32,7 +32,7 @@ export function parseParams(url: string): Array { * @param url * @param params */ -export function genUrl(url: string, params: unknown) { +export function genUrl(url: string, params: any) { if (!params) { return url; } @@ -113,7 +113,7 @@ export const webapi = { return api('delete', url, req, config); }, put(url: string, req: unknown, config?: unknown): Promise { - return api('get', url, req, config); + return api('put', url, req, config); }, post(url: string, req: unknown, config?: unknown): Promise { return api('post', url, req, config);