增加用户导入

This commit is contained in:
龙运模
2024-07-18 16:25:30 +08:00
parent a3a626292e
commit e85f113865
4 changed files with 53 additions and 4 deletions
+14
View File
@@ -350,6 +350,20 @@ export default {
return await http.post(this.url, params);
}
},
template:{
url: `${config.API_URL}/user.import.template`,
name: "用户资料导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
import:{
url: `${config.API_URL}/user.import`,
name: "用户资料导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
generateRegistration:{
url: `${config.API_URL}/generate.registration.challenge`,