All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.updatevo.ftl Maven / Gradle / Ivy

package ${packageName}.vo.${moduleName}.${bizName};

import com.lframework.starter.web.vo.BaseVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
<#if importPackages??>
    <#list importPackages as p>
import ${p};
    

import java.io.Serializable;

@Data
public class Update${className}Vo implements BaseVo, Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ${keys[0].description}
     */
<#if keys[0].type == 'String'>
    @NotBlank(message = "${keys[0].name}不能为空!")
<#else>
    @NotNull(message = "${keys[0].name}不能为空!")

    private ${keys[0].type} ${keys[0].name};

<#list columns as column>
    /**
     * ${column.description}
     */
    <#if column.type != 'String'>
    @TypeMismatch(message = "${column.description}格式有误!")
    
    <#if column.required>
    @${column.validateAnno}(message = "${column.validateMsg}${column.description}!")
        <#if column.fixEnum>
    @IsEnum(message = "${column.validateMsg}${column.description}!", enumClass = ${column.type}.class)
        
    
    <#if column.regularExpression??>
    @Pattern(regexp = "${column.regularExpression}", message = "${column.description}格式有误!")
    
    private <#if column.fixEnum>${column.enumCodeType}<#else>${column.type} ${column.name};


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy