refactor: reorganize files
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { ndmClient } from '@/apis/client';
|
||||
import type { PageParams, NdmVideoServerPageQuery, PageResult, NdmVideoServerResultVO, NdmVideoServerUpdateVO } from '@/apis/models';
|
||||
import { ndmClient, type NdmVideoServerPageQuery, type NdmVideoServerResultVO, type NdmVideoServerUpdateVO, type PageParams, type PageResult } from '@/apis';
|
||||
|
||||
export const postNdmVideoServerPage = async (stationCode: string, pageQuery: PageParams<NdmVideoServerPageQuery>, signal?: AbortSignal) => {
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
@@ -30,3 +29,12 @@ export const putNdmVideoServer = async (stationCode: string, updateVO: NdmVideoS
|
||||
}
|
||||
return await getNdmVideoServerDetail(stationCode, ndmVideoServer.id ?? '');
|
||||
};
|
||||
|
||||
export const probeNdmVideoServerByIds = async (stationCode: string, ids: string[]) => {
|
||||
const prefix = stationCode ? `/${stationCode}` : '';
|
||||
const resp = await ndmClient.post<void>(`${prefix}/api/ndm/ndmVideoServer/probeByIds`, ids);
|
||||
const [err] = resp;
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user