|
|
@@ -41,20 +41,9 @@ export interface Response<Records> {
|
|
|
totalRow: number;
|
|
|
}
|
|
|
|
|
|
-export function getAlgoInfo(page: number, pageSize: number) {
|
|
|
- return http.request({
|
|
|
- url: '/cameraAlgo/getList?pageNumber=' + page + '&pageSize=' + pageSize,
|
|
|
- method: 'get',
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-export function searchAlgoInfo(page: number, keyWord: string) {
|
|
|
- return http.request({
|
|
|
- url: '/cameraAlgo/getAlgo?algoInfo=' + keyWord + '&pageNumber=' + page + '&pageSize=12',
|
|
|
- method: 'get',
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
+/**
|
|
|
+ * v4: 分页查询算法列表
|
|
|
+ */
|
|
|
export function queryAlgoInfoPage(data: algoQueryModule) {
|
|
|
return http.request<Response<Records>>({
|
|
|
url: '/admin/algo/queryAlgoInfoPage',
|
|
|
@@ -63,7 +52,9 @@ export function queryAlgoInfoPage(data: algoQueryModule) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-//拉取所有算法列表
|
|
|
+/**
|
|
|
+ * v4: 查询完整算法列表
|
|
|
+ */
|
|
|
export function queryAlgoInfoAll() {
|
|
|
return http.request<Records[]>({
|
|
|
url: '/admin/algo/queryAlgoInfo',
|
|
|
@@ -71,6 +62,7 @@ export function queryAlgoInfoAll() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+// 旧接口
|
|
|
export function algoInfoModify(algoId: number, pushLinkPrompt: string, pushStatement: string) {
|
|
|
return http.request({
|
|
|
url: '/cameraAlgo/saveAlgoState',
|
|
|
@@ -83,6 +75,9 @@ export function algoInfoModify(algoId: number, pushLinkPrompt: string, pushState
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * v4: 编辑算法
|
|
|
+ */
|
|
|
export function updateAlgoInfo(data: algoUpdateModule) {
|
|
|
return http.request({
|
|
|
url: '/admin/algo/updateAlgoInfoById',
|