feat: Implement instructor search and improve instructor management with email/username lookup and avatar presigned URLs.
This commit is contained in:
parent
38e7f1bf06
commit
f4a12c686b
4 changed files with 228 additions and 25 deletions
|
|
@ -90,22 +90,52 @@ export interface listCourseinstructorResponse {
|
|||
|
||||
export interface addinstructorCourse {
|
||||
token: string;
|
||||
user_id: number;
|
||||
email_or_username: string;
|
||||
course_id: number;
|
||||
}
|
||||
|
||||
export interface SearchInstructorInput {
|
||||
token: string;
|
||||
query: string;
|
||||
course_id: number;
|
||||
}
|
||||
|
||||
export interface SearchInstructorResult {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
first_name: string | null;
|
||||
last_name: string | null;
|
||||
avatar_url: string | null;
|
||||
}
|
||||
|
||||
export interface SearchInstructorResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: SearchInstructorResult[];
|
||||
}
|
||||
|
||||
export interface addinstructorCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface InstructorInfo {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
first_name: string | null;
|
||||
last_name: string | null;
|
||||
avatar_url: string | null;
|
||||
}
|
||||
|
||||
export interface listinstructorCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
user_id: number;
|
||||
is_primary: boolean;
|
||||
user: User;
|
||||
user: InstructorInfo;
|
||||
}[];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue