All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.hdis.framework.security.response.SecurityResponse Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package tech.hdis.framework.security.response;

/**
 * 返回值
 *
 * @author 黄志文
 */
public class SecurityResponse {

    /**
     * 返回码
     */
    private String code;
    /**
     * 附带消息
     */
    private String message;

    /**
     * 返回码组装
     */
    /**
     * 返回码组装
     * @param code 返回码
     * @param message 返回码所代表的消息
     * @return SecurityResponse
     */
    public static SecurityResponse getInstance(String code, String message) {
        SecurityResponse securityResponse = new SecurityResponse();
        securityResponse.setCode(code);
        securityResponse.setMessage(message);
        return securityResponse;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy