46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
package ${packageName}.bo;
|
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.Data;
|
|
import java.util.Date;
|
|
import javax.validation.constraints.*;
|
|
|
|
|
|
#foreach ($import in $importList)
|
|
import ${import};
|
|
#end
|
|
|
|
/**
|
|
* ${functionName}添加对象 ${tableName}
|
|
*
|
|
* @author ${author}
|
|
* @date ${datetime}
|
|
*/
|
|
@Data
|
|
@ApiModel("${functionName}添加对象")
|
|
public class ${ClassName}AddBo {
|
|
|
|
#foreach ($column in $columns)
|
|
#if($column.isInsert && $column.isPk!=1)
|
|
|
|
/** $column.columnComment */
|
|
@ApiModelProperty("$column.columnComment")
|
|
#if($column.isRequired==1)
|
|
#if($column.javaType == 'String')
|
|
@NotBlank(message = "$column.columnComment不能为空")
|
|
#else
|
|
@NotNull(message = "$column.columnComment不能为空")
|
|
#end
|
|
#end
|
|
private $column.javaType $column.javaField;
|
|
#end
|
|
#end
|
|
#if($table.sub)
|
|
|
|
/** $table.subTable.functionName信息 */
|
|
@ApiModelProperty("$table.subTable.functionName")
|
|
private List<${subClassName}> ${subclassName}List;
|
|
#end
|
|
}
|