ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { defHttp } from '#/api/request';
 
enum Api {
  Prefix = '/api/system/CommonFields',
}
 
// 获取字段列表
export function getCommonFieldsList(data = {}) {
  return defHttp.get({ url: Api.Prefix, data });
}
// 新建字段
export function createCommonFields(data) {
  return defHttp.post({ url: Api.Prefix, data });
}
// 修改字段
export function updateCommonFields(data) {
  return defHttp.put({ url: `${Api.Prefix}/${data.id}`, data });
}
// 获取字段
export function getCommonFieldsInfo(id) {
  return defHttp.get({ url: `${Api.Prefix}/${id}` });
}
// 删除字段
export function delCommonFields(id) {
  return defHttp.delete({ url: `${Api.Prefix}/${id}` });
}