feat: 更新配置文件和代码,优化Swagger文档和负载均衡支持
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.meowrain.aioj.backend.framework.core.web;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@@ -40,6 +41,7 @@ public class Result<T> implements Serializable {
|
||||
* 返回是否是正确响应
|
||||
* @return boolean
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean isSuccess() {
|
||||
return SUCCESS_CODE.equals(code);
|
||||
}
|
||||
@@ -48,6 +50,7 @@ public class Result<T> implements Serializable {
|
||||
* 返回是否是错误响应
|
||||
* @return boolean
|
||||
*/
|
||||
@JsonIgnore
|
||||
public boolean isFail() {
|
||||
return !isSuccess();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user