@cpzxrobot/sdk 1.2.40 → 1.2.41

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.
@@ -279,6 +279,10 @@ class UserGateway extends Object {
279
279
  }
280
280
  });
281
281
  }
282
+ async detail(userId) {
283
+ var axios = await this.context.ready;
284
+ return axios.get(`/api/v2/user/info/${userId}`);
285
+ }
282
286
  get position() {
283
287
  return {
284
288
  leader: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.40",
3
+ "version": "1.2.41",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/user_gateway.ts CHANGED
@@ -138,7 +138,7 @@ export class UserGateway extends Object {
138
138
 
139
139
  async mypermission(params: any = undefined) {
140
140
  var axios = await this.context.ready;
141
- return axios.get("/api/v2/user/role/mypermission",{
141
+ return axios.get("/api/v2/user/role/mypermission", {
142
142
  params
143
143
  });
144
144
  }
@@ -152,7 +152,7 @@ export class UserGateway extends Object {
152
152
  var axios = await this.context.ready;
153
153
  return axios.upload(`/api/v2/user/${id}/avatar/add`, {
154
154
  title: "请选择上传头像文件"
155
- });
155
+ });
156
156
  }
157
157
 
158
158
  get approval() {
@@ -307,6 +307,12 @@ export class UserGateway extends Object {
307
307
  });
308
308
  }
309
309
 
310
+
311
+ async detail(userId: number) {
312
+ var axios = await this.context.ready;
313
+ return axios.get(`/api/v2/user/info/${userId}`);
314
+ }
315
+
310
316
  get position() {
311
317
  return {
312
318
  leader: () => {
@@ -316,7 +322,7 @@ export class UserGateway extends Object {
316
322
  },
317
323
  team: (searchName: string | undefined) => {
318
324
  return this.context.ready.then((axios) => {
319
- return axios.get(`/api/v2/user/info/team`,{
325
+ return axios.get(`/api/v2/user/info/team`, {
320
326
  params: {
321
327
  name: searchName
322
328
  }