package com.nova.sankuai.domain.api.yinsheng.response;
|
|
import com.nova.sankuai.domain.api.yinsheng.YinShengFastProtocolUtils;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
* 银盛基础响应结果
|
*
|
* @author ephemeral
|
* @date 2022/7/9 16:55
|
*/
|
@Data
|
@ApiModel(value = "快捷协议支付响应参数")
|
public class BaseResponse {
|
|
@ApiModelProperty(value = "响应代码")
|
private String code;
|
|
@ApiModelProperty(value = "响应代码描述")
|
private String msg;
|
|
/**
|
* 检查响应状态码是否成功
|
*
|
* @return
|
*/
|
public boolean isSuccess() {
|
String code = this.getCode();
|
if (!YinShengFastProtocolUtils.STATUS_SUCCESS.equals(code)) {
|
return false;
|
}
|
return true;
|
}
|
}
|