package com.ruoyi.integration.barrierGate.model; import lombok.Data; /** * @author zhibing.pu * @Date 2024/9/5 11:29 */ @Data public class BaseResponse { private Integer code; private String msg; private T data; public static BaseResponse ok(){ return ok(new Object()); } public static BaseResponse ok(T data){ BaseResponse baseResponse = new BaseResponse(); baseResponse.setCode(0); baseResponse.setData(data); baseResponse.setMsg("成功"); return baseResponse; } }