田源
2024-08-23 9e20b9fb77a41cb5b4a6eb6213fc51cab1f0bb91
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import request from '@/router/axios';
 
// 列表查询
export function gridLink() {
  return request({
    url: "/api/linkTypeController/gridLink",
    method: "get",
  });
}
 
// 查询所有的属性,参数name(链接类型模板名称)
export function getAllAttributeByLink(params) {
  return request({
    url: "/api/linkTypeController/getAllAttributeByLink",
    method: "get",
    params
  });
}
// 通过属性池返回的 attributes 获取完整的信息
export function getByAttributeNames(params) {
  return request({
    url: "/api/attributeController/getByAttributeNames",
    method: "get",
    params
  });
}
 
// 一致性检查
export function checkLinkType(params) {
  return request({
    url: "/api/linkTypeController/checkLinkType",
    method: "get",
    params
  });
}
 
// 修复
export function repairTable(params) {
  return request({
    url: "/api/linkTypeController/repairTable",
    method: "post",
    data:params
  });
}
 
// 创建视图
export function createView() {
  return request({
    url: "/api/linkTypeController/createView",
    method: "post",
  });
}
 
// 查业务类型接口
export function getBizTypes(params) {
  return request({
    url: "/api/btmTypeController/getBizTypes",
    method: "get",
    params
  });
}
 
// 导出
export function expData (params) {
  return request({
    url: '/api/linkTypeController/expData',
    method: 'get',
    headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'},
    responseType: 'blob',
    params
  })
}
 
// 保存 修改 接口
export function addAndEditLink(addFlag,params) {
  return request({
    url: `/api/linkTypeController/addAndEditLink?addFlag=${addFlag}`,
    method: "post",
    data:params
  });
}
 
// 删除接口
export function deleteLink(params) {
  return request({
    url: '/api/linkTypeController/deleteLink',
    method: "delete",
    data:params
  });
}