@fxri/swagger2api 1.0.14 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/kjt.js DELETED
@@ -1,664 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- import axios from "axios";
13
- export var ContentType;
14
- (function (ContentType) {
15
- ContentType["Json"] = "application/json";
16
- ContentType["JsonApi"] = "application/vnd.api+json";
17
- ContentType["FormData"] = "multipart/form-data";
18
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
19
- ContentType["Text"] = "text/plain";
20
- })(ContentType || (ContentType = {}));
21
- export class HttpClient {
22
- instance;
23
- securityData = null;
24
- securityWorker;
25
- secure;
26
- format;
27
- constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
28
- this.instance = axios.create({
29
- ...axiosConfig,
30
- baseURL: axiosConfig.baseURL || "https://kjt.yunhesoft.top/api/admin",
31
- });
32
- this.secure = secure;
33
- this.format = format;
34
- this.securityWorker = securityWorker;
35
- }
36
- setSecurityData = (data) => {
37
- this.securityData = data;
38
- };
39
- mergeRequestParams(params1, params2) {
40
- const method = params1.method || (params2 && params2.method);
41
- return {
42
- ...this.instance.defaults,
43
- ...params1,
44
- ...(params2 || {}),
45
- headers: {
46
- ...((method &&
47
- this.instance.defaults.headers[method.toLowerCase()]) ||
48
- {}),
49
- ...(params1.headers || {}),
50
- ...((params2 && params2.headers) || {}),
51
- },
52
- };
53
- }
54
- stringifyFormItem(formItem) {
55
- if (typeof formItem === "object" && formItem !== null) {
56
- return JSON.stringify(formItem);
57
- }
58
- else {
59
- return `${formItem}`;
60
- }
61
- }
62
- createFormData(input) {
63
- if (input instanceof FormData) {
64
- return input;
65
- }
66
- return Object.keys(input || {}).reduce((formData, key) => {
67
- const property = input[key];
68
- const propertyContent = property instanceof Array ? property : [property];
69
- for (const formItem of propertyContent) {
70
- const isFileType = formItem instanceof Blob || formItem instanceof File;
71
- formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
72
- }
73
- return formData;
74
- }, new FormData());
75
- }
76
- request = async ({ secure, path, type, query, format, body, ...params }) => {
77
- const secureParams = ((typeof secure === "boolean" ? secure : this.secure) &&
78
- this.securityWorker &&
79
- (await this.securityWorker(this.securityData))) ||
80
- {};
81
- const requestParams = this.mergeRequestParams(params, secureParams);
82
- const responseFormat = format || this.format || undefined;
83
- if (type === ContentType.FormData &&
84
- body &&
85
- body !== null &&
86
- typeof body === "object") {
87
- body = this.createFormData(body);
88
- }
89
- if (type === ContentType.Text &&
90
- body &&
91
- body !== null &&
92
- typeof body !== "string") {
93
- body = JSON.stringify(body);
94
- }
95
- return this.instance.request({
96
- ...requestParams,
97
- headers: {
98
- ...(requestParams.headers || {}),
99
- ...(type ? { "Content-Type": type } : {}),
100
- },
101
- params: query,
102
- responseType: responseFormat,
103
- data: body,
104
- url: path,
105
- });
106
- };
107
- }
108
- /**
109
- * @title 凯聚通支付平台
110
- * @version v1.0
111
- * @baseUrl https://kjt.yunhesoft.top/api/admin
112
- * @contact 云鹤软件 <admin@yunhesoft.top>
113
- *
114
- * 凯聚通支付平台后端API文档
115
- */
116
- export class Api extends HttpClient {
117
- transaction = {
118
- /**
119
- * @description 发起批付
120
- *
121
- * @tags 商户交易模块
122
- * @name TransactionBatchPayLaunchPost
123
- * @request POST:/transaction/batch-pay/launch
124
- * @response `200` `ResponseMsgBatchPayLaunchRespVo` OK
125
- */
126
- transactionBatchPayLaunchPost: (data, params = {}) => this.request({
127
- path: `/transaction/batch-pay/launch`,
128
- method: "POST",
129
- body: data,
130
- type: ContentType.Json,
131
- ...params,
132
- }),
133
- /**
134
- * @description 获取批付列表
135
- *
136
- * @tags 商户交易模块
137
- * @name TransactionBatchPayListGet
138
- * @request GET:/transaction/batch-pay/list
139
- * @response `200` `ResponseMsgObject` OK
140
- */
141
- transactionBatchPayListGet: (query, params = {}) => this.request({
142
- path: `/transaction/batch-pay/list`,
143
- method: "GET",
144
- query: query,
145
- ...params,
146
- }),
147
- /**
148
- * @description 获取批付详情
149
- *
150
- * @tags 商户交易模块
151
- * @name TransactionBatchPayGetGet
152
- * @request GET:/transaction/batch-pay/get
153
- * @response `200` `ResponseMsgObject` OK
154
- */
155
- transactionBatchPayGetGet: (query, params = {}) => this.request({
156
- path: `/transaction/batch-pay/get`,
157
- method: "GET",
158
- query: query,
159
- ...params,
160
- }),
161
- };
162
- merchant = {
163
- /**
164
- * No description
165
- *
166
- * @tags 商户模块
167
- * @name MerchantCreatePost
168
- * @summary 创建商户
169
- * @request POST:/merchant/create
170
- * @response `200` `ResponseMsgMerchantVo` OK
171
- */
172
- merchantCreatePost: (data, params = {}) => this.request({
173
- path: `/merchant/create`,
174
- method: "POST",
175
- body: data,
176
- type: ContentType.Json,
177
- ...params,
178
- }),
179
- /**
180
- * No description
181
- *
182
- * @tags 商户模块
183
- * @name MerchantBalanceUpdatePost
184
- * @summary 修改商户余额
185
- * @request POST:/merchant/balance/update
186
- * @response `200` `ResponseMsgString` OK
187
- */
188
- merchantBalanceUpdatePost: (data, params = {}) => this.request({
189
- path: `/merchant/balance/update`,
190
- method: "POST",
191
- body: data,
192
- type: ContentType.Json,
193
- ...params,
194
- }),
195
- /**
196
- * No description
197
- *
198
- * @tags 商户管理员模块
199
- * @name MerchantAdminUpdatePost
200
- * @summary 修改商户管理员信息
201
- * @request POST:/merchant/admin/update
202
- * @response `200` `ResponseMsgObject` OK
203
- */
204
- merchantAdminUpdatePost: (query, params = {}) => this.request({
205
- path: `/merchant/admin/update`,
206
- method: "POST",
207
- query: query,
208
- ...params,
209
- }),
210
- /**
211
- * No description
212
- *
213
- * @tags 商户管理员模块
214
- * @name MerchantAdminUpdatePhonePost
215
- * @summary 修改商户管理员手机号
216
- * @request POST:/merchant/admin/update/phone
217
- * @response `200` `ResponseMsgString` OK
218
- */
219
- merchantAdminUpdatePhonePost: (data, params = {}) => this.request({
220
- path: `/merchant/admin/update/phone`,
221
- method: "POST",
222
- body: data,
223
- type: ContentType.Json,
224
- ...params,
225
- }),
226
- /**
227
- * @description 登出当前登录的商户管理员
228
- *
229
- * @tags 商户管理员模块
230
- * @name MerchantAdminLogoutPost
231
- * @summary 登出
232
- * @request POST:/merchant/admin/logout
233
- * @response `200` `ResponseMsgString` OK
234
- */
235
- merchantAdminLogoutPost: (params = {}) => this.request({
236
- path: `/merchant/admin/logout`,
237
- method: "POST",
238
- ...params,
239
- }),
240
- /**
241
- * No description
242
- *
243
- * @tags 商户管理员模块
244
- * @name MerchantAdminLoginPhonePost
245
- * @summary 登录
246
- * @request POST:/merchant/admin/login/phone
247
- * @response `200` `ResponseMsgMerchantLoginRespVo` OK
248
- */
249
- merchantAdminLoginPhonePost: (data, params = {}) => this.request({
250
- path: `/merchant/admin/login/phone`,
251
- method: "POST",
252
- body: data,
253
- type: ContentType.Json,
254
- ...params,
255
- }),
256
- /**
257
- * No description
258
- *
259
- * @tags 商户管理员模块
260
- * @name MerchantAdminCreatePost
261
- * @summary 创建商户管理员
262
- * @request POST:/merchant/admin/create
263
- * @response `200` `ResponseMsgMerchantAdminVo` OK
264
- */
265
- merchantAdminCreatePost: (data, params = {}) => this.request({
266
- path: `/merchant/admin/create`,
267
- method: "POST",
268
- body: data,
269
- type: ContentType.Json,
270
- ...params,
271
- }),
272
- /**
273
- * No description
274
- *
275
- * @tags 商户模块
276
- * @name MerchantListGet
277
- * @summary 获取商户列表
278
- * @request GET:/merchant/list
279
- * @response `200` `ResponseMsgPageDataMerchantVo` OK
280
- */
281
- merchantListGet: (query, params = {}) => this.request({
282
- path: `/merchant/list`,
283
- method: "GET",
284
- query: query,
285
- ...params,
286
- }),
287
- /**
288
- * No description
289
- *
290
- * @tags 商户模块
291
- * @name MerchantGetGet
292
- * @summary 获取商户信息 (指定获取需要权限)
293
- * @request GET:/merchant/get
294
- * @response `200` `ResponseMsgMerchantVo` OK
295
- */
296
- merchantGetGet: (query, params = {}) => this.request({
297
- path: `/merchant/get`,
298
- method: "GET",
299
- query: query,
300
- ...params,
301
- }),
302
- /**
303
- * No description
304
- *
305
- * @tags 商户模块
306
- * @name MerchantBalanceLogGetGet
307
- * @summary 获取商户余额变动记录
308
- * @request GET:/merchant/balance/log/get
309
- * @response `200` `ResponseMsgPageDataMerchantBalanceLogRespVo` OK
310
- */
311
- merchantBalanceLogGetGet: (query, params = {}) => this.request({
312
- path: `/merchant/balance/log/get`,
313
- method: "GET",
314
- query: query,
315
- ...params,
316
- }),
317
- /**
318
- * No description
319
- *
320
- * @tags 商户管理员模块
321
- * @name MerchantAdminListGet
322
- * @summary 获取商户管理员列表
323
- * @request GET:/merchant/admin/list
324
- * @response `200` `ResponseMsgPageDataMerchantAdminVo` OK
325
- */
326
- merchantAdminListGet: (query, params = {}) => this.request({
327
- path: `/merchant/admin/list`,
328
- method: "GET",
329
- query: query,
330
- ...params,
331
- }),
332
- /**
333
- * No description
334
- *
335
- * @tags 商户管理员模块
336
- * @name MerchantAdminGetGet
337
- * @summary 获取商户管理员信息
338
- * @request GET:/merchant/admin/get
339
- * @response `200` `ResponseMsgMerchantAdminVo` OK
340
- */
341
- merchantAdminGetGet: (query, params = {}) => this.request({
342
- path: `/merchant/admin/get`,
343
- method: "GET",
344
- query: query,
345
- ...params,
346
- }),
347
- };
348
- joinpay = {
349
- /**
350
- * @description 平台与分账方之间转账
351
- *
352
- * @tags 汇聚支付-交易模块
353
- * @name JoinpayTransactionTransferLaunchPost
354
- * @summary 发起转账
355
- * @request POST:/joinpay/transaction/transfer/launch
356
- * @response `200` `ResponseMsgJpTransferRespVo` OK
357
- */
358
- joinpayTransactionTransferLaunchPost: (data, params = {}) => this.request({
359
- path: `/joinpay/transaction/transfer/launch`,
360
- method: "POST",
361
- body: data,
362
- type: ContentType.Json,
363
- ...params,
364
- }),
365
- /**
366
- * @description 平台转账至银行卡
367
- *
368
- * @tags 汇聚支付-交易模块
369
- * @name JoinpayTransactionBatchPayLaunchPost
370
- * @summary 发起批量代付
371
- * @request POST:/joinpay/transaction/batch-pay/launch
372
- * @response `200` `ResponseMsgJpBatchPayRespVo` OK
373
- */
374
- joinpayTransactionBatchPayLaunchPost: (data, params = {}) => this.request({
375
- path: `/joinpay/transaction/batch-pay/launch`,
376
- method: "POST",
377
- body: data,
378
- type: ContentType.Json,
379
- ...params,
380
- }),
381
- /**
382
- * No description
383
- *
384
- * @tags 汇聚支付-交易模块
385
- * @name JoinpayTransactionTransferListGet
386
- * @summary 获取交易明细列表
387
- * @request GET:/joinpay/transaction/transfer/list
388
- * @response `200` `ResponseMsgPageDataJpTransferRespVo` OK
389
- */
390
- joinpayTransactionTransferListGet: (query, params = {}) => this.request({
391
- path: `/joinpay/transaction/transfer/list`,
392
- method: "GET",
393
- query: query,
394
- ...params,
395
- }),
396
- /**
397
- * No description
398
- *
399
- * @tags 汇聚支付-交易模块
400
- * @name JoinpayTransactionTransferGetGet
401
- * @summary 通过交易明细Id,获取交易明细详情
402
- * @request GET:/joinpay/transaction/transfer/get
403
- * @response `200` `ResponseMsgJpTransferRespVo` OK
404
- */
405
- joinpayTransactionTransferGetGet: (query, params = {}) => this.request({
406
- path: `/joinpay/transaction/transfer/get`,
407
- method: "GET",
408
- query: query,
409
- ...params,
410
- }),
411
- /**
412
- * No description
413
- *
414
- * @tags 汇聚支付-交易模块
415
- * @name JoinpayTransactionBatchPayListGet
416
- * @summary 获取批量代付列表
417
- * @request GET:/joinpay/transaction/batch-pay/list
418
- * @response `200` `ResponseMsgPageDataJpBatchPayRespVo` OK
419
- */
420
- joinpayTransactionBatchPayListGet: (query, params = {}) => this.request({
421
- path: `/joinpay/transaction/batch-pay/list`,
422
- method: "GET",
423
- query: query,
424
- ...params,
425
- }),
426
- /**
427
- * No description
428
- *
429
- * @tags 汇聚支付-交易模块
430
- * @name JoinpayTransactionBatchPayGetGet
431
- * @summary 获取批量代付详情
432
- * @request GET:/joinpay/transaction/batch-pay/get
433
- * @response `200` `ResponseMsgJpBatchPayRespVo` OK
434
- */
435
- joinpayTransactionBatchPayGetGet: (query, params = {}) => this.request({
436
- path: `/joinpay/transaction/batch-pay/get`,
437
- method: "GET",
438
- query: query,
439
- ...params,
440
- }),
441
- /**
442
- * No description
443
- *
444
- * @tags 汇聚支付-商户模块
445
- * @name JoinpayMerchantListGet
446
- * @summary 获取商户分页
447
- * @request GET:/joinpay/merchant/list
448
- * @response `200` `ResponseMsgPageDataJpMerchantRespVo` OK
449
- */
450
- joinpayMerchantListGet: (query, params = {}) => this.request({
451
- path: `/joinpay/merchant/list`,
452
- method: "GET",
453
- query: query,
454
- ...params,
455
- }),
456
- };
457
- external = {
458
- /**
459
- * No description
460
- *
461
- * @tags 凯聚通API模块
462
- * @name ExternalSignPost
463
- * @request POST:/external/sign
464
- * @response `200` `ResponseMsgObject` OK
465
- */
466
- externalSignPost: (data, params = {}) => this.request({
467
- path: `/external/sign`,
468
- method: "POST",
469
- body: data,
470
- type: ContentType.Json,
471
- ...params,
472
- }),
473
- /**
474
- * No description
475
- *
476
- * @tags 凯聚通API模块
477
- * @name ExternalInvokePost
478
- * @summary 统一入口
479
- * @request POST:/external/invoke
480
- * @response `200` `ResponseMsgObject` OK
481
- */
482
- externalInvokePost: (data, params = {}) => this.request({
483
- path: `/external/invoke`,
484
- method: "POST",
485
- body: data,
486
- type: ContentType.Json,
487
- ...params,
488
- }),
489
- };
490
- captcha = {
491
- /**
492
- * @description 5分钟内有效
493
- *
494
- * @tags 验证码模块
495
- * @name CaptchaSmsPost
496
- * @summary 发送短信验证码
497
- * @request POST:/captcha/sms
498
- * @response `200` `ResponseMsgCaptchaSmsSendRespVo` OK
499
- */
500
- captchaSmsPost: (data, params = {}) => this.request({
501
- path: `/captcha/sms`,
502
- method: "POST",
503
- body: data,
504
- type: ContentType.Json,
505
- ...params,
506
- }),
507
- /**
508
- * @description 5分钟内有效
509
- *
510
- * @tags 验证码模块
511
- * @name CaptchaImageGenerateGet
512
- * @summary 生成图像验证码
513
- * @request GET:/captcha/image/generate
514
- * @response `200` `ResponseMsgCaptchaImageVo` OK
515
- */
516
- captchaImageGenerateGet: (params = {}) => this.request({
517
- path: `/captcha/image/generate`,
518
- method: "GET",
519
- ...params,
520
- }),
521
- };
522
- admin = {
523
- /**
524
- * No description
525
- *
526
- * @tags 管理员模块
527
- * @name AdminUpdatePost
528
- * @summary 更新管理员信息
529
- * @request POST:/admin/update
530
- * @response `200` `ResponseMsgObject` OK
531
- */
532
- adminUpdatePost: (data, params = {}) => this.request({
533
- path: `/admin/update`,
534
- method: "POST",
535
- body: data,
536
- type: ContentType.Json,
537
- ...params,
538
- }),
539
- /**
540
- * No description
541
- *
542
- * @tags 管理员模块
543
- * @name AdminUpdatePhonePost
544
- * @summary 修改手机号码
545
- * @request POST:/admin/update/phone
546
- * @response `200` `ResponseMsgString` OK
547
- */
548
- adminUpdatePhonePost: (data, params = {}) => this.request({
549
- path: `/admin/update/phone`,
550
- method: "POST",
551
- body: data,
552
- type: ContentType.Json,
553
- ...params,
554
- }),
555
- /**
556
- * @description 登出当前登录的管理员
557
- *
558
- * @tags 管理员模块
559
- * @name AdminLogoutPost
560
- * @summary 登出
561
- * @request POST:/admin/logout
562
- * @response `200` `ResponseMsgString` OK
563
- */
564
- adminLogoutPost: (params = {}) => this.request({
565
- path: `/admin/logout`,
566
- method: "POST",
567
- ...params,
568
- }),
569
- /**
570
- * No description
571
- *
572
- * @tags 管理员模块
573
- * @name AdminLoginPhonePost
574
- * @summary 通过手机验证登录
575
- * @request POST:/admin/login/phone
576
- * @response `200` `ResponseMsgAdminLoginRespVo` OK
577
- */
578
- adminLoginPhonePost: (data, params = {}) => this.request({
579
- path: `/admin/login/phone`,
580
- method: "POST",
581
- body: data,
582
- type: ContentType.Json,
583
- ...params,
584
- }),
585
- /**
586
- * No description
587
- *
588
- * @tags 管理员模块
589
- * @name AdminDeletePost
590
- * @summary 删除管理员(软删除)
591
- * @request POST:/admin/delete
592
- * @response `200` `ResponseMsgObject` OK
593
- */
594
- adminDeletePost: (query, params = {}) => this.request({
595
- path: `/admin/delete`,
596
- method: "POST",
597
- query: query,
598
- ...params,
599
- }),
600
- /**
601
- * No description
602
- *
603
- * @tags 管理员模块
604
- * @name AdminCreatePost
605
- * @summary 创建管理员
606
- * @request POST:/admin/create
607
- * @response `200` `ResponseMsgAdminVo` OK
608
- */
609
- adminCreatePost: (data, params = {}) => this.request({
610
- path: `/admin/create`,
611
- method: "POST",
612
- body: data,
613
- type: ContentType.Json,
614
- ...params,
615
- }),
616
- /**
617
- * No description
618
- *
619
- * @tags 管理员模块
620
- * @name AdminListGet
621
- * @summary 获取管理员列表
622
- * @request GET:/admin/list
623
- * @response `200` `ResponseMsgPageDataAdminVo` OK
624
- */
625
- adminListGet: (query, params = {}) => this.request({
626
- path: `/admin/list`,
627
- method: "GET",
628
- query: query,
629
- ...params,
630
- }),
631
- /**
632
- * No description
633
- *
634
- * @tags 管理员模块
635
- * @name AdminGetGet
636
- * @summary 获取指定管理员信息
637
- * @request GET:/admin/get
638
- * @response `200` `ResponseMsgAdminVo` OK
639
- */
640
- adminGetGet: (query, params = {}) => this.request({
641
- path: `/admin/get`,
642
- method: "GET",
643
- query: query,
644
- ...params,
645
- }),
646
- };
647
- common = {
648
- /**
649
- * No description
650
- *
651
- * @tags 通用模块
652
- * @name CommonEnumListGet
653
- * @summary 获取枚举列表,多个请用,隔开
654
- * @request GET:/common/enum/list
655
- * @response `200` `ResponseMsgListEnumVo` OK
656
- */
657
- commonEnumListGet: (query, params = {}) => this.request({
658
- path: `/common/enum/list`,
659
- method: "GET",
660
- query: query,
661
- ...params,
662
- }),
663
- };
664
- }