Skip to content
#

gorm

Here are 775 public repositories matching this topic...

基于 Gin 进行模块化设计的 API 框架,封装了常用功能,使用简单,致力于进行快速的业务研发。比如,支持 cors 跨域、jwt 签名验证、zap 日志收集、panic 异常捕获、trace 链路追踪、prometheus 监控指标、swagger 文档生成、viper 配置文件解析、gorm 数据库组件、gormgen 代码生成工具、graphql 查询语言、errno 统一定义错误码、gRPC 的使用 等等。

  • Updated Jul 18, 2021
  • Go
shyandsy
shyandsy commented May 2, 2021

数据表自带prefix,生成model struct和文件名也都带上了prefix,有办法去掉么

比如我所有数据表都有prefix = xxxproject_, 用户表为
xxxproject_customer,生成的model就是

type XxxprojectCustomer struct{
}

对应文件是xxxproject_customer.go

我已经在config.yaml里面制定了table_prefix = “xxxproject_”

Improve this page

Add a description, image, and links to the gorm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the gorm topic, visit your repo's landing page and select "manage topics."

Learn more