liurunyu
2025-09-01 cb9caeaf939dbc10522f395647ca7fefb3a8634b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.dy.pipIrrWechat.video;
 
import com.alibaba.fastjson2.annotation.JSONField;
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
import com.dy.pipIrrGlobal.voVi.VoCamera;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
 
/**
 * @Author: liurunyu
 * @Date: 2025/8/14 13:59
 * @Description
 */
@Data
@JsonPropertyOrder({
        "id", "devNo", "name",
        "lng","lat", "accessToken"
})
public class VoVideo {
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long id ;
    /**
     * 摄像机序列号
     */
    public String devNo;
 
    /**
     * 视频站名称
     */
    public String name;
 
    /**
     * 经度
     */
    public Double lng;
 
    /**
     * 纬度
     */
    public Double lat;
 
    public String accessToken ;
 
    public void from(VoCamera vo , String accessToken){
        this.id = vo.id ;
        this.devNo = vo.devNo ;
        this.name = vo.name ;
        this.lng = vo.lng ;
        this.lat = vo.lat ;
        this.accessToken = accessToken ;
    }
}