chore: models & requests
This commit is contained in:
@@ -2,6 +2,5 @@ export interface Station {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
online: boolean;
|
||||
}
|
||||
|
||||
export type StationStatusRecord = Record<string, boolean>;
|
||||
|
||||
27
src/apis/models/device/alarm/ndm-device-alarm-log.ts
Normal file
27
src/apis/models/device/alarm/ndm-device-alarm-log.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { BaseModel } from '../../base/model';
|
||||
import type { ReduceForPageQuery, ReduceForSaveVO, ReduceForUpdateVO } from '../../base/reduce';
|
||||
|
||||
export interface NdmDeviceAlarmLogVO extends BaseModel {
|
||||
alarmNo: string;
|
||||
alarmDate: string;
|
||||
faultLocation: string;
|
||||
faultDescription: string;
|
||||
faultLevel: string;
|
||||
faultCode: string;
|
||||
deviceId: string;
|
||||
deviceName: string;
|
||||
alarmCategory: string;
|
||||
alarmConfirm: string;
|
||||
alarmRepairSuggestion: string;
|
||||
impactService: string;
|
||||
alarmType: string;
|
||||
deviceType: string;
|
||||
}
|
||||
|
||||
export type NdmDeviceAlarmLogResultVO = Partial<NdmDeviceAlarmLogVO>;
|
||||
|
||||
export type NdmDeviceAlarmLogSaveVO = Partial<Omit<NdmDeviceAlarmLogVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmDeviceAlarmLogUpdateVO = Partial<Omit<NdmDeviceAlarmLogVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmDeviceAlarmLogPageQuery = Partial<Omit<NdmDeviceAlarmLogVO, ReduceForPageQuery>>;
|
||||
@@ -7,6 +7,8 @@ import type { NdmKeyboardVO } from './video/ndm-keyboard';
|
||||
import type { NdmMediaServerVO } from './video/ndm-media-server';
|
||||
import type { NdmVideoServerVO } from './video/ndm-video-server';
|
||||
|
||||
export * from './alarm/ndm-device-alarm-log';
|
||||
|
||||
export * from './log/ndm-icmp-log';
|
||||
export * from './log/ndm-snmp-log';
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ export type NdmIcmpLogSaveVO = Partial<Omit<NdmIcmpLogVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmIcmpLogUpdateVO = Partial<Omit<NdmIcmpLogVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmIcmpLogPageVO = Partial<Omit<NdmIcmpLogVO, ReduceForPageQuery>>;
|
||||
export type NdmIcmpLogPageQuery = Partial<Omit<NdmIcmpLogVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -15,4 +15,4 @@ export type NdmSnmpLogSaveVO = Partial<Omit<NdmSnmpLogVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmSnmpLogUpdateVO = Partial<Omit<NdmSnmpLogVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmSnmpLogPageVO = Partial<Omit<NdmSnmpLogVO, ReduceForPageQuery>>;
|
||||
export type NdmSnmpLogPageQuery = Partial<Omit<NdmSnmpLogVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -32,4 +32,4 @@ export type NdmSecurityBoxSaveVO = Partial<Omit<NdmSecurityBoxVO, ReduceForSaveV
|
||||
|
||||
export type NdmSecurityBoxUpdateVO = Partial<Omit<NdmSecurityBoxVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmSecurityBoxPageVO = Partial<Omit<NdmSecurityBoxVO, ReduceForPageQuery>>;
|
||||
export type NdmSecurityBoxPageQuery = Partial<Omit<NdmSecurityBoxVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -32,4 +32,4 @@ export type NdmSwitchSaveVO = Partial<Omit<NdmSwitchVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmSwitchUpdateVO = Partial<Omit<NdmSwitchVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmSwitchPageVO = Partial<Omit<NdmSwitchVO, ReduceForPageQuery>>;
|
||||
export type NdmSwitchPageQuery = Partial<Omit<NdmSwitchVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -43,4 +43,92 @@ export type NdmNvrSaveVO = Partial<Omit<NdmNvrVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmNvrUpdateVO = Partial<Omit<NdmNvrVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmNvrPageVO = Partial<Omit<NdmNvrVO, ReduceForPageQuery>>;
|
||||
export type NdmNvrPageQuery = Partial<Omit<NdmNvrVO, ReduceForPageQuery>>;
|
||||
|
||||
export interface RecordSum {
|
||||
code: string;
|
||||
recordList: NdmRecordCheck[];
|
||||
channel: ClientChannel;
|
||||
availableRecordList: UnixRecordItem[];
|
||||
unavailableRecordList: UnixRecordItem[];
|
||||
}
|
||||
|
||||
export interface NdmRecordCheck extends BaseModel {
|
||||
gbCode: string;
|
||||
parentGbCode: string;
|
||||
name: string;
|
||||
ipAddress: string;
|
||||
diagInfo: string | RecordInfo;
|
||||
checkDate: string;
|
||||
}
|
||||
|
||||
export interface ClientChannel {
|
||||
code: string;
|
||||
name: string;
|
||||
manufacture: string;
|
||||
model: string;
|
||||
owner: string;
|
||||
civilCode: string;
|
||||
block: string;
|
||||
address: string;
|
||||
parental: number;
|
||||
parentId: string;
|
||||
status: number;
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
}
|
||||
|
||||
export interface RecordInfo {
|
||||
deviceId: string;
|
||||
channelId: string;
|
||||
sn: string;
|
||||
name: string;
|
||||
sumNum: number;
|
||||
count: number;
|
||||
lastTime: number;
|
||||
recordList: RecordItem[];
|
||||
}
|
||||
|
||||
export interface RecordItem {
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
}
|
||||
|
||||
export interface UnixRecordItem {
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
}
|
||||
|
||||
export interface QueryGbRecordBody {
|
||||
code: string;
|
||||
start: string;
|
||||
end: string;
|
||||
}
|
||||
|
||||
export interface QueryGbDeviceBody {
|
||||
code: string;
|
||||
time: string;
|
||||
}
|
||||
|
||||
export interface QueryRecordCheckBody {
|
||||
parentId: string;
|
||||
start: string;
|
||||
end: string;
|
||||
}
|
||||
|
||||
export interface QueryReloadCheckBody {
|
||||
code: string;
|
||||
name: string;
|
||||
manufacture: string;
|
||||
model: string;
|
||||
owner: string;
|
||||
civilCode: string;
|
||||
block: string;
|
||||
address: string;
|
||||
parental: number;
|
||||
parentId: string;
|
||||
status: number;
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
dayOffset: number;
|
||||
}
|
||||
|
||||
@@ -42,4 +42,4 @@ export type NdmCameraSaveVO = Partial<Omit<NdmCameraVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmCameraUpdateVO = Partial<Omit<NdmCameraVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmCameraPageVO = Partial<Omit<NdmCameraVO, ReduceForPageQuery>>;
|
||||
export type NdmCameraPageQuery = Partial<Omit<NdmCameraVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -39,4 +39,4 @@ export type NdmDecoderSaveVO = Partial<Omit<NdmDecoderVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmDecoderUpdateVO = Partial<Omit<NdmDecoderVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmDecoderPageVO = Partial<Omit<NdmDecoderVO, ReduceForPageQuery>>;
|
||||
export type NdmDecoderPageQuery = Partial<Omit<NdmDecoderVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -32,4 +32,4 @@ export type NdmKeyboardSaveVO = Partial<Omit<NdmKeyboardVO, ReduceForSaveVO>>;
|
||||
|
||||
export type NdmKeyboardUpdateVO = Partial<Omit<NdmKeyboardVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmKeyboardPageVO = Partial<Omit<NdmKeyboardVO, ReduceForPageQuery>>;
|
||||
export type NdmKeyboardPageQuery = Partial<Omit<NdmKeyboardVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -36,4 +36,4 @@ export type NdmMediaServerSaveVO = Partial<Omit<NdmMediaServerVO, ReduceForSaveV
|
||||
|
||||
export type NdmMediaServerUpdateVO = Partial<Omit<NdmMediaServerVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmMediaServerPageVO = Partial<Omit<NdmMediaServerVO, ReduceForPageQuery>>;
|
||||
export type NdmMediaServerPageQuery = Partial<Omit<NdmMediaServerVO, ReduceForPageQuery>>;
|
||||
|
||||
@@ -36,4 +36,4 @@ export type NdmVideoServerSaveVO = Partial<Omit<NdmVideoServerVO, ReduceForSaveV
|
||||
|
||||
export type NdmVideoServerUpdateVO = Partial<Omit<NdmVideoServerVO, ReduceForUpdateVO>>;
|
||||
|
||||
export type NdmVideoServerPageVO = Partial<Omit<NdmVideoServerVO, ReduceForPageQuery>>;
|
||||
export type NdmVideoServerPageQuery = Partial<Omit<NdmVideoServerVO, ReduceForPageQuery>>;
|
||||
|
||||
13
src/apis/requests/device/ndm-camera.ts
Normal file
13
src/apis/requests/device/ndm-camera.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmCameraPageQuery, NdmCameraResultVO, NdmCameraUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmCameraPage = async (stationCode: string, pageQuery: PageParams<NdmCameraPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmCameraResultVO>>(`${stationCode}/ndm/ndmCamera/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmCamera = async (stationCode: string, updateVO: NdmCameraUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmCameraResultVO>(`${stationCode}/api/ndm/ndmCamera`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
13
src/apis/requests/device/ndm-decoder.ts
Normal file
13
src/apis/requests/device/ndm-decoder.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmDecoderPageQuery, NdmDecoderResultVO, NdmDecoderUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmDecoderPage = async (stationCode: string, pageQuery: PageParams<NdmDecoderPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmDecoderResultVO>>(`${stationCode}/api/ndm/ndmDecoder/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmDecoder = async (stationCode: string, updateVO: NdmDecoderUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmDecoderResultVO>(`${stationCode}/api/ndm/ndmDecoder`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
13
src/apis/requests/device/ndm-keyboard.ts
Normal file
13
src/apis/requests/device/ndm-keyboard.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmKeyboardPageQuery, NdmKeyboardResultVO, NdmKeyboardUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmKeyboardPage = async (stationCode: string, pageQuery: PageParams<NdmKeyboardPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmKeyboardResultVO>>(`${stationCode}/api/ndm/ndmKeyboard/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmKeyboard = async (stationCode: string, updateVO: NdmKeyboardUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmKeyboardResultVO>(`${stationCode}/api/ndm/ndmKeyboard`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
13
src/apis/requests/device/ndm-media-server.ts
Normal file
13
src/apis/requests/device/ndm-media-server.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmMediaServerPageQuery, NdmMediaServerResultVO, NdmMediaServerUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmMediaServerPage = async (stationCode: string, pageQuery: PageParams<NdmMediaServerPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmMediaServerResultVO>>(`${stationCode}/api/ndm/ndmMediaServer/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmMediaServer = async (stationCode: string, updateVO: NdmMediaServerUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmMediaServerResultVO>(`${stationCode}/api/ndm/ndmMediaServer`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
6
src/apis/requests/device/ndm-monitor.ts
Normal file
6
src/apis/requests/device/ndm-monitor.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const resetMonitorSchedule = async (stationCode: string) => {
|
||||
const resp = await ndmClient.get<void>(`${stationCode}/api/ndm/ndmConstant/anyTenant/resetMonitorSchedule`);
|
||||
return resp;
|
||||
};
|
||||
40
src/apis/requests/device/ndm-nvr.ts
Normal file
40
src/apis/requests/device/ndm-nvr.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { ClientChannel, NdmNvrPageQuery, NdmNvrResultVO, NdmNvrUpdateVO, NdmNvrVO, NdmRecordCheck } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmNvrPage = async (stationCode: string, pageQuery: PageParams<NdmNvrPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmNvrResultVO>>(`${stationCode}/api/ndm/ndmNvr/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmNvr = async (stationCode: string, updateVO: NdmNvrUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmNvrResultVO>(`${stationCode}/api/ndm/ndmNvr`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
export const getChannelList = async (stationCode: string, ndmNvr: NdmNvrVO) => {
|
||||
const resp = await ndmClient.post<ClientChannel[]>(`${stationCode}/api/ndm/ndmRecordCheck/getChannelList`, {
|
||||
code: ndmNvr.gbCode,
|
||||
time: '',
|
||||
});
|
||||
return resp;
|
||||
};
|
||||
export const getRecordCheckByParentId = async (stationCode: string, ndmNvr: NdmNvrVO, lastDays: number, gbCodeList: string[] = []) => {
|
||||
const endDateTime = dayjs();
|
||||
const startDateTime = endDateTime.subtract(lastDays, 'day');
|
||||
const resp = await ndmClient.post<NdmRecordCheck[]>(`${stationCode}/api/ndm/ndmRecordCheck/getRecordCheckByParentId`, {
|
||||
start: startDateTime.format('YYYY-MM-DD'),
|
||||
end: endDateTime.format('YYYY-MM-DD'),
|
||||
parentId: ndmNvr.gbCode,
|
||||
gbCodeList,
|
||||
});
|
||||
return resp;
|
||||
};
|
||||
export const reloadRecordCheckByGbId = async (stationCode: string, channel: ClientChannel, dayOffset: number) => {
|
||||
const resp = await ndmClient.post<boolean>(`${stationCode}/api/ndm/ndmRecordCheck/reloadRecordCheckByGbId`, {
|
||||
...channel,
|
||||
dayOffset,
|
||||
});
|
||||
return resp;
|
||||
};
|
||||
22
src/apis/requests/device/ndm-security-box.ts
Normal file
22
src/apis/requests/device/ndm-security-box.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmSecurityBoxPageQuery, NdmSecurityBoxResultVO, NdmSecurityBoxUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmSecurityBoxPage = async (stationCode: string, pageQuery: PageParams<NdmSecurityBoxPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmSecurityBoxResultVO>>(`${stationCode}/api/ndm/ndmSecurityBox/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmSecurityBox = async (stationCode: string, updateVO: NdmSecurityBoxUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmSecurityBoxResultVO>(`${stationCode}/api/ndm/ndmSecurityBox`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
export const turnStatus = async (stationCode: string, ipAddress: string, circuitIndex: number, status: number) => {
|
||||
const resp = await ndmClient.post<boolean>(`${stationCode}/api/ndm/ndmSecurityBox/turnStatus`, {
|
||||
community: 'public',
|
||||
ipAddress,
|
||||
circuit: `${circuitIndex}`,
|
||||
status,
|
||||
});
|
||||
return resp;
|
||||
};
|
||||
13
src/apis/requests/device/ndm-switch.ts
Normal file
13
src/apis/requests/device/ndm-switch.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmSwitchPageQuery, NdmSwitchResultVO, NdmSwitchUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmSwitchPage = async (stationCode: string, pageQuery: PageParams<NdmSwitchPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmSwitchResultVO>>(`${stationCode}/api/ndm/ndmSwitch/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmSwitch = async (stationCode: string, updateVO: NdmSwitchUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmSwitchResultVO>(`${stationCode}/api/ndm/ndmSwitch`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
13
src/apis/requests/device/ndm-video-server.ts
Normal file
13
src/apis/requests/device/ndm-video-server.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmVideoServerPageQuery, NdmVideoServerResultVO, NdmVideoServerUpdateVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmVideoServerPage = async (stationCode: string, pageQuery: PageParams<NdmVideoServerPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmVideoServerResultVO>>(`${stationCode}/api/ndm/ndmVideoServer/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
export const putNdmVideoServer = async (stationCode: string, updateVO: NdmVideoServerUpdateVO) => {
|
||||
const resp = await ndmClient.put<NdmVideoServerResultVO>(`${stationCode}/api/ndm/ndmVideoServer`, updateVO);
|
||||
return resp;
|
||||
};
|
||||
15
src/apis/requests/index.ts
Normal file
15
src/apis/requests/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export * from './device/ndm-camera';
|
||||
export * from './device/ndm-decoder';
|
||||
export * from './device/ndm-keyboard';
|
||||
export * from './device/ndm-media-server';
|
||||
export * from './device/ndm-monitor';
|
||||
export * from './device/ndm-nvr';
|
||||
export * from './device/ndm-security-box';
|
||||
export * from './device/ndm-switch';
|
||||
export * from './device/ndm-video-server';
|
||||
|
||||
export * from './log/device-alarm-log';
|
||||
export * from './log/icmp-log';
|
||||
export * from './log/snmp-log';
|
||||
|
||||
export * from './system';
|
||||
9
src/apis/requests/log/ndm-device-alarm-log.ts
Normal file
9
src/apis/requests/log/ndm-device-alarm-log.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmDeviceAlarmLogPageQuery, NdmDeviceAlarmLogResultVO } from '@/apis/models/device/alarm/ndm-device-alarm-log';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postNdmDeviceAlarmLogPage = async (stationCode: string, pageQuery: PageParams<NdmDeviceAlarmLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmDeviceAlarmLogResultVO>>(`${stationCode}/api/ndm/ndmDeviceAlarmLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
9
src/apis/requests/log/ndm-icmp-log.ts
Normal file
9
src/apis/requests/log/ndm-icmp-log.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { PageParams, PageResult } from '@/apis/models/base/page';
|
||||
import type { NdmIcmpLogPageQuery, NdmIcmpLogResultVO } from '@/apis/models/device';
|
||||
|
||||
import { ndmClient } from '@/apis/client';
|
||||
|
||||
export const postIcmpLogPage = async (stationCode: string, pageQuery: PageParams<NdmIcmpLogPageQuery>) => {
|
||||
const resp = await ndmClient.post<PageResult<NdmIcmpLogResultVO>>(`${stationCode}/api/ndm/ndmIcmpLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
9
src/apis/requests/log/ndm-snmp-log.ts
Normal file
9
src/apis/requests/log/ndm-snmp-log.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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 resp = await ndmClient.post<PageResult<NdmSnmpLogResultVO>>(`${stationCode}/api/ndm/ndmSnmpLog/page`, pageQuery);
|
||||
return resp;
|
||||
};
|
||||
10
src/apis/requests/system/index.ts
Normal file
10
src/apis/requests/system/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Result } from '@/axios';
|
||||
|
||||
import type { DefParameterResultVO, DefParameterUpdateVO } from '../../models/system';
|
||||
|
||||
import { ndmClient } from '../../client';
|
||||
|
||||
export const putDefParameter = async (stationCode: string, updateVO: DefParameterUpdateVO) => {
|
||||
const resp = ndmClient.put<Result<DefParameterResultVO>>(`${stationCode}/api/system/defParameter`, { ...updateVO });
|
||||
return resp;
|
||||
};
|
||||
Reference in New Issue
Block a user