-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpc-mode.js
44 lines (36 loc) · 939 Bytes
/
rpc-mode.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var OpenapiClient = class extends BaseOpenapiClient {
getUsers(opts) {
return this.request('/users', 'get', opts);
}
/**
* 获取单个用户信息
*/
getUsersById(opts) {
return this.request('/users/{id}', 'get', opts);
}
postUsers(opts) {
return this.request('/users', 'post', opts);
}
/**
* 接口已弃用,请使用 /users
* @deprecated
*/
postUsersV1(opts) {
return this.request('/users/v1', 'post', opts);
}
putUsersById(opts) {
return this.request('/users/{id}', 'put', opts);
}
putUsersAvatar(opts) {
return this.request('/users/avatar', 'put', opts);
}
deleteUsersById(opts) {
return this.request('/users/{id}', 'delete', opts);
}
pickContentTypes(uri, method) {
return contentTypesOpenapiClient[method + ' ' + uri] || [void 0, void 0];
}
};
const contentTypesOpenapiClient = {
'put /users/avatar': ['multipart/form-data', void 0],
};