thêm giao diện quản lý thuyền
This commit is contained in:
122
controller/typings.d.ts
vendored
122
controller/typings.d.ts
vendored
@@ -9,6 +9,20 @@ declare namespace Model {
|
||||
token?: string;
|
||||
}
|
||||
|
||||
interface ProfileResponse {
|
||||
id?: string;
|
||||
email?: string;
|
||||
metadata?: ProfileMetadata;
|
||||
}
|
||||
|
||||
interface ProfileMetadata {
|
||||
frontend_thing_id?: string;
|
||||
frontend_thing_key?: string;
|
||||
full_name?: string;
|
||||
phone_number?: string;
|
||||
user_type?: string;
|
||||
}
|
||||
|
||||
interface GPSResponse {
|
||||
lat: number;
|
||||
lon: number;
|
||||
@@ -336,4 +350,112 @@ declare namespace Model {
|
||||
thing_id: string;
|
||||
time: number;
|
||||
}
|
||||
|
||||
interface ShipBodyRequest {
|
||||
name?: string;
|
||||
reg_number?: string;
|
||||
imo_number?: string;
|
||||
mmsi_number?: string;
|
||||
thing_id?: string;
|
||||
ship_type?: number;
|
||||
owner_id?: string;
|
||||
home_port?: number;
|
||||
ship_length?: number;
|
||||
ship_power?: number;
|
||||
ship_group_id?: string;
|
||||
fishing_license_number?: string;
|
||||
fishing_license_expiry_date?: Date;
|
||||
}
|
||||
interface ShipResponse {
|
||||
ships?: Ship[];
|
||||
}
|
||||
|
||||
interface Ship {
|
||||
id?: string;
|
||||
thing_id?: string;
|
||||
owner_id?: string;
|
||||
name?: string;
|
||||
ship_type?: number;
|
||||
home_port?: number;
|
||||
ship_length?: number;
|
||||
ship_power?: number;
|
||||
reg_number?: string;
|
||||
imo_number?: string;
|
||||
mmsi_number?: string;
|
||||
fishing_license_number?: string;
|
||||
fishing_license_expiry_date?: Date;
|
||||
province_code?: string;
|
||||
ship_group_id?: string;
|
||||
created_at?: Date;
|
||||
updated_at?: Date;
|
||||
}
|
||||
|
||||
interface PortResponse {
|
||||
total?: number;
|
||||
offset?: number;
|
||||
limit?: number;
|
||||
ports?: Port[];
|
||||
}
|
||||
|
||||
interface Port {
|
||||
id?: number;
|
||||
name?: string;
|
||||
type?: Type;
|
||||
classification?: Classification;
|
||||
position_point?: string;
|
||||
has_origin_confirm?: boolean;
|
||||
province_code?: string;
|
||||
updated_at?: Date;
|
||||
is_deleted?: boolean;
|
||||
}
|
||||
|
||||
enum Classification {
|
||||
ChưaXácĐịnh = "Chưa xác định",
|
||||
I = "I",
|
||||
Ii = "II",
|
||||
}
|
||||
|
||||
enum Type {
|
||||
Fishing = "fishing",
|
||||
}
|
||||
|
||||
// Groups
|
||||
interface GroupResponse {
|
||||
total?: number;
|
||||
level?: number;
|
||||
name?: string;
|
||||
groups?: Group[];
|
||||
}
|
||||
|
||||
interface Group {
|
||||
id?: string;
|
||||
name?: string;
|
||||
owner_id?: string;
|
||||
description?: string;
|
||||
metadata?: GroupMetadata;
|
||||
level?: number;
|
||||
path?: string;
|
||||
children?: Child[];
|
||||
created_at?: Date;
|
||||
updated_at?: Date;
|
||||
}
|
||||
|
||||
interface Child {
|
||||
id?: string;
|
||||
name?: string;
|
||||
owner_id?: string;
|
||||
parent_id?: string;
|
||||
description?: string;
|
||||
metadata?: GroupMetadata;
|
||||
level?: number;
|
||||
path?: string;
|
||||
children?: Child[];
|
||||
created_at?: Date;
|
||||
updated_at?: Date;
|
||||
}
|
||||
|
||||
interface GroupMetadata {
|
||||
code?: string;
|
||||
short_name?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user