@/utils/utils#buildFileFormData JavaScript Examples
The following examples show how to use
@/utils/utils#buildFileFormData.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addContentType(params) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/content_type', {
method: 'POST',
data: fileData,
});
}
Example #2
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateContentType(params, id) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/content_type/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #3
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addGroup(params) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/group', {
method: 'POST',
data: fileData,
});
}
Example #4
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateGroup(params, id) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/group/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #5
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addPermission(params) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/permission', {
method: 'POST',
data: fileData,
});
}
Example #6
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updatePermission(params, id) {
let fileFieldList = []
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/permission/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #7
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addTAnalysis(params) {
let fileFieldList = ["picture_trush"]
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/t_analysis', {
method: 'POST',
data: fileData,
});
}
Example #8
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateTAnalysis(params, id) {
let fileFieldList = ["picture_trush"]
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/t_analysis/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #9
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addTCamera(params) {
let fileFieldList = ["face","picture_face","picture_trush"]
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/t_camera', {
method: 'POST',
data: fileData,
});
}
Example #10
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateTCamera(params, id) {
let fileFieldList = ["face","picture_face","picture_trush"]
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/t_camera/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #11
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addTUser(params) {
let fileFieldList = ["face"]
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/t_user', {
method: 'POST',
data: fileData,
});
}
Example #12
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateTUser(params, id) {
let fileFieldList = ["face"]
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/t_user/${id}`, {
method: 'PUT',
data: fileData,
});
}
Example #13
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function addUserProfile(params) {
let fileFieldList = ["image"]
let fileData = buildFileFormData(params, fileFieldList);
return request('/api/xadmin/v1/user_profile', {
method: 'POST',
data: fileData,
});
}
Example #14
Source File: service.js From the-eye-knows-the-garbage with MIT License | 5 votes |
export async function updateUserProfile(params, id) {
let fileFieldList = ["image"]
let fileData = buildFileFormData(params, fileFieldList);
return request(`/api/xadmin/v1/user_profile/${id}`, {
method: 'PUT',
data: fileData,
});
}