@ningboyz/apis 1.5.24 → 1.5.26

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.5.24",
3
+ "version": "1.5.26",
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.5.24",
20
+ "@ningboyz/types": "1.5.26",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -678,6 +678,14 @@ export class TCardZclbUploaddbQuerys implements ICardZclbUploaddbQuerys {
678
678
  coderule: string = "";
679
679
  }
680
680
 
681
+ export interface ICardZclbNextyearQuerys {
682
+ sourcend: number;
683
+ }
684
+
685
+ export class TCardZclbNextyearQuerys implements ICardZclbNextyearQuerys {
686
+ sourcend: number = -1;
687
+ }
688
+
681
689
  /** ========== zczj ==========*/
682
690
  export interface ICardZczjSelectdbQuerys {
683
691
  unitmain: number;
@@ -93,6 +93,13 @@ class ZclbRequest {
93
93
  uploaddb(querys: ICardZclbUploaddbQuerys, params: object) {
94
94
  return this.httpRequest.post<TCard.IZclbResponse[]>(`/gapi/card/tzclb/uploaddb`, querys, params);
95
95
  }
96
+
97
+ /**
98
+ * 根据启用年度获取资产类别
99
+ */
100
+ nextyear(querys: ICardZclbUploaddbQuerys) {
101
+ return this.httpRequest.post<TCard.IZclbResponse[]>(`/gapi/card/tzclb/nextyear`, querys, void 0);
102
+ }
96
103
  }
97
104
 
98
105
  export default ZclbRequest;
@@ -1,12 +1,15 @@
1
1
  import { createRequest, IAxiosConfig } from "../axios";
2
2
  import MainRequest from "./main";
3
+ import TodoRequest from "./todo";
3
4
 
4
5
  class CronRequest {
5
6
  public main: MainRequest;
7
+ public todo: TodoRequest;
6
8
 
7
9
  constructor(config: IAxiosConfig) {
8
10
  const request = createRequest(config);
9
11
  this.main = new MainRequest(request);
12
+ this.todo = new TodoRequest(request);
10
13
  }
11
14
  }
12
15
 
@@ -0,0 +1,21 @@
1
+ import { TCron } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { ICronTodoSelectdbQuerys } from "./types";
4
+
5
+ class CronRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取定时预警列表
13
+ * @param querys
14
+ * @returns
15
+ */
16
+ selectdb(querys: ICronTodoSelectdbQuerys) {
17
+ return this.httpRequest.post<TCron.ICronMainResponse[]>("/gapi/cron/ttodo/seelctdb", querys, undefined);
18
+ }
19
+ }
20
+
21
+ export default CronRequest;
@@ -16,3 +16,12 @@ export interface ICronMainDetaildbQuerys {
16
16
  export class TCronMainDetaildbQuerys implements ICronMainDetaildbQuerys {
17
17
  cronmain: number = -1;
18
18
  }
19
+
20
+
21
+ export interface ICronTodoSelectdbQuerys {
22
+ cronmain: number;
23
+ }
24
+
25
+ export class TCronTodoSelectdbQuerys implements ICronTodoSelectdbQuerys {
26
+ cronmain: number = -1;
27
+ }