56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
/**
|
|
* Copyright (c) 2013-Now https://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 MyScreenInfo extends BasicModel<MyScreenInfo> {
|
|
createTime?: string; // 记录时间
|
|
screenId: string; // 唯一主键
|
|
screenName?: string; // 大屏名称
|
|
screenCode?: string; // 大屏编码
|
|
screenTitle?: string; // 大屏标题
|
|
path?: string; // 路由地址
|
|
remark?: string; // 说明描述
|
|
ustatus?: string; // 状态
|
|
updateTime?: string; // 更新时间
|
|
}
|
|
|
|
export const myScreenInfoList = (params?: MyScreenInfo | any) =>
|
|
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/list', params });
|
|
|
|
export const myScreenInfoListAll = (params?: MyScreenInfo | any) =>
|
|
defHttp.get<MyScreenInfo[]>({ url: adminPath + '/biz/myScreenInfo/listAll', params });
|
|
|
|
export const myScreenInfoListData = (params?: MyScreenInfo | any) =>
|
|
defHttp.post<Page<MyScreenInfo>>({ url: adminPath + '/biz/myScreenInfo/listData', params });
|
|
|
|
export const myScreenInfoForm = (params?: MyScreenInfo | any) =>
|
|
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/form', params });
|
|
|
|
export const myScreenInfoSave = (params?: any, data?: MyScreenInfo | any) =>
|
|
defHttp.postJson<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/save', params, data });
|
|
|
|
export const myScreenInfoImportData = (
|
|
params: UploadFileParams,
|
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
|
) =>
|
|
defHttp.uploadFile<UploadApiResult>(
|
|
{
|
|
url: ctxPath + adminPath + '/biz/myScreenInfo/importData',
|
|
onUploadProgress,
|
|
},
|
|
params,
|
|
);
|
|
|
|
export const myScreenInfoDelete = (params?: MyScreenInfo | any) =>
|
|
defHttp.get<MyScreenInfo>({ url: adminPath + '/biz/myScreenInfo/delete', params });
|