feat: profit chart in statistics
This commit is contained in:
31
src/client/services/StatisticsService.ts
Normal file
31
src/client/services/StatisticsService.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { GetProfitDataRequest } from '../models/GetProfitDataRequest';
|
||||
import type { GetProfitDataResponse } from '../models/GetProfitDataResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class StatisticsService {
|
||||
/**
|
||||
* Get Profit Data
|
||||
* @returns GetProfitDataResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getProfitData({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: GetProfitDataRequest,
|
||||
}): CancelablePromise<GetProfitDataResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/statistics/get-profit-data',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user