acmestack / gorm-plus

Gorm-plus是基于Gorm的增强版,类似Mybatis-plus语法。Gorm-plus is based on an enhanced version of Gorm, similar to Mybatis-plus syntax.
https://github.com/acmestack/gorm-plus/wiki
Apache License 2.0
285 stars 44 forks source link

为什么自动给我加了s #80

Closed MrYZhou closed 8 months ago

MrYZhou commented 8 months ago

image

type Config struct { Id string Name string }

image

ywly commented 7 months ago

你好,请问解决了吗?我也遇到了这个问题

ywly commented 7 months ago

明白了,gorm的问题,需要配置单数表明: NamingStrategy: schema.NamingStrategy{ SingularTable: true, // 使用单数表名 },