feat: add course approval history endpoint for instructors to view rejection reasons and approval timeline
This commit is contained in:
parent
11c747edab
commit
832a8f5067
3 changed files with 106 additions and 0 deletions
|
|
@ -390,3 +390,31 @@ export interface GetEnrolledStudentDetailResponse {
|
|||
data: EnrolledStudentDetailData;
|
||||
}
|
||||
|
||||
// Course Approval History Types
|
||||
export interface ApprovalHistoryItem {
|
||||
id: number;
|
||||
action: string;
|
||||
comment: string | null;
|
||||
created_at: Date;
|
||||
submitter: {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
} | null;
|
||||
reviewer: {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export interface GetCourseApprovalHistoryResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: {
|
||||
course_id: number;
|
||||
course_title: { th: string; en: string };
|
||||
current_status: string;
|
||||
approval_history: ApprovalHistoryItem[];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue