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, NdmSnmpLogPageQuery, PageResult, NdmSnmpLogResultVO }
export const postSnmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmSnmpLogPageQuery>) => {
const prefix = stationCode ? `/${stationCode}` : '';
const resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${prefix}/api/ndm/ndmSnmpLog/page`, pageQuery);
return resp;
const [err, snmpLogData] = resp;
if (err || !snmpLogData) {
throw err;
}
return snmpLogData;
};