2022-11-08 15:51:08 +08:00
|
|
|
package ${package}.${moduleName}.vo;
|
|
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
2024-07-30 10:52:15 +08:00
|
|
|
import java.util.List;
|
2022-11-08 15:51:08 +08:00
|
|
|
import lombok.Data;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import ${package}.framework.common.utils.DateUtils;
|
|
|
|
|
<#list importList as i>
|
|
|
|
|
import ${i!};
|
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
|
|
/**
|
2024-07-30 10:52:15 +08:00
|
|
|
* ${tableComment}
|
|
|
|
|
*
|
|
|
|
|
* @author ${author} ${email!}
|
|
|
|
|
* <a href="https://maku.net">MAKU</a>
|
|
|
|
|
*/
|
2022-11-08 15:51:08 +08:00
|
|
|
@Data
|
|
|
|
|
@Schema(description = "${tableComment}")
|
|
|
|
|
public class ${ClassName}VO implements Serializable {
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
<#list fieldList as field>
|
|
|
|
|
<#if field.fieldComment!?length gt 0>
|
|
|
|
|
@Schema(description = "${field.fieldComment}")
|
|
|
|
|
</#if>
|
2024-07-30 10:52:15 +08:00
|
|
|
<#if field.attrType == 'LocalDateTime'>
|
2022-11-08 15:51:08 +08:00
|
|
|
@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
|
|
|
|
|
</#if>
|
|
|
|
|
private ${field.attrType} ${field.attrName};
|
|
|
|
|
|
|
|
|
|
</#list>
|
2024-07-30 10:52:15 +08:00
|
|
|
<#list subs as sub>
|
|
|
|
|
@Schema(description = "${sub.tableTitle}")
|
|
|
|
|
<#if sub.mainRelation ==1>
|
|
|
|
|
private ${sub.ClassName}VO ${sub.className};
|
|
|
|
|
<#else>
|
|
|
|
|
private List<${sub.ClassName}VO> ${sub.className};
|
|
|
|
|
</#if>
|
2022-11-08 15:51:08 +08:00
|
|
|
|
2024-07-30 10:52:15 +08:00
|
|
|
</#list>
|
|
|
|
|
<#if hasTree>
|
|
|
|
|
@Schema(description = "是否有子节点")
|
|
|
|
|
private Boolean hasChild;
|
|
|
|
|
</#if>
|
2022-11-08 15:51:08 +08:00
|
|
|
}
|