@cpzxrobot/sdk 1.1.74 → 1.1.76
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/project_gateway.js +1 -0
- package/dist/user_gateway.js +4 -2
- package/package.json +1 -1
- package/project_gateway.ts +1 -0
- package/user_gateway.ts +4 -2
package/dist/project_gateway.js
CHANGED
package/dist/user_gateway.js
CHANGED
|
@@ -131,9 +131,11 @@ class UserGateway extends Object {
|
|
|
131
131
|
var axios = await this.context.ready;
|
|
132
132
|
return axios.post("/api/v2/user/delete?id=" + id);
|
|
133
133
|
}
|
|
134
|
-
async avatar(id
|
|
134
|
+
async avatar(id) {
|
|
135
135
|
var axios = await this.context.ready;
|
|
136
|
-
return axios.
|
|
136
|
+
return axios.upload(`/api/v2/user/${id}/avatar/add`, {
|
|
137
|
+
title: "请选择上传头像文件"
|
|
138
|
+
});
|
|
137
139
|
}
|
|
138
140
|
get approval() {
|
|
139
141
|
return {
|
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
package/user_gateway.ts
CHANGED
|
@@ -146,9 +146,11 @@ export class UserGateway extends Object {
|
|
|
146
146
|
return axios.post("/api/v2/user/delete?id=" + id);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
async avatar(id: number
|
|
149
|
+
async avatar(id: number) {
|
|
150
150
|
var axios = await this.context.ready;
|
|
151
|
-
return axios.
|
|
151
|
+
return axios.upload(`/api/v2/user/${id}/avatar/add`, {
|
|
152
|
+
title: "请选择上传头像文件"
|
|
153
|
+
});
|
|
152
154
|
}
|
|
153
155
|
|
|
154
156
|
get approval() {
|