@ningboyz/apis 1.0.91 → 1.0.93

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.91",
3
+ "version": "1.0.93",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -3,21 +3,23 @@ import MainRequest from "./main";
3
3
  import NodeRequest from "./node";
4
4
  import DutyRequest from "./duty";
5
5
  import TFlowRequest from "./flow";
6
+ import VoidRequest from "./void";
6
7
 
7
8
  class FlowRequest {
8
9
  public main: MainRequest;
9
10
  public node: NodeRequest;
10
11
  public duty: DutyRequest;
11
12
  public flow: TFlowRequest;
12
-
13
+ public void: VoidRequest;
13
14
  constructor(config: IAxiosConfig) {
14
15
  const request = createRequest(config);
15
16
  this.main = new MainRequest(request);
16
17
  this.node = new NodeRequest(request);
17
18
  this.duty = new DutyRequest(request);
18
19
  this.flow = new TFlowRequest(request);
20
+ this.void = new VoidRequest(request);
19
21
  }
20
22
  }
21
23
 
22
24
  export default FlowRequest;
23
- export * from "./type";
25
+ export * from "./type";
@@ -1,6 +1,6 @@
1
1
  import type { TFlow } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IFlowMainSelectdbQuerys, IFlowMainDetaildbQuerys } from "./type";
3
+ import { IFlowMainSelectdbQuerys, IFlowMainDetaildbQuerys, IFlowMainQueuesdbQuerys } from "./type";
4
4
 
5
5
  class MainRequest {
6
6
  private httpRequest: HttpRequest;
@@ -48,6 +48,14 @@ class MainRequest {
48
48
  deletedb(params: object) {
49
49
  return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/deletedb", undefined, params);
50
50
  }
51
+ /**
52
+ * 排序流程列表
53
+ * @param querys
54
+ * @returns
55
+ */
56
+ queuesdb(querys: IFlowMainQueuesdbQuerys) {
57
+ return this.httpRequest.post<TFlow.IFlowMainResponse[]>("/flow/tmain/queuesdb", querys, undefined);
58
+ }
51
59
  }
52
60
 
53
61
  export default MainRequest;
@@ -94,6 +94,14 @@ export class TFlowMainDetaildbQuerys implements IFlowMainDetaildbQuerys {
94
94
  flowmain: number = -1;
95
95
  }
96
96
 
97
+ export interface IFlowMainQueuesdbQuerys {
98
+ voidtype: number;
99
+ }
100
+
101
+ export class TFlowMainQueuesdbQuerys implements IFlowMainQueuesdbQuerys {
102
+ voidtype: number = -1;
103
+ }
104
+
97
105
  /** ========== node ======== */
98
106
  export interface IFlowNodeSelectdbQuerys {
99
107
  flowmain: number;
@@ -14,7 +14,7 @@ class TypeRequest {
14
14
  * @returns
15
15
  */
16
16
  selectdb(querys: IPzptTypeSelctdbQuerys) {
17
- return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/selectdb ", querys, undefined);
17
+ return this.httpRequest.post<TPzpt.IPzptTypeResponse[]>("/gapi/pzpt/ttype/selectdb", querys, undefined);
18
18
  }
19
19
 
20
20
  /**