签入版本

This commit is contained in:
2026-09-12 19:19:43 +08:00
parent 1fd7423176
commit 15c01c5d92
7 changed files with 632 additions and 1 deletions
+65
View File
@@ -0,0 +1,65 @@
import { http } from '@/utils/http/axios';
/**
* @description: 列表
*/
export function getDataSourceList(params?) {
return http.request({
url: '/data/source/page',
method: 'GET',
params,
});
}
/**
* @description: 根据ID获取详情
*/
export function getDataSourceDetail(id) {
return http.request({
url: '/data/source/detail/' + id,
method: 'get',
});
}
/**
* @description: 添加
*/
export function dataSourceAdd(data: any) {
return http.request({
url: '/data/source/add',
method: 'POST',
data,
});
}
/**
* @description: 更新
*/
export function dataSourceUpdate(data: any) {
return http.request({
url: '/data/source/update',
method: 'PUT',
data,
});
}
/**
* @description: 删除
*/
export function dataSourceDelete(id) {
return http.request({
url: '/data/source/delete/' + id,
method: 'DELETE',
});
}
/**
* @description: 批量删除
*/
export function dataSourceBatchDelete(data: any) {
return http.request({
url: '/data/source/batchDelete',
method: 'DELETE',
data,
});
}