6

Gfast 2.0 代码生成工具发布

 3 years ago
source link: https://studygolang.com/articles/35219?fr=sidebar
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Gfast 2.0 代码生成工具发布

kocie · 1天之前 · 253 次点击 · 预计阅读时间 1 分钟 · 大约8小时之前 开始浏览    

代码生成功能完善(支持生成上传文件、图片及富文本编辑器功能)

#新建测试表
CREATE TABLE `demo_gen_other` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `info` text COMMENT '内容',
  `img` text COMMENT '单图',
  `imgs` text COMMENT '多图',
  `file` text COMMENT '单文件',
  `files` text COMMENT '多文件',
  `remark` varchar(255) DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='特殊字段测试';

导入表格后选择对应类型

m_ca54bbc242f9f6394c6cb598b5f39989_r.png

配置完成后生成代码

m_c67daf77cb7fbf2dad994dce6a390297_r.png
m_9e76004a4b1cdda66758d219e525b774_r.png

开源地址:https://gitee.com/tiger1103/gfast


有疑问加站长微信联系(非本文作者)

280

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK