修改
This commit is contained in:
69
web-vue/packages/biz/api/biz/listItem.ts
Normal file
69
web-vue/packages/biz/api/biz/listItem.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* 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 BizListItem extends BasicModel<BizListItem> {
|
||||
createTime?: string; // 创建时间
|
||||
avatar?: string; // 头像图标
|
||||
title: string; // 通知标题
|
||||
titleDelete?: string; // 是否删除
|
||||
datetime?: string; // 发送时间
|
||||
type: string; // 类型标识
|
||||
readFlag?: string; // 是否已读
|
||||
description: string; // 描述信息
|
||||
clickClose?: string; // 是否关闭
|
||||
extra?: string; // 待办状态
|
||||
color?: string; // 颜色值
|
||||
updateTime: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export interface TabItem {
|
||||
key: string;
|
||||
name: string;
|
||||
count: number;
|
||||
list: BizListItem[];
|
||||
}
|
||||
|
||||
export const tabListDataAll = () =>
|
||||
defHttp.get<TabItem[]>({ url: adminPath + '/biz/listItem/getTabListData'});
|
||||
|
||||
export const bizListItemList = (params?: BizListItem | any) =>
|
||||
defHttp.get<BizListItem>({ url: adminPath + '/biz/listItem/list', params });
|
||||
|
||||
export const bizListItemListData = (params?: BizListItem | any) =>
|
||||
defHttp.post<Page<BizListItem>>({ url: adminPath + '/biz/listItem/listData', params });
|
||||
|
||||
export const bizListItemForm = (params?: BizListItem | any) =>
|
||||
defHttp.get<BizListItem>({ url: adminPath + '/biz/listItem/form', params });
|
||||
|
||||
export const bizListItemSave = (params?: any, data?: BizListItem | any) =>
|
||||
defHttp.postJson<BizListItem>({ url: adminPath + '/biz/listItem/save', params, data });
|
||||
|
||||
export const bizListItemImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/listItem/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizListItemDelete = (params?: BizListItem | any) =>
|
||||
defHttp.get<BizListItem>({ url: adminPath + '/biz/listItem/delete', params });
|
||||
Reference in New Issue
Block a user