新增预警页面
This commit is contained in:
54
web-vue/packages/biz/api/biz/dataReportUser.ts
Normal file
54
web-vue/packages/biz/api/biz/dataReportUser.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* 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 BizDataReportUser extends BasicModel<BizDataReportUser> {
|
||||
createTime?: string; // 记录时间
|
||||
dataReportId: string; // data_report_id
|
||||
userCode: string; // user_code
|
||||
userName?: string; // user_name
|
||||
ustatus: string; // ustatus
|
||||
routePath: string;
|
||||
name: string;
|
||||
image: string;
|
||||
}
|
||||
|
||||
export const bizDataReportUserList = (params?: BizDataReportUser | any) =>
|
||||
defHttp.get<BizDataReportUser>({ url: adminPath + '/biz/dataReportUser/list', params });
|
||||
|
||||
export const bizDataReportUserListAll = (params?: BizDataReportUser | any) =>
|
||||
defHttp.get<BizDataReportUser[]>({ url: adminPath + '/biz/dataReportUser/listAll', params });
|
||||
|
||||
export const bizDataReportUserListData = (params?: BizDataReportUser | any) =>
|
||||
defHttp.post<Page<BizDataReportUser>>({ url: adminPath + '/biz/dataReportUser/listData', params });
|
||||
|
||||
export const bizDataReportUserForm = (params?: BizDataReportUser | any) =>
|
||||
defHttp.get<BizDataReportUser>({ url: adminPath + '/biz/dataReportUser/form', params });
|
||||
|
||||
export const bizDataReportUserSave = (params?: any, data?: BizDataReportUser | any) =>
|
||||
defHttp.postJson<BizDataReportUser>({ url: adminPath + '/biz/dataReportUser/save', params, data });
|
||||
|
||||
export const bizDataReportUserImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/dataReportUser/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizDataReportUserDelete = (params?: BizDataReportUser | any) =>
|
||||
defHttp.get<BizDataReportUser>({ url: adminPath + '/biz/dataReportUser/delete', params });
|
||||
Reference in New Issue
Block a user