@ningboyz/apis 1.4.54 → 1.4.55

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.4.54",
3
+ "version": "1.4.55",
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.54",
20
+ "@ningboyz/types": "1.4.55",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,7 +1,7 @@
1
1
  import { TNoti } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { IEmptyQuerys } from "../type";
4
- import { INotiMainAuditdbWithscczQuerys, INotiMainDetaildbQuerys, INotiMainDetaildbWithscczQuerys, INotiMainFinishedQuerys, INotiMainFinishedWithscczQuerys, INotiMainGet4NotiQuerys, INotiMainReadplusQuerys, INotiMainSelectdbQuerys, INotiMainSelectdbWithscczQuerys, INotiMainUpdatedbWithscczQuerys } from "./types";
4
+ import { INotiMainAuditdbWithscczQuerys, INotiMainInsertdb1Querys, INotiMainDetaildbQuerys, INotiMainDetaildbWithscczQuerys, INotiMainFinishedQuerys, INotiMainFinishedWithscczQuerys, INotiMainGet4NotiQuerys, INotiMainReadplusQuerys, INotiMainSelectdbQuerys, INotiMainSelectdbWithscczQuerys, INotiMainUpdatedbWithscczQuerys } from "./types";
5
5
 
6
6
  class ParaRequest {
7
7
  private httpRequest: HttpRequest;
@@ -27,6 +27,15 @@ class ParaRequest {
27
27
  return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", undefined, params);
28
28
  }
29
29
 
30
+ /**
31
+ * 新增公告
32
+ * @param params
33
+ * @returns
34
+ */
35
+ insertdb1(querys: INotiMainInsertdb1Querys, params: object) {
36
+ return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", querys, params);
37
+ }
38
+
30
39
  /**
31
40
  * 修改公告
32
41
  * @param params
@@ -1,47 +0,0 @@
1
- import { TNoti } from "@ningboyz/types";
2
- import type { HttpRequest } from "../axios";
3
- import { INotiMainDetaildbQuerys } from "./type";
4
-
5
- class ParaRequest {
6
- private httpRequest: HttpRequest;
7
- constructor(httpRequest: HttpRequest) {
8
- this.httpRequest = httpRequest;
9
- }
10
-
11
- /**
12
- * 获取公告列表
13
- */
14
- selectdb(querys: object) {
15
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/selectdb", querys, undefined);
16
- }
17
-
18
- /**
19
- * 新增公告列表
20
- */
21
- insertdb(params: object) {
22
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/insertdb", undefined, params);
23
- }
24
-
25
- /**
26
- * 修改公告列表
27
- */
28
- updatedb(params: object) {
29
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/updatedb", undefined, params);
30
- }
31
-
32
- /**
33
- * 删除公告列表
34
- */
35
- deletedb(params: object) {
36
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/deletedb", undefined, params);
37
- }
38
-
39
- /**
40
- * 获取公告详情列表
41
- */
42
- detaildb(querys: INotiMainDetaildbQuerys, params: object) {
43
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/detaildb", querys, params);
44
- }
45
- }
46
-
47
- export default ParaRequest;