?
This commit is contained in:
@@ -182,19 +182,3 @@ export const resetPassword = async (token, password) => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户临时权限信息
|
||||
* 路由: /user/temp_privilege
|
||||
* 方法: GET
|
||||
*
|
||||
* 需要登录
|
||||
* @returns {Promise<Object>} 返回一个包含临时权限信息的Promise对象
|
||||
*/
|
||||
export const getTempPrivilege = async () => {
|
||||
try {
|
||||
const response = await axiosInstance.get('/user/temp_privilege');
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user