CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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
package com.ld.igds.camera.data;
 
import lombok.Data;
 
@Data
public class ApiCameraResp {
 
 
    public static String CODE_SUCCESS = "SUCCESS";
    public static String CODE_ERROR = "ERROR";
 
    private String code = CODE_SUCCESS;
 
    private String msg;
 
    private String fileName;
 
    /**
     * 播放地址
     */
    private String playAddr;
 
    private String playIframe;
 
    /**
     * 视频流类型:hik、rtsp、rtmp、hls、ws、flv
     */
    private String protocol;
 
    public ApiCameraResp() {
    }
 
    public ApiCameraResp(String playAddr) {
        this.code = CODE_SUCCESS;
        this.msg = "成功";
        this.playAddr = playAddr;
    }
 
    public ApiCameraResp(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public ApiCameraResp(String code, String playAddr, String msg) {
        this.code = code;
        this.msg = msg;
        this.playAddr = playAddr;
    }
 
}