代码生成器优化,增加api参数部分

This commit is contained in:
kuang.yife 2023-12-16 15:22:01 +08:00
parent 5579df31bb
commit 2a3e6bd6e7
1 changed files with 4 additions and 1 deletions

View File

@ -3,8 +3,9 @@ package ${packageName}.domain;
#foreach ($import in $importList) #foreach ($import in $importList)
import ${import}; import ${import};
#end #end
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
@ -26,6 +27,7 @@ import com.ruoyi.common.core.domain.TreeEntity;
#set($Entity="TreeEntity") #set($Entity="TreeEntity")
#end #end
@Data @Data
@ApiModel(value = "${functionName}")
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@TableName(value = "${tableName}") @TableName(value = "${tableName}")
public class ${ClassName} extends ${Entity} public class ${ClassName} extends ${Entity}
@ -49,6 +51,7 @@ public class ${ClassName} extends ${Entity}
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
#else #else
@Excel(name = "${comment}") @Excel(name = "${comment}")
@ApiModelProperty(value = "${comment}")
#end #end
#end #end
private $column.javaType $column.javaField; private $column.javaType $column.javaField;