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);