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
27
28
29
30
31
32
33
34
import { defHttp } from '#/api/request';
 
enum Api {
  Prefix = '/api/system/Signature',
}
 
// 获取签章列表(带分页)
export function getSignatureList(data) {
  return defHttp.get({ url: Api.Prefix, data });
}
// 获取签章下拉框列表
export function getSignatureSelector() {
  return defHttp.get({ url: `${Api.Prefix}/Selector` });
}
// 新建签章
export function create(data) {
  return defHttp.post({ url: Api.Prefix, data });
}
// 修改签章
export function update(data) {
  return defHttp.put({ url: `${Api.Prefix}/${data.id}`, data });
}
// 获取签章
export function getInfo(id) {
  return defHttp.get({ url: `${Api.Prefix}/${id}` });
}
// 删除签章
export function delSignature(id) {
  return defHttp.delete({ url: `${Api.Prefix}/${id}` });
}
// 通过id获取签章下拉框列表
export function getSignatureListByIds(ids) {
  return defHttp.post({ url: `${Api.Prefix}/ListByIds`, data: { ids } });
}