Skip to content

根据数据库表结构生成代码 Code generator via database ( crud, grpc, restful, openapi...)

License

Notifications You must be signed in to change notification settings

ychengcloud/cre

Repository files navigation

cre

cre 是一个代码生成框架,用于高效生成各种业务代码,主要使用场景是生成工程框架和CRUD类代码,大大缩短业务从设计到上线的时间。在框架层面保证高度的灵活和可扩展性,不限制业务场景。

特性

  • 解析数据库表结构,生成丰富的表述信息
  • 支持自定义模板,结合不同模板快速生成不同业务场景的项目
  • 支持 BelongsTo 、HasOne 、HasMany 、ManyToMany 关联配置
  • 支持配置校验信息
  • 支持业务的灵活扩展
  • 表结构更改可重复生成代码

文档

中文 | English

参与

鸣谢

本项目的产生离不开这些优秀项目的启发, 如有遗漏欢迎补充指正

https://github.com/LyricTian/gin-admin

https://github.com/cmelgarejo/go-gql-server

https://github.com/8treenet/freedom

https://github.com/jinzhu/gorm

https://github.com/wantedly/apig

https://github.com/facebook/ent

https://github.com/altas/altas

https://github.com/libragen/felix

https://github.com/smallnest/gen

https://github.com/webliupeng/gin-tonic