对接后端个人信息部分接口

This commit is contained in:
龙运模
2024-07-03 20:05:29 +08:00
parent 43f9a8d49c
commit 0bb1d10f4b
26 changed files with 695 additions and 86 deletions
+22
View File
@@ -122,6 +122,28 @@ var http = {
})
},
/** oss 请求
* @param {string} url
* @param {{}} data
* @param {{}} config
*/
oss:function (url, data = {}, config = {}){
return new Promise((resolve, reject) => {
axios({
method: "post",
url: url,
data: data,
...config,
})
.then((response) => {
resolve(response.data);
})
.catch((error) => {
reject(error);
});
});
},
/** put 请求
* @param {string} url 接口地址
* @param {object} data 请求参数