cn.opencodes.framework.tools.vo.R Maven / Gradle / Ivy
package cn.opencodes.framework.tools.vo;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* 返回数据
* @author HJ
*/
public class R implements Serializable{
private static final long serialVersionUID = 1L;
private static final String OK = "OK";
@ApiModelProperty(value = "执行码: 200值成功,其他值失败")
private int code = CoreConst.HttpStatus.OK.value();
@ApiModelProperty(value = "消息内容")
private String msg = R.OK;
@ApiModelProperty(value = "响应数据")
private T data;
//**********************构造成功对象*****************************//
public static R> ok(String msg) {
R
© 2015 - 2025 Weber Informatics LLC | Privacy Policy