1
zj
17 hours ago f658569891db433854221b80f0a9fa99608cff64
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
/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许,不可做商业用途!
 *
 * 版权所有,侵权必究!
 */
 
package com.yami.trading.common.response;
 
import lombok.Data;
 
import java.io.Serializable;
import java.util.Objects;
 
@Data
public class ServerResponse<T> implements Serializable {
 
 
    private int code;
 
    private String msg;
 
    private T obj;
 
    public boolean isSuccess(){
        return Objects.equals(ResponseCode.SUCCESS, this.code);
    }
 
 
}