@ningboyz/apis 1.3.161 → 1.3.163
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/user.ts +1 -1
- package/packages/noti/main.ts +9 -1
- package/packages/noti/types.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.163",
|
|
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.163",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/user.ts
CHANGED
|
@@ -87,7 +87,7 @@ class UserRequest {
|
|
|
87
87
|
* @returns
|
|
88
88
|
*/
|
|
89
89
|
userliteWithunit(querys: ICoreUserliteWithunit) {
|
|
90
|
-
return this.httpRequest.post<TCore.
|
|
90
|
+
return this.httpRequest.post<TCore.TUserLiteResponse[]>("/core/tuser/userlite/withunit", querys, undefined);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
package/packages/noti/main.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TNoti } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { INotiMainDetaildbQuerys, INotiMainFinishedQuerys, INotiMainGet4NotiQuerys, INotiMainSelectdbQuerys,
|
|
3
|
+
import { INotiMainDetaildbQuerys, INotiMainFinishedQuerys, INotiMainGet4NotiQuerys, INotiMainSelectdbQuerys, INotiMainInsertdb1Querys } from "./types";
|
|
4
4
|
|
|
5
5
|
class ParaRequest {
|
|
6
6
|
private httpRequest: HttpRequest;
|
|
@@ -25,6 +25,14 @@ class ParaRequest {
|
|
|
25
25
|
insertdb(params: object) {
|
|
26
26
|
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", undefined, params);
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* 新增公告
|
|
30
|
+
* @param params
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
insertdb1(querys: INotiMainInsertdb1Querys, params: object) {
|
|
34
|
+
return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", querys, params);
|
|
35
|
+
}
|
|
28
36
|
|
|
29
37
|
/**
|
|
30
38
|
* 修改公告
|
package/packages/noti/types.ts
CHANGED
|
@@ -16,7 +16,12 @@ export class TNotiMainSelectdbQuerys implements INotiMainSelectdbQuerys {
|
|
|
16
16
|
unitmain: number = -1;
|
|
17
17
|
withflow: number = 0;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
export interface INotiMainInsertdb1Querys {
|
|
20
|
+
shareday: number;
|
|
21
|
+
}
|
|
22
|
+
export class TNotiMainInsertdb1Querys implements INotiMainInsertdb1Querys {
|
|
23
|
+
shareday: number = -1;
|
|
24
|
+
}
|
|
20
25
|
export interface INotiMainDetaildbQuerys {
|
|
21
26
|
notimain: number;
|
|
22
27
|
}
|