@ningboyz/apis 1.3.189 → 1.3.191
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/package.json +2 -2
- package/packages/core/path.ts +10 -1
- package/packages/core/types.ts +13 -4
- package/packages/flow/flow.ts +11 -1
- package/packages/flow/types.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.191",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.3.
|
|
20
|
+
"@ningboyz/types": "1.3.191",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/path.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ICorePathDownloadGtbase64Querys, ICorePathPdfmergeQuerys, ICorePathRotationQuerys, ICorePathUploaddbQuerys } from "./types";
|
|
3
|
+
import { ICorePathDownloadGtbase64Querys, ICorePathPdfmergeQuerys, ICorePathPdfwaterQuerys, ICorePathRotationQuerys, ICorePathUploaddbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class PathRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -60,6 +60,15 @@ class PathRequest {
|
|
|
60
60
|
rotation(querys: ICorePathRotationQuerys) {
|
|
61
61
|
return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/rotation", querys, undefined);
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 附件添加水印
|
|
66
|
+
* @param querys
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
pdfwater(querys: ICorePathPdfwaterQuerys) {
|
|
70
|
+
return this.httpRequest.postFile<TCore.IPathResponse[]>("/core/tpath/pdfwater", querys, undefined);
|
|
71
|
+
}
|
|
63
72
|
}
|
|
64
73
|
|
|
65
74
|
export default PathRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -241,6 +241,16 @@ export class TCorePathRotationQuerys implements ICorePathRotationQuerys {
|
|
|
241
241
|
pagenums: number = -1;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
export interface ICorePathPdfwaterQuerys {
|
|
245
|
+
syspathc: number;
|
|
246
|
+
watertxt: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export class TCorePathPdfwaterQuerys implements ICorePathPdfwaterQuerys {
|
|
250
|
+
syspathc: number = -1;
|
|
251
|
+
watertxt: string = "";
|
|
252
|
+
}
|
|
253
|
+
|
|
244
254
|
/** ========== sysbilltype ========== */
|
|
245
255
|
export interface ICoreSysbilltypeSelectdbQuerys {
|
|
246
256
|
sysclasc: number;
|
|
@@ -741,13 +751,12 @@ export class TCoreMasttInsertdbCamelcaseQuerys implements ICoreMasttInsertdbCame
|
|
|
741
751
|
syspartc: number = -1;
|
|
742
752
|
}
|
|
743
753
|
|
|
744
|
-
|
|
745
|
-
export interface ICoreSkdwUploadddQuerys{
|
|
754
|
+
export interface ICoreSkdwUploadddQuerys {
|
|
746
755
|
unitfrom: number;
|
|
747
756
|
datatype: number;
|
|
748
757
|
}
|
|
749
758
|
|
|
750
|
-
export class TCoreSkdwUploadddQuerys implements ICoreSkdwUploadddQuerys{
|
|
759
|
+
export class TCoreSkdwUploadddQuerys implements ICoreSkdwUploadddQuerys {
|
|
751
760
|
unitfrom: number = -1;
|
|
752
761
|
datatype: number = -1;
|
|
753
|
-
}
|
|
762
|
+
}
|
package/packages/flow/flow.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TCore, TFlow } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IFlowFlowLastUserQuerys, IFlowFlowListDeptQuerys, IFlowFlowListUserQuerys, IFlowFlowNextNodeQuerys } from "./types";
|
|
3
|
+
import { IFlowFlowLastUserQuerys, IFlowFlowListDeptQuerys, IFlowFlowListUserQuerys, IFlowFlowNextNodeQuerys, TFlowUserNotiUpdatedbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class FlowRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -92,6 +92,16 @@ class FlowRequest {
|
|
|
92
92
|
formerly(params: object) {
|
|
93
93
|
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/formerly", undefined, params);
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 修改抄送待阅单据的是否已读状态
|
|
99
|
+
* @param params
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
usernotiUpdatedb(querys: TFlowUserNotiUpdatedbQuerys) {
|
|
103
|
+
return this.httpRequest.post<TFlow.IFlowDataResponse[]>("/flow/tflow/usernoti/updatedb", querys, void 0);
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
export default FlowRequest;
|
package/packages/flow/types.ts
CHANGED
|
@@ -212,3 +212,15 @@ export interface IFlowVoidUpdatedbQuerys {
|
|
|
212
212
|
export class TFlowVoidUpdatedbQuerys implements IFlowVoidUpdatedbQuerys {
|
|
213
213
|
flowmain: number = -1;
|
|
214
214
|
}
|
|
215
|
+
|
|
216
|
+
export interface IFLowUserNotiUpdatedbQuerys {
|
|
217
|
+
entityid: string;
|
|
218
|
+
yesiknow: number;
|
|
219
|
+
useruuid: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export class TFlowUserNotiUpdatedbQuerys implements IFLowUserNotiUpdatedbQuerys {
|
|
223
|
+
entityid: string = "";
|
|
224
|
+
yesiknow: number = -1;
|
|
225
|
+
useruuid: string = "";
|
|
226
|
+
}
|