58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
/**
|
|
* 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 BizWebsiteStorage extends BasicModel<BizWebsiteStorage> {
|
|
createTime?: string; // 记录日期
|
|
websiteId?: string; // 网站标识
|
|
websiteUrl: string; // 网站地址
|
|
websiteName: string; // 网站名称
|
|
webAccount?: string; // 登录账号
|
|
webPassword?: string; // 登录密码
|
|
companyId: string; // 所属公司
|
|
employeeId: string; // 使用人员
|
|
loginUser?: string; // 创建人员
|
|
storageStatus: string; // 网站状态
|
|
ftenantId?: string; // 租户id
|
|
fflowId?: string; // 流程id
|
|
fflowTaskId?: string; // 流程任务主键
|
|
fflowState?: number; // 流程任务状态
|
|
}
|
|
|
|
export const bizWebsiteStorageList = (params?: BizWebsiteStorage | any) =>
|
|
defHttp.get<BizWebsiteStorage>({ url: adminPath + '/biz/websiteStorage/list', params });
|
|
|
|
export const bizWebsiteStorageListData = (params?: BizWebsiteStorage | any) =>
|
|
defHttp.post<Page<BizWebsiteStorage>>({ url: adminPath + '/biz/websiteStorage/listData', params });
|
|
|
|
export const bizWebsiteStorageForm = (params?: BizWebsiteStorage | any) =>
|
|
defHttp.get<BizWebsiteStorage>({ url: adminPath + '/biz/websiteStorage/form', params });
|
|
|
|
export const bizWebsiteStorageSave = (params?: any, data?: BizWebsiteStorage | any) =>
|
|
defHttp.postJson<BizWebsiteStorage>({ url: adminPath + '/biz/websiteStorage/save', params, data });
|
|
|
|
export const bizWebsiteStorageImportData = (
|
|
params: UploadFileParams,
|
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
|
) =>
|
|
defHttp.uploadFile<UploadApiResult>(
|
|
{
|
|
url: ctxPath + adminPath + '/biz/websiteStorage/importData',
|
|
onUploadProgress,
|
|
},
|
|
params,
|
|
);
|
|
|
|
export const bizWebsiteStorageDelete = (params?: BizWebsiteStorage | any) =>
|
|
defHttp.get<BizWebsiteStorage>({ url: adminPath + '/biz/websiteStorage/delete', params });
|