update cases

This commit is contained in:
AceDataCloud committed 2023-01-21 15:44:16 +08:00
1 parent 983dff4ab3
commit 668c2b3a6b
11 files changed
+27 -38

No files matched your search

+6 -6
View File
@@ -33,9 +33,9 @@ export interface IResponse {
title: string;
description?: string;
example?: string;
isSuccess: boolean;
errorCode?: string;
statusCode: number;
is_success: boolean;
error_code?: string;
status_code: number;
body: ISchema;
headers: ISchema;
}
@@ -50,10 +50,10 @@ export interface IApi {
tags?: string[];
request: IRequest;
responses: IResponse[];
isFree?: boolean;
is_free?: boolean;
service?: string;
createdAt?: string;
updatedAt?: string;
created_at?: string;
updated_at?: string;
}
export interface IApiListResponse {
+1 -2
View File
@@ -1,5 +1,4 @@
import { AxiosResponse } from 'axios';
import { decamelizeKeys } from 'humps';
import { httpClient } from '../instance';
import { IApi, IApiDetailResponse, IApiListResponse } from '../api/models';
@@ -13,7 +12,7 @@ class ApiOperator {
async getAll(query: IApiQuery): Promise<AxiosResponse<IApiListResponse>> {
return await httpClient.get(`/${this.key}/`, {
params: decamelizeKeys(query)
params: query
});
}