123456789101112131415161718192021222324252627282930313233343536 |
- package ${package};
- ${isPage?string("import com.xjrsoft.common.page.PageInput;","import com.xjrsoft.common.page.ListInput;")}
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import org.springframework.format.annotation.DateTimeFormat;
- import java.time.LocalTime;
- import java.time.LocalDateTime;
- import java.math.BigDecimal;
- /**
- * @title: ${tableComment}
- * @Author ${author}
- * @Date: ${date}
- * @Version 1.0
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- public class ${entityClass}${isPage?string("Page","List")}Dto ${isPage?string("extends PageInput","extends ListInput")} {
- <#--属性遍历-->
- <#list fields as field>
- /**
- * ${(field.fieldComment)!''}
- */
- @ApiModelProperty("${(field.fieldComment)!''}")
- <#if field.fieldType == "LocalDateTime" >
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- </#if>
- private ${field.fieldType} ${field.fieldName};
- </#list>
- }
|