docs/cli/gen-dao #27
Replies: 6 comments 10 replies
-
gf gen dao 生成的结构中 id、url、ip等,可以自定义为 ID、URL、IP 吗? 这种更符合意思。 |
Beta Was this translation helpful? Give feedback.
-
怎么tinyint 1也整到 bool 了 如何关闭此特性? |
Beta Was this translation helpful? Give feedback.
-
hello 请教下, 看了2.7 2.8 没看到 data model 自动创建 sql 表的描述, 只看到了 db table 转 dao model, 是不支持吧? 后续能否支持下? 比如比较流行的框架是支持的, 开发时直接定义 data model 多方便啊, 然后run起来就创建了表如果不存在, 这种是比较方便主流的开发流程了吧. |
Beta Was this translation helpful? Give feedback.
-
// 修复生成的entity对象json标签大小写问题 func generateStructFieldDefinition( |
Beta Was this translation helpful? Give feedback.
-
希望gf gen dao生成的entity对象可以添加dc数据库字段注释,要不然swagger里字段没有中文。比如: |
Beta Was this translation helpful? Give feedback.
-
在fieldMapping的配置内容中, 除了type和import, 是否可以增加一个配置项用于控制该字段的jsonTag细节,比如是否添加omitempty |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
docs/cli/gen-dao
gen dao 命令是 CLI 中最频繁使用、也是框架设计的工程规范能否准确落地的关键命令。该命令用于生成 dao 数据访问对象、 do 数据转化模型及 entity 实例数据模型 Go 代码文件。由于该命令的参数、选项较多,我们推荐使用配置文件来管理生成规则。
https://goframe.org/docs/cli/gen-dao
Beta Was this translation helpful? Give feedback.
All reactions