package ${packageName}.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
#foreach ($column in $columns)
#if ($column.javaType.equals("BigDecimal"))
import java.math.BigDecimal;
#end
#if ($column.javaType.equals("Date"))
import java.util.Date;
#end
#end

@Data
@ApiModel("${functionName}实体")
public class ${EntityName} implements Serializable {

    private static final long serialVersionUID = 1L;

 #foreach ($column in $columns)
    #if($column.isPk)
    @TableId(value="${column.columnName}", type= IdType.AUTO)
    #end
    @ApiModelProperty(value = "${column.columnComment}")
    private ${column.javaType} ${column.javaField};

 #end
}