@ningboyz/apis 1.0.48 → 1.0.50

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.48",
3
+ "version": "1.0.50",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -17,8 +17,8 @@
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
19
  "dependencies": {
20
- "@ningboyz/types": "^1.0.39",
21
- "axios": "^1.8.4"
20
+ "@ningboyz/types": "1.0.50",
21
+ "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
24
24
  }
@@ -1,13 +1,6 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import {
4
- ICoreLaidInsertdbQuerys,
5
- ICoreLaidSelectdbQuerys,
6
- ICoreLaidUpdatedbQuerys,
7
- ICoreLaidUploadd3Querys,
8
- ICoreLaidUploadd4Querys,
9
- TParams
10
- } from "./types";
3
+ import { ICoreLaidInsertdbQuerys, ICoreLaidSelectdbQuerys, ICoreLaidUpdatedbQuerys, ICoreLaidUploadd3Querys, ICoreLaidUploadd4Querys } from "./types";
11
4
 
12
5
  class LaidRequest {
13
6
  private httpRequest: HttpRequest;
@@ -284,6 +284,13 @@ export class TCoreTypeDetaildbQuerys implements ICoreTypeDetaildbQuerys {
284
284
  }
285
285
 
286
286
  /** ========== unit ========== */
287
+
288
+ export interface ICoreUnitGet4UnitQuerys {
289
+ }
290
+ export class TCoreUnitGet4UnitQuerys implements ICoreUnitGet4UnitQuerys {
291
+ }
292
+
293
+
287
294
  export interface ICoreUnitDetaildbQuerys {
288
295
  unitmain: number;
289
296
  }
@@ -1,6 +1,6 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import {ICoreUnitDetaildbQuerys, TParams} from "./types";
3
+ import { ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, TParams } from "./types";
4
4
 
5
5
  class UnitRequest {
6
6
  private httpRequest: HttpRequest;
@@ -70,7 +70,7 @@ class UnitRequest {
70
70
  * @param querys
71
71
  * @param params
72
72
  */
73
- get4unit(querys: object | undefined, params: TParams<TCore.IUnitResponse[]>) {
73
+ get4unit(querys: ICoreUnitGet4UnitQuerys, params: TParams<TCore.IUnitResponse[]>) {
74
74
  return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/withcard/get4unit", querys, params);
75
75
  }
76
76
  }
@@ -0,0 +1,13 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class MyoaRequest {
5
+ public main: MainRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.main = new MainRequest(request);
10
+ }
11
+ }
12
+
13
+ export default MyoaRequest;
@@ -0,0 +1,47 @@
1
+ import { TMyoa } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {TMyoaMainDetaildbQuerys, IMyoaMainSelectdbQuerys} 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: IMyoaMainSelectdbQuerys) {
15
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/selectdb", querys, undefined);
16
+ }
17
+
18
+ /**
19
+ * 新增盖章申请
20
+ */
21
+ insertdb(params: object) {
22
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/insertdb", undefined, params);
23
+ }
24
+
25
+ /**
26
+ * 修改盖章申请
27
+ */
28
+ updatedb(params: object) {
29
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/updatedb", undefined, params);
30
+ }
31
+
32
+ /**
33
+ * 删除盖章申请
34
+ */
35
+ deletedb(params: object) {
36
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/deletedb", undefined, params);
37
+ }
38
+
39
+ /**
40
+ * 获取盖章申请详情
41
+ */
42
+ detaildb(querys: TMyoaMainDetaildbQuerys, params: object) {
43
+ return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/detaildb", querys, params);
44
+ }
45
+ }
46
+
47
+ export default ParaRequest;
@@ -0,0 +1,21 @@
1
+ /** ========== main ========== */
2
+ export interface IMyoaMainSelectdbQuerys {
3
+ withflow: number;
4
+ viewonly: number;
5
+ useronly: number;
6
+ }
7
+
8
+ export class TMyoaMainSelectdbQuerys implements IMyoaMainSelectdbQuerys {
9
+ withflow: number = 0;
10
+ viewonly: number = -1;
11
+ useronly: number = -1;
12
+ }
13
+
14
+ export interface IMyoaMainDetaildbQuerys {
15
+ myoamain: number;
16
+ }
17
+
18
+ export class TMyoaMainDetaildbQuerys implements IMyoaMainDetaildbQuerys {
19
+ myoamain: number = -1;
20
+ }
21
+
@@ -0,0 +1,13 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class YzcgRequest {
5
+ public main: MainRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.main = new MainRequest(request);
10
+ }
11
+ }
12
+
13
+ export default YzcgRequest;
@@ -0,0 +1,49 @@
1
+ import { TYzcg } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import {TYzcgMainDetaildbQuerys, IYzcgMainSelectdbQuerys} from "./type";
4
+
5
+
6
+ class ParaRequest {
7
+ private httpRequest: HttpRequest;
8
+ constructor(httpRequest: HttpRequest) {
9
+ this.httpRequest = httpRequest;
10
+ }
11
+
12
+ /**
13
+ * 获取采购申请
14
+ */
15
+ selectdb(querys: IYzcgMainSelectdbQuerys) {
16
+ return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/selectdb", querys, undefined);
17
+ }
18
+
19
+ /**
20
+ * 新增采购申请
21
+ */
22
+ insertdb(params: object) {
23
+ return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/insertdb", undefined, params);
24
+ }
25
+
26
+ /**
27
+ * 修改采购申请
28
+ */
29
+ updatedb(params: object) {
30
+ return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/updatedb", undefined, params);
31
+ }
32
+
33
+
34
+ /**
35
+ * 删除采购申请
36
+ */
37
+ deletedb(params: object) {
38
+ return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/deletedb", undefined, params);
39
+ }
40
+
41
+ /**
42
+ * 获取采购申请详情
43
+ */
44
+ detaildb(querys: TYzcgMainDetaildbQuerys, params: object) {
45
+ return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb", params, querys);
46
+ }
47
+ }
48
+
49
+ export default ParaRequest;
@@ -0,0 +1,23 @@
1
+ /** ========== main ========== */
2
+ export interface IYzcgMainSelectdbQuerys {
3
+ withflow: number;
4
+ directat: number;
5
+ myoatype: number;
6
+ useronly: number;
7
+ }
8
+
9
+ export class TYzcgMainSelectdbQuerys implements IYzcgMainSelectdbQuerys {
10
+ withflow: number = 0
11
+ directat: number = -1;
12
+ myoatype: number = -1;
13
+ useronly: number = -1;
14
+ }
15
+
16
+ export interface IYzcgMainDetaildbQuerys {
17
+ yzcgmain: number;
18
+ }
19
+
20
+ export class TYzcgMainDetaildbQuerys implements IYzcgMainDetaildbQuerys {
21
+ yzcgmain: number = -1;
22
+ }
23
+