@ningboyz/apis 1.0.167 → 1.0.169

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.0.167",
3
+ "version": "1.0.169",
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.0.167",
20
+ "@ningboyz/types": "1.0.169",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -11,6 +11,7 @@ import ZczjRequest from "./zczj";
11
11
  import P4pzRequest from "./p4pz";
12
12
  import ZczjPropRequest from "./zczjProp";
13
13
  import TzclbgblbRequest from "./tzclbgblb";
14
+ import TdataRequest from "./tdata";
14
15
 
15
16
  class CardRequest {
16
17
  public gblb: GblbRequest;
@@ -25,6 +26,7 @@ class CardRequest {
25
26
  public zczj: ZczjRequest;
26
27
  public zczjProp: ZczjPropRequest;
27
28
  public tzclbgblb: TzclbgblbRequest;
29
+ public tdata: TdataRequest;
28
30
 
29
31
  constructor(config: IAxiosConfig) {
30
32
  const request = createRequest(config);
@@ -40,6 +42,7 @@ class CardRequest {
40
42
  this.zczj = new ZczjRequest(request);
41
43
  this.zczjProp = new ZczjPropRequest(request);
42
44
  this.tzclbgblb = new TzclbgblbRequest(request);
45
+ this.tdata = new TdataRequest(request);
43
46
  }
44
47
  }
45
48
 
@@ -0,0 +1,94 @@
1
+ import { TCard, TCore } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {
4
+ ICardTdataDetaildbQuerys,
5
+ ICardTdataFinishedQuerys,
6
+ ICardTdataSelectdbQuerys,
7
+ ICardTdataTodolistQuerys
8
+ } from "./type";
9
+ import {IDataResponse} from "../../../types/src/card";
10
+ import {IEmptyQuerys, IParams} from "../type";
11
+
12
+ /**
13
+ * 卡片维修
14
+ * @Link https://doc.apipost.net/docs/detail/461255927c8d000?target_id=3e957ad
15
+ * */
16
+ class TdataRequest {
17
+ private httpRequest: HttpRequest;
18
+ constructor(httpRequest: HttpRequest) {
19
+ this.httpRequest = httpRequest;
20
+ }
21
+
22
+ /**
23
+ * 获取资产事项
24
+ * @param querys
25
+ * @returns
26
+ */
27
+ selectdb(querys: ICardTdataSelectdbQuerys) {
28
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/selectdb", querys, undefined);
29
+ }
30
+
31
+ /**
32
+ * 上传资产事项
33
+ * @param querys
34
+ * @param params
35
+ */
36
+ uploaddb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse[]>) {
37
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/uploaddb", querys, params);
38
+ }
39
+
40
+ /**
41
+ * 添加资产事项
42
+ * @param querys
43
+ * @param params
44
+ * @returns
45
+ */
46
+ insertdb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse>) {
47
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/insertdb", querys, params);
48
+ }
49
+
50
+ /**
51
+ * 修改资产事项
52
+ * @param querys
53
+ * @param params
54
+ * @returns
55
+ */
56
+ updatedb(querys: IEmptyQuerys, params: IParams<TCard.IDataResponse>) {
57
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/updatedb", querys, params);
58
+ }
59
+
60
+ /**
61
+ * 修复车辆维修
62
+ * @param querys
63
+ */
64
+ repairdb(querys: IEmptyQuerys) {
65
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/repairdb", querys, undefined);
66
+ }
67
+
68
+ /**
69
+ * 获取待办事项
70
+ * @param querys
71
+ */
72
+ todolist(querys: ICardTdataTodolistQuerys) {
73
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/todolist", querys, undefined);
74
+ }
75
+
76
+ /**
77
+ * 获取已办事项
78
+ * @param querys
79
+ */
80
+ finished(querys: ICardTdataFinishedQuerys) {
81
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/finished", querys, undefined);
82
+ }
83
+
84
+ /**
85
+ * 获取事项详情
86
+ * @param querys
87
+ * @returns
88
+ */
89
+ detaildb(querys: ICardTdataDetaildbQuerys) {
90
+ return this.httpRequest.post<TCard.IDataResponse[]>("/gapi/card/tdata/detaildb", querys, undefined);
91
+ }
92
+ }
93
+
94
+ export default TdataRequest;
@@ -634,3 +634,65 @@ export class TCardZczjPropSelectdbQuerys implements ICardZczjPropSelectdbQuerys
634
634
  cardkjqj: number = -1;
635
635
  proptype: number = -1;
636
636
  }
637
+
638
+
639
+ /** ========== Tdata资产维修 ==========*/
640
+ /**
641
+ * 资产维修查询
642
+ * */
643
+ export interface ICardTdataSelectdbQuerys {
644
+ datatype: number;
645
+ useronly: number;
646
+ withflow: number;
647
+ }
648
+
649
+ export class TCardTdataSelectdbQuerys implements ICardTdataSelectdbQuerys {
650
+ datatype: number = -1;
651
+ useronly: number = -1;
652
+ withflow: number = -1;
653
+ }
654
+
655
+
656
+ /**
657
+ * 获取待办事项
658
+ * */
659
+ export interface ICardTdataTodolistQuerys {
660
+ /**
661
+ * 车辆里程
662
+ * */
663
+ menuname: number;
664
+ }
665
+
666
+ export class TCardTdataTodolistQuerys implements ICardTdataTodolistQuerys {
667
+ menuname: number = -1;
668
+ }
669
+
670
+ /**
671
+ * 获取待办事项
672
+ * */
673
+ export interface ICardTdataFinishedQuerys {
674
+ /**
675
+ * 车辆里程
676
+ * */
677
+ menuname: number;
678
+ }
679
+
680
+ export class TCardTdataFinishedQuerys implements ICardTdataFinishedQuerys {
681
+ menuname: number = -1;
682
+ }
683
+
684
+
685
+ /**
686
+ * 获取事项详情
687
+ * */
688
+ export interface ICardTdataDetaildbQuerys {
689
+ /**
690
+ * 车辆里程
691
+ * */
692
+ datamain: number;
693
+ }
694
+
695
+ export class TCardTdataDetaildbQuerys implements ICardTdataDetaildbQuerys {
696
+ datamain: number = -1;
697
+ }
698
+