摘要: 使用:return result ? success(true) : error(StatusCode.RESOURCE_UPDATE_FAILED); 阅读全文
posted @ 2018-05-06 20:27 ~清风煮酒~ 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: public class BaseRuntimeException extends RuntimeException { private final int code; public BaseRuntimeException(StatusCode statusCode) { this(statusCode.getStatusCode(), statusCode.... 阅读全文
posted @ 2018-05-06 20:26 ~清风煮酒~ 阅读(700) 评论(0) 推荐(0) 编辑