vince
2025-02-17 320350eb18e32a9a008c4e6409441730732e2e97
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
package com.fzzy.gateway.data;
 
import lombok.Data;
 
@Data
public class BaseResp {
 
    public static int CODE_200 = 200;
    public static int CODE_500 = 500;
 
    private int code = CODE_200;
 
    private String msg = "成功";
 
    private String data;
 
    /**
     * 封装需要的数据
     */
    private Object obj;
 
 
    public BaseResp() {
    }
 
    public BaseResp(String data) {
        this.data = data;
    }
 
    public BaseResp(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }
}