fill data API CrewList, FishingTools, TripCost
This commit is contained in:
19
controller/typings.d.ts
vendored
19
controller/typings.d.ts
vendored
@@ -121,19 +121,32 @@ declare namespace Model {
|
||||
}
|
||||
// Thuyền viên
|
||||
interface TripCrews {
|
||||
TripID: string;
|
||||
PersonalID: string;
|
||||
role: string;
|
||||
joined_at: Date;
|
||||
left_at: Date | null;
|
||||
note: string | null;
|
||||
Person: TripCrewPerson;
|
||||
}
|
||||
interface TripCrewPerson {
|
||||
personal_id: string;
|
||||
name: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
birth_date: Date; // ISO string (có thể chuyển sang Date nếu parse trước)
|
||||
note: string;
|
||||
address: string;
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
}
|
||||
// Chi phí chuyến đi
|
||||
interface TripCost {
|
||||
type: string;
|
||||
unit: string;
|
||||
amount: string;
|
||||
total_cost: string;
|
||||
cost_per_unit: string;
|
||||
amount: number;
|
||||
total_cost: number;
|
||||
cost_per_unit: number;
|
||||
}
|
||||
// Thông tin mẻ lưới
|
||||
interface FishingLog {
|
||||
|
||||
Reference in New Issue
Block a user