钟日健
2022-05-11 019af11adfc87d3e19c8cb7d5fe14069202d4f49
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.springblade.modules.FTP;
 
import lombok.Data;
import org.springblade.modules.system.entity.User;
 
import java.util.List;
 
/**
 * 响应对象
 * @author zhongrj
 * @since 2022-04-26
 */
@Data
public class Result {
    private Integer code;
 
    private Long userId;
 
    private String msg;
 
    private User user;
 
    public Result(Integer code, String msg, List<Result> data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
 
    private List<Result> data;
 
    public Result(Integer code, String msg, User user) {
        this.code = code;
        this.msg = msg;
        this.user = user;
    }
 
    public Result() {
    }
 
    public Result(Integer code, Long userId, String msg) {
        this.code = code;
        this.userId = userId;
        this.msg = msg;
    }
 
    public Result(Integer code, Long userId, String msg, User user) {
        this.code = code;
        this.userId = userId;
        this.msg = msg;
        this.user = user;
    }
}