feat(codegen): 代码生成新增 AI 配置推断并迁移模板资源
- 模板与外部文件移至 resources/codegen、excel、ip2region - 新增 AI 配置推断接口、表单与返回对象 - 字典项与菜单 SQL、IP 工具、日志配置调整 - docker-compose 与英文 README 更新 - 版本 4.11.0
This commit is contained in:
1 parent
9fc49583d9
commit
607b6c7bb3
40 files changed
+313
-85
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package ${packageName}.${moduleName}.${subpackageName};
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
#if(${hasLocalDateTime})
|
||||
import java.time.LocalDateTime;
|
||||
#end
|
||||
#if(${hasBigDecimal})
|
||||
import java.math.BigDecimal;
|
||||
#end
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import ${packageName}.common.base.BaseEntity;
|
||||
|
||||
/**
|
||||
* $!{businessName}实体对象
|
||||
*
|
||||
* @author ${author}
|
||||
* @since ${date}
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("${tableName}")
|
||||
public class ${entityName} extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
#foreach($fieldConfig in ${fieldConfigs})
|
||||
#if(!$fieldConfig.fieldName.equals("id") && !$fieldConfig.fieldName.equals("createTime") && !$fieldConfig.fieldName.equals("updateTime"))
|
||||
#if("$!fieldConfig.fieldComment" != "")
|
||||
/**
|
||||
* ${fieldConfig.fieldComment}
|
||||
*/
|
||||
#end
|
||||
private ${fieldConfig.fieldType} ${fieldConfig.fieldName};
|
||||
#end
|
||||
#end
|
||||
}
|
||||
Reference in new issue
Block a user