修改
This commit is contained in:
58
web-vue/packages/biz/api/biz/dbConfig.ts
Normal file
58
web-vue/packages/biz/api/biz/dbConfig.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizDbConfig extends BasicModel<BizDbConfig> {
|
||||
createTime?: string; // 创建时间
|
||||
dbType: string; // 数据库类型
|
||||
dbName: string; // 数据库名称
|
||||
dbIp: string; // 数据库IP
|
||||
dbPort: number; // 数据库端口
|
||||
dbUsername: string; // 数据库账号
|
||||
dbPassword: string; // 数据库密码
|
||||
description?: string; // 数据库描述
|
||||
isEnabled: number; // 是否启用
|
||||
dbSchemaName?: string; // schema名称
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizDbConfigList = (params?: BizDbConfig | any) =>
|
||||
defHttp.get<BizDbConfig>({ url: adminPath + '/biz/dbConfig/list', params });
|
||||
|
||||
export const bizDbConfigListData = (params?: BizDbConfig | any) =>
|
||||
defHttp.post<Page<BizDbConfig>>({ url: adminPath + '/biz/dbConfig/listData', params });
|
||||
|
||||
export const bizDbConfigForm = (params?: BizDbConfig | any) =>
|
||||
defHttp.get<BizDbConfig>({ url: adminPath + '/biz/dbConfig/form', params });
|
||||
|
||||
export const bizDbConfigSave = (params?: any, data?: BizDbConfig | any) =>
|
||||
defHttp.postJson<BizDbConfig>({ url: adminPath + '/biz/dbConfig/save', params, data });
|
||||
|
||||
export const bizDbConfigImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/dbConfig/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizDbConfigDelete = (params?: BizDbConfig | any) =>
|
||||
defHttp.get<BizDbConfig>({ url: adminPath + '/biz/dbConfig/delete', params });
|
||||
58
web-vue/packages/biz/api/biz/tableInfo.ts
Normal file
58
web-vue/packages/biz/api/biz/tableInfo.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface BizTableInfo extends BasicModel<BizTableInfo> {
|
||||
createTime?: string; // 创建时间
|
||||
tableId?: string; // 唯一标识
|
||||
dataName: string; // 数据表名称
|
||||
tableComment: string; // 数据表描述
|
||||
tableSize?: number; // 数据表大小
|
||||
dataSource?: string; // 数据来源
|
||||
creator?: string; // 创建人员
|
||||
dataRows?: number; // 记录条数
|
||||
updateTime?: string; // 更新时间
|
||||
dbId?: string; // 数据标识
|
||||
ds?: string; // 分区日期
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizTableInfoList = (params?: BizTableInfo | any) =>
|
||||
defHttp.get<BizTableInfo>({ url: adminPath + '/biz/tableInfo/list', params });
|
||||
|
||||
export const bizTableInfoListData = (params?: BizTableInfo | any) =>
|
||||
defHttp.post<Page<BizTableInfo>>({ url: adminPath + '/biz/tableInfo/listData', params });
|
||||
|
||||
export const bizTableInfoForm = (params?: BizTableInfo | any) =>
|
||||
defHttp.get<BizTableInfo>({ url: adminPath + '/biz/tableInfo/form', params });
|
||||
|
||||
export const bizTableInfoSave = (params?: any, data?: BizTableInfo | any) =>
|
||||
defHttp.postJson<BizTableInfo>({ url: adminPath + '/biz/tableInfo/save', params, data });
|
||||
|
||||
export const bizTableInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/tableInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizTableInfoDelete = (params?: BizTableInfo | any) =>
|
||||
defHttp.get<BizTableInfo>({ url: adminPath + '/biz/tableInfo/delete', params });
|
||||
Reference in New Issue
Block a user