package com.crm.ucard.model;

import lombok.Data;

import java.io.Serializable;

/**
 * @author: test
 * @date: 2023/12/2 15:20
 * @describe:
 */
@Data
public class ResultData<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private boolean success = true;

    private int code = 200;

    private String msg = "Success";

    private T data;


    public boolean isSuccess() {
        return code == 200;
    }

}
