@ningboyz/apis 1.2.127 → 1.2.129
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/hznk/index.ts +3 -0
- package/packages/hznk/note.ts +36 -0
- package/packages/hznk/type.ts +68 -0
- package/packages/yzht/main.ts +10 -1
- package/packages/yzht/types.ts +10 -0
- package/pnpm-lock.yaml +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.129",
|
|
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.2.
|
|
20
|
+
"@ningboyz/types": "1.2.129",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/hznk/index.ts
CHANGED
|
@@ -3,12 +3,14 @@ import DataRequest from "./data";
|
|
|
3
3
|
import BaseRequest from "./base";
|
|
4
4
|
import MainRequest from "./main";
|
|
5
5
|
import FydwRequest from "./fydw";
|
|
6
|
+
import NoteRequest from "./note";
|
|
6
7
|
|
|
7
8
|
class HznkRequest {
|
|
8
9
|
public data: DataRequest;
|
|
9
10
|
public base: BaseRequest;
|
|
10
11
|
public main: MainRequest;
|
|
11
12
|
public fydw: FydwRequest;
|
|
13
|
+
public note: NoteRequest;
|
|
12
14
|
|
|
13
15
|
constructor(config: IAxiosConfig) {
|
|
14
16
|
const request = createRequest(config);
|
|
@@ -16,6 +18,7 @@ class HznkRequest {
|
|
|
16
18
|
this.base = new BaseRequest(request);
|
|
17
19
|
this.main = new MainRequest(request);
|
|
18
20
|
this.fydw = new FydwRequest(request);
|
|
21
|
+
this.note = new NoteRequest(request);
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { THznk } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
import { IHznkNoteDeletedbQuerys, IHznkNoteDetailQuerys, IHznkNoteFinishedQuerys, IHznkNoteInsertdbQuerys, IHznkNoteSelectdbQuerys, IHznkNoteUpdatedbQuerys } from "./type";
|
|
4
|
+
|
|
5
|
+
class NoteRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
selectdb(querys: IHznkNoteSelectdbQuerys) {
|
|
12
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/selectdb", querys, undefined);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
insertdb(querys: IHznkNoteInsertdbQuerys, params: object) {
|
|
16
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/insertdb", querys, params);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
updatedb(querys: IHznkNoteUpdatedbQuerys, params: object) {
|
|
20
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/updatedb", querys, params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
detaildb(querys: IHznkNoteDetailQuerys) {
|
|
24
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/detaildb", querys, undefined);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
deletedb(querys: IHznkNoteDeletedbQuerys, params: object) {
|
|
28
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/deletedb", querys, params);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
finished(querys: IHznkNoteFinishedQuerys) {
|
|
32
|
+
return this.httpRequest.post<THznk.IHznkNoteResponse[]>("/gapi/hznk/tnote/finished", querys, undefined);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default NoteRequest;
|
package/packages/hznk/type.ts
CHANGED
|
@@ -220,3 +220,71 @@ export interface IHznkFydwDeletedbQuerys {
|
|
|
220
220
|
export class THznkFydwDeletedbQuerys implements IHznkFydwDeletedbQuerys {
|
|
221
221
|
sourcend: number = -1;
|
|
222
222
|
}
|
|
223
|
+
|
|
224
|
+
//#Note
|
|
225
|
+
export interface IHznkNoteSelectdbQuerys {
|
|
226
|
+
sourcend: number;
|
|
227
|
+
withflow: number;
|
|
228
|
+
/**const_hznk
|
|
229
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_实施方案 = 1001
|
|
230
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_工作计划 = 1002
|
|
231
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_工作总结 = 1003
|
|
232
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_年终汇报 = 1004
|
|
233
|
+
* */
|
|
234
|
+
datatype: number;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export class THznkNoteSelectdbQuerys implements IHznkNoteSelectdbQuerys {
|
|
238
|
+
sourcend: number = -1;
|
|
239
|
+
withflow: number = -1;
|
|
240
|
+
/**const_hznk
|
|
241
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_实施方案 = 1001
|
|
242
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_工作计划 = 1002
|
|
243
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_工作总结 = 1003
|
|
244
|
+
* const CONST_HZNK_NOTE_DATA_TYPE_TO_年终汇报 = 1004
|
|
245
|
+
* */
|
|
246
|
+
datatype: number = 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface IHznkNoteFinishedQuerys {
|
|
250
|
+
sourcend: number;
|
|
251
|
+
dataType: number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export class THznkNoteFinishedQuerys implements IHznkNoteFinishedQuerys {
|
|
255
|
+
sourcend: number = -1;
|
|
256
|
+
dataType: number = -1;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface IHznkNoteInsertdbQuerys {
|
|
260
|
+
sourcend: number;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export class THznkNoteInsertdbQuerys implements IHznkNoteInsertdbQuerys {
|
|
264
|
+
sourcend: number = -1;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface IHznkNoteUpdatedbQuerys {
|
|
268
|
+
sourcend: number;
|
|
269
|
+
}
|
|
270
|
+
export class THznkNoteUpdatedbQuerys implements IHznkNoteUpdatedbQuerys {
|
|
271
|
+
sourcend: number = -1;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface IHznkNoteDetailQuerys {
|
|
275
|
+
sourcend: number;
|
|
276
|
+
noteindx: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export class THznkNoteDetailQuerys implements IHznkNoteDetailQuerys {
|
|
280
|
+
sourcend: number = -1;
|
|
281
|
+
noteindx: number = 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface IHznkNoteDeletedbQuerys {
|
|
285
|
+
sourcend: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export class THznkNoteDeletedbQuerys implements IHznkNoteDeletedbQuerys {
|
|
289
|
+
sourcend: number = -1;
|
|
290
|
+
}
|
package/packages/yzht/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TYzht } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IYzhtBillGet4BillQuerys, IYzhtMainDeletedbQuerys, IYzhtMainDetaildbQuerys, IYzhtMainSelectdbQuerys } from "./types";
|
|
3
|
+
import { IYzhtBillGet4BillQuerys, IYzhtMainDeletedbQuerys, IYzhtMainDetaildbQuerys, IYzhtMainSelectd9Querys, IYzhtMainSelectdbQuerys } from "./types";
|
|
4
4
|
|
|
5
5
|
class YzhtRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -107,6 +107,15 @@ class YzhtRequest {
|
|
|
107
107
|
set5path(params: object) {
|
|
108
108
|
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/set5path", undefined, params);
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 获取合同订立列表-附件
|
|
113
|
+
* @param querys
|
|
114
|
+
* @returns
|
|
115
|
+
*/
|
|
116
|
+
selectd9(querys: IYzhtMainSelectd9Querys) {
|
|
117
|
+
return this.httpRequest.post<TYzht.IYzhtMainResponse[]>("/gapi/yzht/tmain/selectd9", querys);
|
|
118
|
+
}
|
|
110
119
|
}
|
|
111
120
|
|
|
112
121
|
export default YzhtRequest;
|
package/packages/yzht/types.ts
CHANGED
|
@@ -78,3 +78,13 @@ export class TYzhtGlfdSelectfdQuerys implements IYzhtGlfdSelectfdQuerys {
|
|
|
78
78
|
export interface IYzhtBillUpdated8Querys { }
|
|
79
79
|
|
|
80
80
|
export class TYzhtBillUpdated8Querys implements IYzhtBillUpdated8Querys { }
|
|
81
|
+
|
|
82
|
+
export interface IYzhtMainSelectd9Querys {
|
|
83
|
+
hzcbmain: number;
|
|
84
|
+
queuesby: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class TYzhtMainSelectd9Querys implements IYzhtMainSelectd9Querys {
|
|
88
|
+
hzcbmain: number = -1;
|
|
89
|
+
queuesby: string = "";
|
|
90
|
+
}
|
package/pnpm-lock.yaml
CHANGED
|
@@ -9,8 +9,8 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@ningboyz/types':
|
|
12
|
-
specifier: 1.2.
|
|
13
|
-
version: 1.2.
|
|
12
|
+
specifier: 1.2.127
|
|
13
|
+
version: 1.2.127
|
|
14
14
|
axios:
|
|
15
15
|
specifier: 1.8.4
|
|
16
16
|
version: 1.8.4
|
|
@@ -20,8 +20,8 @@ packages:
|
|
|
20
20
|
'@aximario/json-tree@2.2.4':
|
|
21
21
|
resolution: {integrity: sha512-XGMJ+zuVQ0CRizo1d3ZTUKEvrTqKYbm2a00T6DnRFR36mzV6mexLUKRIk6repj3JKgLrj3iwW8aUFrOS4P7CEA==}
|
|
22
22
|
|
|
23
|
-
'@ningboyz/types@1.2.
|
|
24
|
-
resolution: {integrity: sha512-
|
|
23
|
+
'@ningboyz/types@1.2.127':
|
|
24
|
+
resolution: {integrity: sha512-r+w5A/J1koZ6pWCUs20ZIvS1ixXJwf99gIdkH4U71Z3ET8ahmM8puwA2No1Ng4mItau2/lFmDuk0LjmgwS1DbA==}
|
|
25
25
|
|
|
26
26
|
asynckit@0.4.0:
|
|
27
27
|
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
|
|
@@ -123,7 +123,7 @@ snapshots:
|
|
|
123
123
|
|
|
124
124
|
'@aximario/json-tree@2.2.4': {}
|
|
125
125
|
|
|
126
|
-
'@ningboyz/types@1.2.
|
|
126
|
+
'@ningboyz/types@1.2.127':
|
|
127
127
|
dependencies:
|
|
128
128
|
'@aximario/json-tree': 2.2.4
|
|
129
129
|
lodash: 4.17.21
|