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; } }