update 优化 代码生成器 自动适配oss翻译

This commit is contained in:
疯狂的狮子Li
2024-08-15 14:09:20 +08:00
parent 77f44574c0
commit 0ad52b18b8
4 changed files with 18 additions and 2 deletions

View File

@@ -53,6 +53,13 @@ public class ${ClassName}Vo implements Serializable {
#end
private $column.javaType $column.javaField;
#if($column.htmlType == "imageUpload")
/**
* ${column.columnComment}Url
*/
@Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "${column.javaField}")
private String ${column.javaField}Url";
#end
#end
#end