fei.wang
2025-04-18 321a74059773cfecc01d6313f7c2e2d45545d6d3
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
package com.hxzkappboot.util;
 
 
import lombok.Getter;
import lombok.Setter;
 
@Getter
@Setter
public class R<T> {
    private Integer code;
    private String msg;
    private String token;
    private Integer online;
    private Integer offline;
    private T data;
 
    public R(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public R(StatusCode statusCode) {
        this.code = statusCode.getCode();
        this.msg = statusCode.getMsg();
    }
 
    public R(Integer code, String msg, T data,String token) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.token=token;
    }
}