package com.animal.common; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * 接口统一返回包装类 */ @Data @NoArgsConstructor @AllArgsConstructor public class Result { private String code; private String msg; private Object data; public static Result success() { return new Result(Constants.CODE_200, "", null); } public static Result success(Object data) { return new Result(Constants.CODE_200, "", data); } public static Result error(String code, String msg) { return new Result(code, msg, null); } public static Result error() { return new Result(Constants.CODE_500, "系统错误", null); } }


lisansiwu LV2
8月30日
xiaoyumao LV2
8月29日
vincemokea LV6
8月25日
ttg2025 LV3
8月23日
微信网友_7619991117369344 LV3
8月22日
gaojohn933 LV5
8月22日
康日澜 LV10
8月3日
jinxinquq
7月14日
暂无贡献等级
wudi6666
7月12日
暂无贡献等级
QZY250710
7月10日
暂无贡献等级