feat: 功能优化
This commit is contained in:
@@ -162,7 +162,21 @@ export const MaterialService = {
|
||||
return http.get(`${BASE_URL}/preview-url`, {
|
||||
params: { id: fileId, type }
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 更新文件显示名称
|
||||
* @param {number} fileId - 文件编号
|
||||
* @param {string} displayName - 新的显示名称
|
||||
* @returns {Promise}
|
||||
*/
|
||||
updateDisplayName(fileId, displayName) {
|
||||
return http.post(`${BASE_URL}/update-display-name`, {
|
||||
fileId,
|
||||
displayName
|
||||
})
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user