Files
erqi-web/src/components/Map/protoFile/message.proto
2025-12-24 18:19:05 +08:00

29 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
//option java_package = "com.yuhuan.point.proto";
option java_outer_classname = "BoatPoint";
message GetBoatPointReq {
string type = 1; // 信息类型 data为 数据类型 heartbeat 为心跳
string area = 2;// 坐标点 区域 4个坐标度 左经度,下纬度,右经度,上纬度 以英文逗号隔开
}
message BoatPointList {
repeated GetBoatPointResp boatPointList = 1; // 在线点位列表
repeated GetBoatPointResp offlineBoatList = 2; // 离线设备列表
string respType = 3; // 响应类型 data 为数据类型 heartbeat 为心跳
}
message GetBoatPointResp {
string deviceType = 1; // 设备类型
string terminalCode = 2; // 设备编号
string boatId = 3; //船Id
string boatName = 4; //船名
double longitude = 5; // 经度
double latitude = 6; // 纬度
double sog = 7; // 航速
double cog = 8; // 航向
string gpsTime = 9; // gps时间 yyyy-MM-dd HH:mm:ss
string boatType = 10; // 船舶类型
string name = 11;
double lenth = 12; // 船长
}