需求改了好多,不需要自己输用户名和qq号了

This commit is contained in:
2025-07-10 17:21:40 +08:00
parent c40638eca2
commit 66efa6c310
4 changed files with 264 additions and 66 deletions

View File

@@ -99,3 +99,17 @@ export const addDemandReply = async (id, replyData) => {
throw error;
}
};
/**
* 获取所有需求列表(管理员)
* @returns {Promise<Array<Object>>} 返回所有需求列表数据
*/
export const getAllDemandsList = async () => {
try {
const response = await axiosInstance.get('/demands/getlistall');
return response.data;
} catch (error) {
console.error('获取所有需求列表失败:', error);
throw error;
}
};