fei.wang
2025-04-18 8c63366bfaa0b5f6e0db00abbabe0e770fc0d8dc
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
package com.hxzkmonitor.util;
 
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
 
@Data
@NoArgsConstructor
@AllArgsConstructor
public class result<T> {
    protected Integer code;
    protected String msg;
    protected T data;
 
    /*声明其它构造器*/
    public result(String msg, T data){
        this.code=0;
        this.msg=msg;
        this.data=data;
    }
    public result(T data){
        this.code=0;
        this.msg="";
        this.data=data;
    }
}