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