chore: apis
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user