运维管理平台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
928 B

2 months ago
import { ID, IDS, PageQuery, commonExport } from '@/api/base';
import { defHttp } from '@/utils/http/axios';
enum Api {
2 weeks ago
root = '/platform/noticeInfo',
list = '/platform/noticeInfo/list',
2 months ago
export = '/workflow/leave/export',
2 weeks ago
getProjectInfo = '/platform/projectInfo/getNames',
2 months ago
}
export function list(params?: PageQuery) {
return defHttp.get({ url: Api.list, params });
}
export function exportExcel(data: any) {
return commonExport(Api.export, data);
}
export function getInfo(id: ID) {
return defHttp.get({ url: `${Api.root}/${id}` });
}
export function add(data: any) {
return defHttp.post({ url: Api.root, data });
}
export function update(data: any) {
return defHttp.put({ url: Api.root, data });
}
export function removeByIds(ids: IDS) {
return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` });
}
2 weeks ago
export function getProjectInfo() {
return defHttp.get({ url: Api.getProjectInfo });
}