Air
2024-11-04 cb3b3801255082c53145bd752230339eae5d3e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
    }
}