16 lines
699 B
TypeScript
16 lines
699 B
TypeScript
import { ENDPOINT } from "@/shared/config";
|
|
import { stClient } from "@/shared/api/client";
|
|
|
|
import type { SewerageSupplyRateRequest, SewerageSupplyRateResponse } from "../model/statistics-total/statistics-sewage-supply-rate-total-interface";
|
|
|
|
export class StatisticsTotalApiService {
|
|
public async getSewerageSupplyRateList(params: SewerageSupplyRateRequest): Promise<SewerageSupplyRateResponse> {
|
|
const response = await stClient.get<SewerageSupplyRateResponse> (
|
|
`${ENDPOINT.ST_SERVICE.TOTAL}/sewer-supply-rate/summary`,
|
|
{ params: params }
|
|
);
|
|
return response.data;
|
|
}
|
|
}
|
|
|
|
export const statisticsTotalStatusApi = new StatisticsTotalApiService(); |