template.DTO.vm Maven / Gradle / Ivy
package ${package}.modules.${moduleName}.dto;
import com.nb6868.onex.common.pojo.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
#if(${hasBigDecimal})
import java.math.BigDecimal;
#end
#if(${hasJson})
import cn.hutool.json.JSONObject;
#end
/**
* ${comments}
*
* @author ${author} ${email}
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "${comments}")
public class ${className}DTO extends BaseDTO {
private static final long serialVersionUID = 1L;
#foreach ($column in $columns)
#if($column.columnName != 'id' && $column.columnName != 'creator' && $column.columnName != 'create_id'
&& $column.columnName != 'create_date' && $column.columnName != 'create_time'
&& $column.columnName != 'updater' && $column.columnName != 'update_id'
&& $column.columnName != 'update_date' && $column.columnName != 'update_time'
&& $column.columnName != 'del_flag' && $column.columnName != 'deleted')
@Schema(description = "$column.comments")
private $column.attrType $column.attrname;
#end
#end
}