@cpzxrobot/sdk 1.1.47 → 1.1.48

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.
@@ -224,5 +224,10 @@ class UserGateway extends Object {
224
224
  },
225
225
  };
226
226
  }
227
+ info() {
228
+ return this.context.ready.then((axios) => {
229
+ return axios.get(`/api/v1/user/info`);
230
+ });
231
+ }
227
232
  }
228
233
  exports.UserGateway = UserGateway;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -48,6 +48,7 @@ export class ProductGateway extends Object {
48
48
  export: (args: {
49
49
  pageNo: number;
50
50
  pageSize: number;
51
+ createUserId: number;
51
52
  fileName?: string;
52
53
  }) => {
53
54
  if (!args.fileName) {
package/readme.md CHANGED
@@ -143,6 +143,7 @@ baseURL: "/"
143
143
  | cpzxrobot().user.add | 添加用户 |
144
144
  | cpzxrobot().user.update | 更新用户 |
145
145
  | cpzxrobot().user.list | 列出用户(传入工厂) |
146
+ | cpzxrobot().user.info | 获取用户信息,传入userId参数 |
146
147
  | cpzxrobot().user.approval.list | 获取用户审批列表,传入userId和status参数 |
147
148
  | cpzxrobot().user.approval.count | 获取用户审批列表的数量,传入userId和status参数 |
148
149
  | cpzxrobot().user.checkin.add | 添加用户签到记录,传入userId和address参数 |
package/user_gateway.ts CHANGED
@@ -249,4 +249,10 @@ export class UserGateway extends Object {
249
249
  },
250
250
  }
251
251
  }
252
+
253
+ info() {
254
+ return this.context.ready.then((axios) => {
255
+ return axios.get(`/api/v1/user/info`);
256
+ });
257
+ }
252
258
  }