
org.swiftboot.web.result.HttpResponseWithDeprecation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swiftboot-web Show documentation
Show all versions of swiftboot-web Show documentation
Basic module for enterprise web applications
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