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

org.swiftboot.web.result.HttpResponseWithDeprecation Maven / Gradle / Ivy

There is a newer version: 2.4.7
Show newest version
package org.swiftboot.web.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.swiftboot.web.exception.ErrMessageException;
import org.swiftboot.web.exception.ErrorCodeSupport;

import java.io.Serializable;

/**
 * 正确的返回值,但是提示接口已经废弃
 *
 * @author swiftech
 **/
@ApiModel("接口废弃的返回值,标识接口已废弃")
public class HttpResponseWithDeprecation extends HttpResponse {

    public HttpResponseWithDeprecation() {
        super.msg = "This API is deprecated";
    }

    public HttpResponseWithDeprecation(T result) {
        super(result);
        super.msg = "This API is deprecated";
    }

    public HttpResponseWithDeprecation(ErrMessageException errMsgException) {
        super(errMsgException);
        super.msg = "This API is deprecated";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy