web-权限、文章
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user