@cpzxrobot/sdk 1.3.11 → 1.3.12
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 +6 -0
- package/package.json +1 -1
- package/user_gateway.ts +7 -0
package/dist/user_gateway.js
CHANGED
|
@@ -95,6 +95,12 @@ class UserGateway extends Object {
|
|
|
95
95
|
title: "请选择上传头像文件"
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
+
async sign(id) {
|
|
99
|
+
var axios = await this.context.ready;
|
|
100
|
+
return axios.upload(`/api/v2/user/${id}/sign/add`, {
|
|
101
|
+
title: "请选择上传电子签名文件"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
98
104
|
get approval() {
|
|
99
105
|
return {
|
|
100
106
|
count: (id, status) => {
|
package/package.json
CHANGED
package/user_gateway.ts
CHANGED
|
@@ -119,6 +119,13 @@ export class UserGateway extends Object {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
async sign(id: number) {
|
|
123
|
+
var axios = await this.context.ready;
|
|
124
|
+
return axios.upload(`/api/v2/user/${id}/sign/add`, {
|
|
125
|
+
title: "请选择上传电子签名文件"
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
122
129
|
get approval() {
|
|
123
130
|
return {
|
|
124
131
|
count: (id: number, status: any) => {
|