chore: models & requests
This commit is contained in:
@@ -4,6 +4,7 @@ import type { NdmSnmpLogPageQuery, NdmSnmpLogResultVO } from '@/apis/models/devi
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postSnmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmSnmpLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${stationCode}/api/ndm/ndmSnmpLog/page`, pageQuery);
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${prefix}/api/ndm/ndmSnmpLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user