@cpzxrobot/sdk 1.2.40 → 1.2.42
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/dist/user_gateway.js +4 -0
- package/package.json +1 -1
- package/user_gateway.ts +9 -3
package/dist/user_gateway.js
CHANGED
package/package.json
CHANGED
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
|
}
|