package ${packageName}.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
#foreach ($import in $importList)
import ${import};
#end
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * ${functionName}添加参数VO
 *
 * @author ${author}
 * @since ${datetime}
 */
@Data
@ApiModel(value = "${functionName}添加参数", description = "新增${functionName}信息的请求参数")
public class ${ClassName}AddVo {

#foreach ($column in $columns)
#if(!$column.superColumn && !$column.pk)
#if($column.insert == "1")
    /**
     * $column.columnComment
     */
#if($column.javaType == 'Date')
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
#if($column.isRequired == "1")
    @NotNull(message = "${column.columnComment}不能为空")
    @ApiModelProperty(value = "$column.columnComment", required = true, example = "2024-01-01 00:00:00", notes = "$column.columnComment")
#else
    @ApiModelProperty(value = "$column.columnComment", example = "2024-01-01 00:00:00", notes = "$column.columnComment")
#end
#elseif($column.javaType == 'String')
#if($column.isRequired == "1")
    @NotBlank(message = "${column.columnComment}不能为空")
    @ApiModelProperty(value = "$column.columnComment", required = true, example = "示例${column.columnComment}", notes = "$column.columnComment")
#else
    @ApiModelProperty(value = "$column.columnComment", example = "示例${column.columnComment}", notes = "$column.columnComment")
#end
#elseif($column.javaType == 'Integer')
#if($column.isRequired == "1")
    @NotNull(message = "${column.columnComment}不能为空")
    @ApiModelProperty(value = "$column.columnComment", required = true, example = "1", notes = "$column.columnComment")
#else
    @ApiModelProperty(value = "$column.columnComment", example = "1", notes = "$column.columnComment")
#end
#elseif($column.javaType == 'Long')
#if($column.isRequired == "1")
    @NotNull(message = "${column.columnComment}不能为空")
    @ApiModelProperty(value = "$column.columnComment", required = true, example = "1", notes = "$column.columnComment")
#else
    @ApiModelProperty(value = "$column.columnComment", example = "1", notes = "$column.columnComment")
#end
#else
#if($column.isRequired == "1")
    @NotNull(message = "${column.columnComment}不能为空")
    @ApiModelProperty(value = "$column.columnComment", required = true, notes = "$column.columnComment")
#else
    @ApiModelProperty(value = "$column.columnComment", notes = "$column.columnComment")
#end
#end
    private $column.javaType $column.javaField;

#end
#end
#end
} 