| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 | | package com.ruoyi.utils.result; |  |   |  | import lombok.AllArgsConstructor; |  | import lombok.Data; |  | import lombok.NoArgsConstructor; |  |   |  | /** |  |  * @author 11441 |  |  * 返回结果集 |  |  */ |  | @Data |  | @AllArgsConstructor |  | @NoArgsConstructor |  | public class Results { |  |     private Integer code; |  |     private String msg; |  |     private Object data; |  |   |  |     public static Results succeed() { |  |         return new Results(Constants.CODE_200, "操作成功!", null); |  |     } |  |   |  |     public static Results succeed(Object data) { |  |         return new Results(Constants.CODE_200, "操作成功!", data); |  |     } |  |   |  |     public static Results error(String msg) { |  |         return new Results(Constants.CODE_500, msg, null); |  |     } |  | } | 
 |