package com.yunzhupaas.onlinedev.model.log;

import com.yunzhupaas.base.model.VisualLogModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 数据日志表单
 *
 * @author 云筑产品开发平台组
 * @version v5.1.0
 * @date 2025/8/27
 */
@Data
@Builder
@Schema(description = "数据日志表单")
public class VisualLogForm {

    @Schema(description = "模板id")
    private String modelId;

    @Schema(description = "数据id")
    private String dataId;

    @Schema(description = "日志类型:0-新建,1-编辑")
    private Integer type;

    @Schema(description = "修改前数据")
    private Map<String, Object> oldData;

    @Schema(description = "修改后数据")
    private Map<String, Object> newData;

    @Schema(description = "日志列表（直接传入时使用）")
    private List<VisualLogModel> listLog;
}
