wupengfei
2 天以前 ddddcf83e7deb9d0a674d2bbead300089530d87e
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 添加系统 模板数据参数字典 POST /api/Test/AddSystemTemplateDataParamSetting */
export async function addSystemTemplateDataParamSetting(
  body: API.AddSystemTemplateDataParamSettingInput,
  options?: API.RequestConfig
) {
  return request<any>('/api/Test/AddSystemTemplateDataParamSetting', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 指定签约用户,发起签约,获取签约密钥,拉起签约页面 POST /api/Test/DataprepareCreate */
export async function dataprepareCreate(options?: API.RequestConfig) {
  return request<API.DataprepareCreateOutput>('/api/Test/DataprepareCreate', {
    method: 'POST',
    ...(options || {}),
  });
}
 
/** 文件上传接口,支持pdf、doc、docx类型的合同模板文件 POST /api/Test/FileUpload */
export async function fileUpload(body: {}, file?: File, options?: API.RequestConfig) {
  const formData = new FormData();
 
  if (file) {
    formData.append('file', file);
  }
 
  Object.keys(body).forEach((ele) => {
    const item = (body as any)[ele];
 
    if (item !== undefined && item !== null) {
      formData.append(
        ele,
        typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item
      );
    }
  });
 
  return request<API.FileUploadOutput>('/api/Test/FileUpload', {
    method: 'POST',
    data: formData,
    requestType: 'form',
    ...(options || {}),
  });
}
 
/** 根据印章ID或者印章名称分页查询当前用户的印章列表。印章ID是精确查询,印章名称是模糊查询。 POST /api/Test/SealBatchQuery */
export async function sealBatchQuery(body: API.SealBatchQueryInput, options?: API.RequestConfig) {
  return request<API.SealBatchQueryOutput>('/api/Test/SealBatchQuery', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 添加企业印章,用于后续企业认证并在PDF合同上添加电子签章 POST /api/Test/SealSave */
export async function sealSave(body: API.SealSaveInput, options?: API.RequestConfig) {
  return request<API.SealSaveOutput>('/api/Test/SealSave', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 查询签约结果,获取签约完成的文件 POST /api/Test/SignorderQuery */
export async function signorderQuery(options?: API.RequestConfig) {
  return request<API.SignorderQueryOutput>('/api/Test/SignorderQuery', {
    method: 'POST',
    ...(options || {}),
  });
}
 
/** 根据参数查询合同模板列表,主要返回合同模板摘要信息 POST /api/Test/TemplateBatchQuery */
export async function templateBatchQuery(
  body: API.TemplateBatchQueryInput,
  options?: API.RequestConfig
) {
  return request<API.TemplateBatchQueryOutput>('/api/Test/TemplateBatchQuery', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 创建合同模板,向PDF模板文件中添加填写控件,以便后续通过这些控件来填充内容。 POST /api/Test/TemplateSave */
export async function templateSave(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APItemplateSaveParams,
  options?: API.RequestConfig
) {
  return request<API.TemplateSaveOutput>('/api/Test/TemplateSave', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 此处后端没有提供注释 GET /api/Test/TestEventBusSendPhoneMessge */
export async function testEventBusSendPhoneMessge(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APItestEventBusSendPhoneMessgeParams,
  options?: API.RequestConfig
) {
  return request<any>('/api/Test/TestEventBusSendPhoneMessge', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 此处后端没有提供注释 GET /api/Test/TestRetturnResult */
export async function testRetturnResult(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APItestRetturnResultParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Test/TestRetturnResult', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 此处后端没有提供注释 GET /api/Test/TestSendPhoneMessge */
export async function testSendPhoneMessge(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APItestSendPhoneMessgeParams,
  options?: API.RequestConfig
) {
  return request<any>('/api/Test/TestSendPhoneMessge', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}