package com.bcxin.ars.dto;

import com.abcxin.smart.validator.annotation.DataChangeAnnotation;
import lombok.Data;

import java.io.Serializable;

/**
 * @author linqinglin
 * @date 2020/05/08 0008 15:59
 */
@Data
public class DataChangeDto implements Serializable {

    private static final long serialVersionUID = 2220082166930076300L;

    private DataChangeAnnotation annotation;

    private Object oldValue;

    private Object newValue;

    private String methodName;

    private String entityClazz;

    private String tableName;

    private String fieldName;

    public DataChangeDto(){}

    public DataChangeDto(DataChangeAnnotation annotation,Object oldValue,Object newValue,String methodName,String entityClazz,String tableName,String fieldName){
        this.annotation = annotation;
        this.oldValue = oldValue;
        this.newValue = newValue;
        this.methodName = methodName;
        this.entityClazz = entityClazz;
        this.tableName = tableName;
        this.fieldName = fieldName;
    }
}
