package com.xdap.self_development.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

// 处理复杂错误信息返回
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyResponse {
    // 报错标识
    private boolean flag;
    // 报错信息
    private String message;
    // 数据
    private String data;


    // 模板导入的错误列表
    private List<String> errors;
    // 模板导入的已导入模板
    private StringBuilder hasImported;

    public MyResponse(Boolean flag, List<String> errors, StringBuilder hasImported) {
        this.flag = flag;
        this.errors = errors;
        this.hasImported = hasImported;
    }
}
