package com.malk.suodisi.server;

import com.malk.server.common.McException;
import com.malk.server.common.VenR;
import lombok.Data;

/**
 * 返回数据_阿里云
 */
@Data
public class XYR<T> extends VenR {

    private boolean result;

    private String code;

    private String message;

    private String description;

    private T data;

    /**
     * 断言错误信息
     */
    @Override
    public void assertSuccess() {
        McException.assertException(!result, code, message + " >>> " + description, "象屿统一待办");
    }
}
