@ningboyz/apis 1.0.40 → 1.0.41

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.40",
3
+ "version": "1.0.41",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -16,6 +16,7 @@ import {
16
16
  ICardMainUpdatedbQuerys,
17
17
  ICardMainUploadd2Querys
18
18
  } from "./type";
19
+ import { TParams } from "../core";
19
20
 
20
21
  class MainRequest {
21
22
  private httpRequest: HttpRequest;
@@ -101,7 +102,7 @@ class MainRequest {
101
102
  * @param params
102
103
  * @returns
103
104
  */
104
- detaild2(querys: ICardMainDetaild2Querys, params: object) {
105
+ detaild2(querys: ICardMainDetaild2Querys, params: TParams<TCard.ICardMainResponse>) {
105
106
  return this.httpRequest.post<TCard.ICardMainResponse[]>("/gapi/card/tmain/detaild2", querys, params);
106
107
  }
107
108
 
@@ -1,7 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { ISysTravelResponse } from "@ningboyz/types/src/core";
4
- import { ICoreSystravelSelectdbQuerys } from "./types";
3
+ import {ICoreSystravelSelectdbQuerys, TParams} from "./types";
5
4
 
6
5
  class SysTravelRequest {
7
6
  private httpRequest: HttpRequest;
@@ -32,7 +31,7 @@ class SysTravelRequest {
32
31
  * @param params
33
32
  * @returns
34
33
  */
35
- uploaddb(params: object) {
34
+ uploaddb(params: TParams<TCore.ISysTravelResponse[]>) {
36
35
  return this.httpRequest.post<TCore.ISysTravelResponse[]>("/core/tsystravel/uploaddb", undefined, params);
37
36
  }
38
37
  }
@@ -445,7 +445,9 @@ export class TCoreUserCaptcha1Querys implements ICoreUserCaptcha1Querys {
445
445
  export interface ICoreUserCaptcha2Querys {
446
446
  fp: string;
447
447
  }
448
- export class TCoreUserCaptcha2Querys implements ICoreUserCaptcha2Querys {
449
- fp: string = "";
450
- }
448
+ export class TCoreUserCaptcha2Querys implements ICoreUserCaptcha2Querys {
449
+ fp: string = "";
450
+ }
451
+
452
+ export type TParams<T> = FormData | T
451
453
 
@@ -1,6 +1,6 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { ICoreUnitDetaildbQuerys } from "./types";
3
+ import {ICoreUnitDetaildbQuerys, TParams} from "./types";
4
4
 
5
5
  class UnitRequest {
6
6
  private httpRequest: HttpRequest;
@@ -34,10 +34,11 @@ class UnitRequest {
34
34
  /**
35
35
  * 单位详情
36
36
  * @param querys
37
+ * @param data
37
38
  * @returns
38
39
  */
39
- detaildb(querys: ICoreUnitDetaildbQuerys) {
40
- return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/detaildb", querys, undefined);
40
+ detaildb(querys: ICoreUnitDetaildbQuerys, data: object | undefined) {
41
+ return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/detaildb", querys, data);
41
42
  }
42
43
 
43
44
  /**
@@ -63,6 +64,15 @@ class UnitRequest {
63
64
  withCardGet4Unit(params: object) {
64
65
  return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/withcard/get4unit", undefined, params);
65
66
  }
67
+
68
+ /**
69
+ * 补全固定资产相关配置
70
+ * @param querys
71
+ * @param params
72
+ */
73
+ get4unit(querys: object | undefined, params: TParams<TCore.IUnitResponse[]>) {
74
+ return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/withcard/get4unit", querys, params);
75
+ }
66
76
  }
67
77
 
68
78
  export default UnitRequest;
@@ -1,6 +1,6 @@
1
1
  import { TNoti } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { INotiMainDetaildbQuerys } from "./type";
3
+ import {INotiMainDetaildbQuerys, INotiMainSelectdbQuerys} from "./type";
4
4
 
5
5
  class ParaRequest {
6
6
  private httpRequest: HttpRequest;
@@ -11,8 +11,8 @@ class ParaRequest {
11
11
  /**
12
12
  * 获取公告列表
13
13
  */
14
- selectdb() {
15
- return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/selectdb");
14
+ selectdb(querys: INotiMainSelectdbQuerys) {
15
+ return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/selectdb", querys, undefined);
16
16
  }
17
17
 
18
18
  /**
@@ -1,7 +1,17 @@
1
1
  /** ========== main ========== */
2
- export interface INotiMainSelectdbQuerys {}
2
+ export interface INotiMainSelectdbQuerys {
3
+ sysclasc: number;
4
+ viewonly: number;
5
+ unitonly: number;
6
+ unitmain: number;
7
+ }
3
8
 
4
- export class TNotiMainSelectdbQuerys implements INotiMainSelectdbQuerys {}
9
+ export class TNotiMainSelectdbQuerys implements INotiMainSelectdbQuerys {
10
+ sysclasc: number = -1;
11
+ viewonly: number = -1;
12
+ unitonly: number = -1;
13
+ unitmain: number = -1;
14
+ }
5
15
 
6
16
  export interface INotiMainDetaildbQuerys {
7
17
  notimain: number;
@@ -10,3 +20,4 @@ export interface INotiMainDetaildbQuerys {
10
20
  export class TNotiMainDetaildbQuerys implements INotiMainDetaildbQuerys {
11
21
  notimain: number = -1;
12
22
  }
23
+
@@ -75,7 +75,7 @@ class MainRequest {
75
75
  * @param params
76
76
  * @returns
77
77
  */
78
- selectcx(querys: ITablMainSelectcxQuerys, params: object) {
78
+ selectcx(querys: ITablMainSelectcxQuerys, params: object | undefined) {
79
79
  return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", querys, params);
80
80
  }
81
81
 
@@ -12,9 +12,13 @@ export class TWtuiTodoCopywtuiQuerys implements IWtuiTodoCopywtuiQuerys {
12
12
  export interface IWtuiMainRecoverWtuiQuerys {
13
13
  /** 1:覆盖,0:追加 */
14
14
  override: number;
15
+ wtuimain: number;
16
+ wtuiroot: number;
15
17
  }
16
18
  export class TWtuiTodoRecoverWtuiQuerys implements IWtuiMainRecoverWtuiQuerys {
17
19
  override: number = -1;
20
+ wtuimain: number = -1;
21
+ wtuiroot: number = -1;
18
22
  }
19
23
  export interface IWtuiMainCopywtuiQuerys {
20
24
  /** 复制条数 */