11 lines
499 B
TypeScript
11 lines
499 B
TypeScript
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
|
import type { NdmSnmpLogPageQuery, NdmSnmpLogResultVO } from '@/apis/models/device';
|
|
|
|
import { ndmClient } from '@/apis/client';
|
|
|
|
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;
|
|
};
|