@ningboyz/apis 1.4.63 → 1.4.65
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/types.ts +20 -0
- package/packages/core/unit.ts +19 -1
- package/packages/myoa/main.ts +6 -1
- package/packages/myoa/types.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.65",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.65",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -423,6 +423,24 @@ export class TCoreUnitGet4UnitQuerys implements ICoreUnitGet4UnitQuerys {}
|
|
|
423
423
|
|
|
424
424
|
export interface ICoreUnitUploadQuerys {}
|
|
425
425
|
export class TCoreUnitUploadQuerys implements ICoreUnitUploadQuerys {}
|
|
426
|
+
|
|
427
|
+
export interface ICoreUnitUploadPathQuerys {
|
|
428
|
+
/**10011018 常量 const CONST_CORE_USER_CNFG_TO_单位公章上传 = 10011018 */
|
|
429
|
+
cnfgmain: number;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export class TCoreUnitUploadPathQuerys implements ICoreUnitUploadPathQuerys {
|
|
433
|
+
cnfgmain: number = -1;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export interface ICoreUnitDeletePathQuerys {
|
|
437
|
+
/**10011018 常量 const CONST_CORE_USER_CNFG_TO_单位公章上传 = 10011018 */
|
|
438
|
+
cnfgmain: number;
|
|
439
|
+
}
|
|
440
|
+
export class TCoreUnitDeletePathQuerys implements ICoreUnitDeletePathQuerys {
|
|
441
|
+
cnfgmain: number = -1;
|
|
442
|
+
}
|
|
443
|
+
|
|
426
444
|
export interface ICoreUnitDetaildbQuerys {
|
|
427
445
|
unitmain: number;
|
|
428
446
|
}
|
|
@@ -795,6 +813,8 @@ export class TCoreDeptLiteGet4deptQuerys implements ICoreDeptLiteGet4deptQuerys
|
|
|
795
813
|
datatype: number = -1;
|
|
796
814
|
}
|
|
797
815
|
|
|
816
|
+
export class ICoreDeptDeptBindUploaddbQuerys {}
|
|
817
|
+
|
|
798
818
|
export interface ICoreDeptDeptBindUploaddbQuerys {
|
|
799
819
|
matchval: string;
|
|
800
820
|
}
|
package/packages/core/unit.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import { IEmptyQuerys, IParams } from "../type";
|
|
4
|
-
import { ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, ICoreUnitSelectdbQuerys, ICoreUnitUploadQuerys } from "./types";
|
|
4
|
+
import { ICoreUnitDeletePathQuerys, ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, ICoreUnitSelectdbQuerys, ICoreUnitUploadPathQuerys, ICoreUnitUploadQuerys } from "./types";
|
|
5
5
|
|
|
6
6
|
class UnitRequest {
|
|
7
7
|
private httpRequest: HttpRequest;
|
|
@@ -108,6 +108,24 @@ class UnitRequest {
|
|
|
108
108
|
uploadu2(querys: IEmptyQuerys, params: IParams<TCore.IUnitResponse[]>) {
|
|
109
109
|
return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/codetxt2/uploaddb", querys, params);
|
|
110
110
|
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 单位上传公章
|
|
114
|
+
* @param params
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
uploaddp(querys: ICoreUnitUploadPathQuerys, params: IParams<TCore.IUnitResponse[]>) {
|
|
118
|
+
return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/unitpath/uploaddb", querys, params);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* 重置单位公章
|
|
123
|
+
* @param params
|
|
124
|
+
* @returns
|
|
125
|
+
*/
|
|
126
|
+
deletedp(querys: ICoreUnitDeletePathQuerys, params: IParams<TCore.IUnitResponse[]>) {
|
|
127
|
+
return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/unitpath/deletedb", querys, params);
|
|
128
|
+
}
|
|
111
129
|
}
|
|
112
130
|
|
|
113
131
|
export default UnitRequest;
|
package/packages/myoa/main.ts
CHANGED
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
TMyoaMainMrokdbQuerys,
|
|
16
16
|
IMyoaMainSet4cardQuerys,
|
|
17
17
|
IMyoaMainCheckdbQuerys,
|
|
18
|
-
IMyoaMainUploadd4Querys
|
|
18
|
+
IMyoaMainUploadd4Querys,
|
|
19
|
+
IMyoaMainUploadd5Querys
|
|
19
20
|
} from "./types";
|
|
20
21
|
|
|
21
22
|
class ParaRequest {
|
|
@@ -218,6 +219,10 @@ class ParaRequest {
|
|
|
218
219
|
uploadd4(querys: IMyoaMainUploadd4Querys, params: object) {
|
|
219
220
|
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/myoastat/uploaddb", querys, params);
|
|
220
221
|
}
|
|
222
|
+
|
|
223
|
+
uploadd5(querys: IMyoaMainUploadd5Querys, params: object) {
|
|
224
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/canclose/uploaddb", querys, params);
|
|
225
|
+
}
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
export default ParaRequest;
|
package/packages/myoa/types.ts
CHANGED
|
@@ -231,3 +231,11 @@ export interface IMyoaMainUploadd4Querys {
|
|
|
231
231
|
export class TMyoaMainUploadd4Querys implements IMyoaMainUploadd4Querys {
|
|
232
232
|
myoastat: number = 0;
|
|
233
233
|
}
|
|
234
|
+
|
|
235
|
+
export interface IMyoaMainUploadd5Querys {
|
|
236
|
+
/**解锁状态 1:解锁 0:未解锁*/
|
|
237
|
+
canclose: number;
|
|
238
|
+
}
|
|
239
|
+
export class TMyoaMainUploadd5Querys implements IMyoaMainUploadd5Querys {
|
|
240
|
+
canclose: number = 0;
|
|
241
|
+
}
|