@freelog/tools-lib 0.1.100 → 0.1.101
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/service-API/user.d.ts +2 -1
- package/dist/tools-lib.cjs.development.js +4 -4
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +4 -4
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/user.ts +190 -188
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
1
2
|
interface LoginParamsType {
|
|
2
3
|
loginName: string;
|
|
3
4
|
password: string;
|
|
@@ -39,7 +40,7 @@ export declare function updatePassword(params: UpdatePasswordParamsType): Promis
|
|
|
39
40
|
interface UploadHeadImgParamsType {
|
|
40
41
|
file: File;
|
|
41
42
|
}
|
|
42
|
-
export declare function uploadHeadImg(params: UploadHeadImgParamsType): Promise<any>;
|
|
43
|
+
export declare function uploadHeadImg(params: UploadHeadImgParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
43
44
|
interface UpdateDetailInfoParamsType {
|
|
44
45
|
areaCode?: string;
|
|
45
46
|
occupation?: string;
|
|
@@ -1767,7 +1767,7 @@ function updatePassword(params) {
|
|
|
1767
1767
|
data: params
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
|
-
function uploadHeadImg(params) {
|
|
1770
|
+
function uploadHeadImg(params, config) {
|
|
1771
1771
|
var formData = new FormData();
|
|
1772
1772
|
|
|
1773
1773
|
for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
|
|
@@ -1780,11 +1780,11 @@ function uploadHeadImg(params) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
return FUtil.Request({
|
|
1783
|
+
return FUtil.Request(_extends({
|
|
1784
1784
|
method: 'POST',
|
|
1785
1785
|
url: "/v2/users/current/uploadHeadImg",
|
|
1786
|
-
data:
|
|
1787
|
-
});
|
|
1786
|
+
data: formData
|
|
1787
|
+
}, config));
|
|
1788
1788
|
}
|
|
1789
1789
|
function updateDetailInfo(params) {
|
|
1790
1790
|
return FUtil.Request({
|