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