@ningboyz/apis 1.1.2 → 1.1.4
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 +2 -2
- package/packages/myoa/room.ts +10 -5
- package/packages/myoa/type.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
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.1.
|
|
20
|
+
"@ningboyz/types": "1.1.4",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/myoa/room.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { TMyoa } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
4
|
-
IMyoaRoomSelectdbQuerys,
|
|
5
|
-
} from "./type";
|
|
3
|
+
import { IMyoaRoomSelectdbQuerys, IMyoaRoomGet5lastQuerys } from "./type";
|
|
6
4
|
|
|
7
5
|
class ParaRequest {
|
|
8
6
|
private httpRequest: HttpRequest;
|
|
@@ -10,7 +8,7 @@ class ParaRequest {
|
|
|
10
8
|
this.httpRequest = httpRequest;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
/**
|
|
14
12
|
* 获取会议室
|
|
15
13
|
*/
|
|
16
14
|
selectdb(querys: IMyoaRoomSelectdbQuerys) {
|
|
@@ -34,7 +32,14 @@ class ParaRequest {
|
|
|
34
32
|
deletedb(params: object) {
|
|
35
33
|
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/deletedb", undefined, params);
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param querys 获取最近单据
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
get5last(querys: IMyoaRoomGet5lastQuerys) {
|
|
41
|
+
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/tmain/get5last", querys, undefined);
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
export default ParaRequest;
|
package/packages/myoa/type.ts
CHANGED
|
@@ -24,7 +24,14 @@ export interface IMyoaRoomSelectdbQuerys {
|
|
|
24
24
|
export class TMyoaRoomSelectdbQuerys implements IMyoaRoomSelectdbQuerys {
|
|
25
25
|
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
export interface IMyoaRoomGet5lastQuerys{
|
|
28
|
+
myoatype:number,
|
|
29
|
+
myoaroom:number
|
|
30
|
+
}
|
|
31
|
+
export class TMyoaRoomGet5lastQuerys implements IMyoaRoomGet5lastQuerys{
|
|
32
|
+
myoatype: number = -1
|
|
33
|
+
myoaroom: number = -1
|
|
34
|
+
}
|
|
28
35
|
/** ========== main ========== */
|
|
29
36
|
export interface IMyoaMainInsertdb2Querys {
|
|
30
37
|
/** 结账年度 */
|