@ningboyz/apis 1.0.190 → 1.0.192
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/index.ts +3 -1
- package/packages/myoa/main.ts +2 -2
- package/packages/myoa/room.ts +40 -0
- package/packages/myoa/type.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.192",
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.0.192",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/myoa/index.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
2
|
import MainRequest from "./main";
|
|
3
3
|
import WithCardRequest from "./withcard";
|
|
4
|
+
import RoomRequest from "./room";
|
|
4
5
|
|
|
5
6
|
class MyoaRequest {
|
|
6
7
|
public main: MainRequest;
|
|
7
8
|
public withCard: WithCardRequest;
|
|
8
|
-
|
|
9
|
+
public room: RoomRequest;
|
|
9
10
|
constructor(config: IAxiosConfig) {
|
|
10
11
|
const request = createRequest(config);
|
|
11
12
|
this.main = new MainRequest(request);
|
|
12
13
|
this.withCard = new WithCardRequest(request);
|
|
14
|
+
this.room = new RoomRequest(request);
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
|
package/packages/myoa/main.ts
CHANGED
|
@@ -114,14 +114,14 @@ class ParaRequest {
|
|
|
114
114
|
* 根据myoamain进行其附件的替换
|
|
115
115
|
*/
|
|
116
116
|
set4path(querys: IMyoaMainSet4pathQuerys, params: object) {
|
|
117
|
-
return this.httpRequest.post<
|
|
117
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/set4path", querys, params);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* 根据myoamain修改其是否签章的标记
|
|
122
122
|
*/
|
|
123
123
|
usesdzqzUpdatedb(querys: IMyoaMainUsesdzqzUpdatedbQuerys, params: object) {
|
|
124
|
-
return this.httpRequest.post<
|
|
124
|
+
return this.httpRequest.post<TMyoa.IMyoaMainResponse[]>("/gapi/myoa/tmain/usesdzqz/updatedb", querys, params);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { TMyoa } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import {
|
|
4
|
+
IMyoaRoomSelectdbQuerys,
|
|
5
|
+
} from "./type";
|
|
6
|
+
|
|
7
|
+
class ParaRequest {
|
|
8
|
+
private httpRequest: HttpRequest;
|
|
9
|
+
constructor(httpRequest: HttpRequest) {
|
|
10
|
+
this.httpRequest = httpRequest;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 获取会议室
|
|
15
|
+
*/
|
|
16
|
+
selectdb(querys: IMyoaRoomSelectdbQuerys) {
|
|
17
|
+
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/selectdb", querys, undefined);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 新增会议室
|
|
21
|
+
*/
|
|
22
|
+
insertdb(params: object) {
|
|
23
|
+
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/insertdb", undefined, params);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 修改会议室
|
|
27
|
+
*/
|
|
28
|
+
updatedb(params: object) {
|
|
29
|
+
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/updatedb", undefined, params);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 删除会议室
|
|
33
|
+
*/
|
|
34
|
+
deletedb(params: object) {
|
|
35
|
+
return this.httpRequest.post<TMyoa.IMyoaRoomResponse[]>("/gapi/myoa/troom/deletedb", undefined, params);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default ParaRequest;
|
package/packages/myoa/type.ts
CHANGED
|
@@ -16,6 +16,15 @@ export class TMyoaMainSelectdbQuerys implements IMyoaMainSelectdbQuerys {
|
|
|
16
16
|
useronly: number = -1;
|
|
17
17
|
myoatype: number = -1;
|
|
18
18
|
}
|
|
19
|
+
/** ========== room ========== */
|
|
20
|
+
export interface IMyoaRoomSelectdbQuerys {
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class TMyoaRoomSelectdbQuerys implements IMyoaRoomSelectdbQuerys {
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
/** ========== main ========== */
|
|
20
29
|
export interface IMyoaMainInsertdb2Querys {
|
|
21
30
|
/** 结账年度 */
|