@ningboyz/apis 1.1.82 → 1.1.84
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 +13 -2
- package/packages/core/user.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.84",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.84",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/types.ts
CHANGED
|
@@ -555,13 +555,16 @@ export class TCoreUserUploadd2Querys implements ICoreUserUploadd2Querys {
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
export interface ICoreUserUploadd3Querys {
|
|
558
|
-
|
|
558
|
+
/**内部用户1001 外部客户1002 内部会员1003 内部员工1004*/
|
|
559
|
+
syspartc: number;
|
|
559
560
|
/** 1:传入1覆盖,传别的追加 */
|
|
560
561
|
override: number;
|
|
562
|
+
updateon: number;
|
|
561
563
|
}
|
|
562
564
|
export class TCoreUserUploadd3Querys implements ICoreUserUploadd3Querys {
|
|
563
|
-
|
|
565
|
+
syspartc: number = 0;
|
|
564
566
|
override: number = 0;
|
|
567
|
+
updateon: number = 0;
|
|
565
568
|
}
|
|
566
569
|
|
|
567
570
|
export interface ICoreUserUploaddbQuerys {
|
|
@@ -571,3 +574,11 @@ export interface ICoreUserUploaddbQuerys {
|
|
|
571
574
|
export class TCoreUserUploaddbQuerys implements ICoreUserUploaddbQuerys {
|
|
572
575
|
syspartc: number = 0;
|
|
573
576
|
}
|
|
577
|
+
|
|
578
|
+
export interface ICoreUserInsertdbQuerys {
|
|
579
|
+
syspartc: number;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export class TCoreUserInsertdbQuerys implements ICoreUserInsertdbQuerys {
|
|
583
|
+
syspartc: number = 0;
|
|
584
|
+
}
|
package/packages/core/user.ts
CHANGED
|
@@ -26,7 +26,8 @@ import {
|
|
|
26
26
|
ICoreDel4userQuerys,
|
|
27
27
|
ICoreUserUploadd2Querys,
|
|
28
28
|
ICoreUserUploadd3Querys,
|
|
29
|
-
ICoreUserUploaddbQuerys
|
|
29
|
+
ICoreUserUploaddbQuerys,
|
|
30
|
+
ICoreUserInsertdbQuerys
|
|
30
31
|
} from "./types";
|
|
31
32
|
import { IUserResponse } from "../../../types/src/core";
|
|
32
33
|
import { IParams } from "../type";
|
|
@@ -53,6 +54,15 @@ class UserRequest {
|
|
|
53
54
|
return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/insertdb`, undefined, params);
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
/**
|
|
58
|
+
* 新增用户
|
|
59
|
+
* @param querys
|
|
60
|
+
* @param params
|
|
61
|
+
*/
|
|
62
|
+
insertdb2(querys: ICoreUserInsertdbQuerys, params: object) {
|
|
63
|
+
return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/insertdb`, querys, params);
|
|
64
|
+
}
|
|
65
|
+
|
|
56
66
|
/**
|
|
57
67
|
* 更新用户
|
|
58
68
|
* @param params
|