mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
feat(FE-357): Rename HppPerkandang types and update API path
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { BaseApiService } from '@/services/api/base';
|
||||
import { BaseApiResponse } from '@/types/api/api-general';
|
||||
import { HppPerkandang } from '@/types/api/report/hpp-per-kandang';
|
||||
import { HppPerKandangReport } from '@/types/api/report/hpp-per-kandang';
|
||||
|
||||
export class MarketingSaleReportService extends BaseApiService<
|
||||
HppPerkandang,
|
||||
HppPerKandangReport,
|
||||
unknown,
|
||||
unknown
|
||||
> {
|
||||
@@ -22,8 +22,8 @@ export class MarketingSaleReportService extends BaseApiService<
|
||||
show_unrecorded?: boolean,
|
||||
page?: number,
|
||||
limit?: number
|
||||
): Promise<BaseApiResponse<HppPerkandang> | undefined> {
|
||||
return await this.customRequest<BaseApiResponse<HppPerkandang>>(
|
||||
): Promise<BaseApiResponse<HppPerKandangReport> | undefined> {
|
||||
return await this.customRequest<BaseApiResponse<HppPerKandangReport>>(
|
||||
`hpp-per-kandang`,
|
||||
{
|
||||
method: 'GET',
|
||||
@@ -46,5 +46,5 @@ export class MarketingSaleReportService extends BaseApiService<
|
||||
|
||||
// TODO: REPLACE WITH PRODUCTION URL
|
||||
export const SaleReportApi = new MarketingSaleReportService(
|
||||
'http://localhost:4010/api/reports/marketings/hpp-per-kandang'
|
||||
'http://localhost:4010/api/reports/marketings'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user