forked from wangziqi/gongxue-base
17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
export interface UserProfileFormValues {
|
|
joinedAt?: string;
|
|
qualifications?: string;
|
|
subjects?: string[];
|
|
}
|
|
|
|
export interface UserProfileResponse {
|
|
id?: number;
|
|
username?: string;
|
|
name?: string;
|
|
profile?: UserProfileFormValues | null;
|
|
}
|
|
|
|
export const userProfileResponseToFormValues = (
|
|
response: UserProfileResponse,
|
|
): UserProfileFormValues => response.profile || {};
|