Update with new components
This commit is contained in:
@@ -1,16 +1,46 @@
|
||||
import { WorkingStatus } from "../enum/WorkingStatus";
|
||||
// src/app/model/Professor.ts
|
||||
import { WorkingStatus } from '../enum/WorkingStatus';
|
||||
import { ProfessorCategory } from '../enum/professor-category.enum';
|
||||
|
||||
export class Professor {
|
||||
// id : number;
|
||||
professorId: string; // UUID
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
department: string;
|
||||
position: string;
|
||||
officeLocation: string;
|
||||
status: WorkingStatus; // Assuming status is represented as a string in the DTO
|
||||
joinDate: Date; // LocalDateTime as a string
|
||||
profileImageUrl?: string; // Optional, URL to the profile image
|
||||
// profileImage?: File; // Optional, used for uploading profile images
|
||||
}
|
||||
export interface Professor {
|
||||
id?: number;
|
||||
professorId: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
department: string;
|
||||
position: string;
|
||||
officeLocation: string;
|
||||
joinDate: Date;
|
||||
profileImageUrl: string;
|
||||
status: WorkingStatus;
|
||||
category: ProfessorCategory;
|
||||
|
||||
// Additional fields for Next.js integration
|
||||
phone?: string;
|
||||
specialty?: string;
|
||||
certification?: string;
|
||||
training?: string;
|
||||
experience?: string;
|
||||
description?: string;
|
||||
designation?: string;
|
||||
workDays?: string[];
|
||||
|
||||
// Awards and skills
|
||||
awards?: Award[];
|
||||
skills?: Skill[];
|
||||
}
|
||||
|
||||
export interface Award {
|
||||
id?: number;
|
||||
title: string;
|
||||
year: string;
|
||||
description: string;
|
||||
imageUrl?: string;
|
||||
}
|
||||
|
||||
export interface Skill {
|
||||
id?: number;
|
||||
name: string;
|
||||
level?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user