摘要: 参考 springboot 统一json返回格式 代码 自定义响应类 @Data public class ResponseBody<T> { public static final Integer SUCCESS = 0; public static final Integer ERROR = 1 阅读全文
posted @ 2021-02-16 11:47 夏秋初 阅读(976) 评论(0) 推荐(0)
摘要: 代码 import lombok.Data; @Data public class JsonResult<T> { public static Integer ERROR_CODE = 1; public static Integer SUCCESS_CODE = 0; public static 阅读全文
posted @ 2021-02-16 11:01 夏秋初 阅读(503) 评论(0) 推荐(0)