chore: apis

This commit is contained in:
yangsy
2025-08-22 01:19:15 +08:00
parent a52899b052
commit 4ea5bfa515
5 changed files with 37 additions and 3 deletions

View File

@@ -4,5 +4,9 @@ import type { PageParams, NdmIcmpLogPageQuery, PageResult, NdmIcmpLogResultVO }
export const postIcmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmIcmpLogPageQuery>) => {
const prefix = stationCode ? `/${stationCode}` : '';
const resp = await ndmClient.post<PageResult<NdmIcmpLogResultVO>>(`${prefix}/api/ndm/ndmIcmpLog/page`, pageQuery);
return resp;
const [err, icmpLogData] = resp;
if (err || !icmpLogData) {
throw err;
}
return icmpLogData;
};