feat:zlb接口
This commit is contained in:
29
src/main/java/com/xiang/common/pojo/TrackPoint.java
Normal file
29
src/main/java/com/xiang/common/pojo/TrackPoint.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.xiang.common.pojo;
|
||||
|
||||
/**
|
||||
* @Author: xiang
|
||||
* @Date: 2026-05-07 15:57
|
||||
*/
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 轨迹点类
|
||||
*/
|
||||
@Data
|
||||
public class TrackPoint {
|
||||
public int x, y, t;
|
||||
public String type;
|
||||
|
||||
public TrackPoint(int x, int y, int t, String type) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.t = t;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("{\"x\":%d,\"y\":%d,\"t\":%d,\"type\":\"%s\"}", x, y, t, type);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user