cập nhật modal CRUD thuyền viên trong trip
This commit is contained in:
31
controller/typings.d.ts
vendored
31
controller/typings.d.ts
vendored
@@ -154,6 +154,37 @@ declare namespace Model {
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
}
|
||||
|
||||
// TripCrew Request Body
|
||||
interface NewTripCrewAPIRequest {
|
||||
trip_id: string;
|
||||
personal_id: string;
|
||||
role: "captain" | "crew";
|
||||
}
|
||||
interface UpdateTripCrewAPIRequest {
|
||||
trip_id: string;
|
||||
personal_id: string;
|
||||
role: "captain" | "crew";
|
||||
note: string;
|
||||
}
|
||||
interface NewCrewAPIRequest {
|
||||
personal_id: string;
|
||||
name: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
birth_date: Date;
|
||||
note: string;
|
||||
address: string;
|
||||
}
|
||||
interface UpdateCrewAPIRequest {
|
||||
name: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
birth_date: Date;
|
||||
//note: string;
|
||||
address: string;
|
||||
}
|
||||
|
||||
// Chi phí chuyến đi
|
||||
interface TripCost {
|
||||
type: string;
|
||||
|
||||
Reference in New Issue
Block a user