package com.jsowell.thirdparty.camera.common;


import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 相机系统通用回复
 *
 * @author Lemon
 * @Date 2023/12/5 11:12:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CameraCommonResult {

    /**
     * 回复状态
     */
    private Integer state;

    /**
     * 错误信息
     */
    @JSONField(name = "err_msg")
    private String errMsg;

    /**
     * 无指令成功响应
     * @param
     * @return
     */
    public CameraCommonResult successResponse() {
        return new CameraCommonResult(200, "all done");
    }
}
