修改
This commit is contained in:
58
web-vue/packages/biz/api/biz/tableField.ts
Normal file
58
web-vue/packages/biz/api/biz/tableField.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 BizTableField extends BasicModel<BizTableField> {
|
||||
createTime?: string; // 创建时间
|
||||
fieldId?: string; // 唯一标识
|
||||
tableId: string; // 数据标识
|
||||
dataSource?: string; // 数据来源
|
||||
dataName?: string; // 数据表名称
|
||||
fieldOrder: number; // 字段序号
|
||||
fieldType: string; // 字段类型
|
||||
fieldName: string; // 字段名称
|
||||
fieldLength?: string; // 字段长度
|
||||
fieldRemark?: string; // 字段说明
|
||||
ds?: string; // 分区日期
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizTableFieldList = (params?: BizTableField | any) =>
|
||||
defHttp.get<BizTableField>({ url: adminPath + '/biz/tableField/list', params });
|
||||
|
||||
export const bizTableFieldListData = (params?: BizTableField | any) =>
|
||||
defHttp.post<Page<BizTableField>>({ url: adminPath + '/biz/tableField/listData', params });
|
||||
|
||||
export const bizTableFieldForm = (params?: BizTableField | any) =>
|
||||
defHttp.get<BizTableField>({ url: adminPath + '/biz/tableField/form', params });
|
||||
|
||||
export const bizTableFieldSave = (params?: any, data?: BizTableField | any) =>
|
||||
defHttp.postJson<BizTableField>({ url: adminPath + '/biz/tableField/save', params, data });
|
||||
|
||||
export const bizTableFieldImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/tableField/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizTableFieldDelete = (params?: BizTableField | any) =>
|
||||
defHttp.get<BizTableField>({ url: adminPath + '/biz/tableField/delete', params });
|
||||
Reference in New Issue
Block a user