web-权限、文章

This commit is contained in:
2025-10-18 18:19:19 +08:00
parent b3424e554f
commit ccc1d6338b
35 changed files with 3314 additions and 463 deletions

View File

@@ -9,7 +9,8 @@ import type {
UserCenterStatistics,
LearningChartData,
ResourceLearningStats,
ResultDomain
ResultDomain,
UserVO
} from '@/types';
/**
@@ -20,8 +21,8 @@ export const userProfileApi = {
* 获取个人信息
* @returns Promise<ResultDomain<any>>
*/
async getUserProfile(): Promise<ResultDomain<any>> {
const response = await api.get<any>('/usercenter/profile/info');
async getUserProfile(): Promise<ResultDomain<UserVO>> {
const response = await api.get<UserVO>('/usercenter/profile/info');
return response.data;
},