package org.matrix.database.vo;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author mry
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonPropertyOrder(value = {"message", "data"})
public class CommonResultObj<T> {

    private T data;

    private String message;

    public CommonResultObj(T data) {
        this.data = data;
        this.message = "no message";
    }

}
