chore: models & requests
This commit is contained in:
@@ -4,6 +4,7 @@ import type { NdmDeviceAlarmLogPageQuery, NdmDeviceAlarmLogResultVO } from '@/ap
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmDeviceAlarmLogPage = async (stationCode: string, pageQuery: PageParams<NdmDeviceAlarmLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmDeviceAlarmLogResultVO>>(`${stationCode}/api/ndm/ndmDeviceAlarmLog/page`, pageQuery);
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.post<PageResult<NdmDeviceAlarmLogResultVO>>(`${prefix}/api/ndm/ndmDeviceAlarmLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
|
||||
@@ -4,6 +4,7 @@ import type { NdmIcmpLogPageQuery, NdmIcmpLogResultVO } from '@/apis/models/devi
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postIcmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmIcmpLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmIcmpLogResultVO>>(`${stationCode}/api/ndm/ndmIcmpLog/page`, pageQuery);
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.post<PageResult<NdmIcmpLogResultVO>>(`${prefix}/api/ndm/ndmIcmpLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
|
||||
@@ -4,6 +4,7 @@ import type { NdmSnmpLogPageQuery, NdmSnmpLogResultVO } from '@/apis/models/devi
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postSnmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmSnmpLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${stationCode}/api/ndm/ndmSnmpLog/page`, pageQuery);
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${prefix}/api/ndm/ndmSnmpLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user