41 lines
1.1 KiB
TypeScript
41 lines
1.1 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 } from '@jeesite/core/api/model/baseModel';
|
|
const { adminPath } = useGlobSetting();
|
|
|
|
export interface MyWorkInfo extends BasicModel<MyWorkInfo> {
|
|
weatherText?: string;
|
|
notifyNums?: number;
|
|
notifyAllNums?: number;
|
|
projectNums?: number;
|
|
projectAllNums?: number;
|
|
calendarNums?: number;
|
|
calendarAllNums?: number;
|
|
teamNums?: number;
|
|
}
|
|
|
|
|
|
export interface DockerInfo extends BasicModel<DockerInfo> {
|
|
name?: string;
|
|
id: string;
|
|
cid: string;
|
|
createTime?: string;
|
|
imageName?: string;
|
|
mapPorts?: string;
|
|
status?: string;
|
|
state?: string;
|
|
cpuUsage?: string;
|
|
memUsage?: string;
|
|
}
|
|
|
|
export const bizMyWorkInfoList = () =>
|
|
defHttp.get<MyWorkInfo>({ url: adminPath + '/biz/myWork/list'});
|
|
|
|
export const bizDockerInfoList = (params?: DockerInfo | any) =>
|
|
defHttp.get<DockerInfo[]>({ url: adminPath + '/biz/myWork/dockerList' , params });
|