com.aliyun.dc.opplat.sdk.api.response.BaseOpplatResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dc-opplat-sdk-java Show documentation
Show all versions of dc-opplat-sdk-java Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/**
* Alipay.com Inc. Copyright (c) 2004-2020 All Rights Reserved.
*/
package com.aliyun.dc.opplat.sdk.api.response;
import java.io.Serializable;
import java.util.Map;
import com.aliyun.dc.opplat.sdk.api.internal.mapping.ApiField;
/**
* API基础响应信息。
*
* @author changlei.qcl
* @version $Id: OpOplatResponse.java, v 0.1 2020年07月28日 2:27 PM changlei.qcl Exp $
*/
public abstract class BaseOpplatResponse implements Serializable {
private static final long serialVersionUID = -328991347817116476L;
@ApiField("code")
private String code;
@ApiField("msg")
private String msg;
@ApiField("status")
private String status;
private Map params;
/**
* Getter method for property code.
*
* @return property value of code
*/
public String getCode() {
return code;
}
/**
* Setter method for property code.
*
* @param code value to be assigned to property code
*/
public void setCode(String code) {
this.code = code;
}
/**
* Getter method for property msg.
*
* @return property value of msg
*/
public String getMsg() {
return msg;
}
/**
* Setter method for property msg.
*
* @param msg value to be assigned to property msg
*/
public void setMsg(String msg) {
this.msg = msg;
}
/**
* Getter method for property body.
*
* @return property value of status
*/
public String getStatus() {
return status;
}
/**
* Setter method for property body.
*
* @param status value to be assigned to property status
*/
public void setStatus(String status) {
this.status = status;
}
/**
* Getter method for property params.
*
* @return property value of params
*/
public Map getParams() {
return params;
}
/**
* Setter method for property params.
*
* @param params value to be assigned to property params
*/
public void setParams(Map params) {
this.params = params;
}
/**
* 结果是否成功
*
* @return
*/
public boolean isSuccess() {
return "0000".equals(code);
}
@Override
public String toString() {
return "BaseOpplatResponse(" +
"code='" + code + '\'' +
", msg='" + msg + '\'' +
", status='" + status + '\'' +
", params=" + params +
")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy