@ningboyz/apis 1.8.105 → 1.8.106

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.8.105",
3
+ "version": "1.8.106",
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.8.105",
20
+ "@ningboyz/types": "1.8.106",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
package/packages/index.ts CHANGED
@@ -42,3 +42,4 @@ export * from "./zbhd";
42
42
  export * from "./zbzd";
43
43
  export * from "./type";
44
44
  export * from "./sysenvr";
45
+ export * from "./yymd";
@@ -0,0 +1,14 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class YymdRequest {
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 YymdRequest;
14
+ export * from "./types";
@@ -0,0 +1,19 @@
1
+ import type { HttpRequest } from "../axios";
2
+ import { IYymdTrackQuerys } from "./types";
3
+
4
+ class YymdRequest {
5
+ private httpRequest: HttpRequest;
6
+ constructor(httpRequest: HttpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+ /**
10
+ * 新增埋点
11
+ * @param params
12
+ * @returns
13
+ */
14
+ track(querys: IYymdTrackQuerys, params: object) {
15
+ return this.httpRequest.post<string>("/dapi/app/app_mai", querys, params);
16
+ }
17
+ }
18
+
19
+ export default YymdRequest;
@@ -0,0 +1,3 @@
1
+ export interface IYymdTrackQuerys {
2
+ appid: string;
3
+ }