Closed MrYZhou closed 8 months ago
type Config struct { Id string Name string }
你好,请问解决了吗?我也遇到了这个问题
明白了,gorm的问题,需要配置单数表明: NamingStrategy: schema.NamingStrategy{ SingularTable: true, // 使用单数表名 },
type Config struct { Id string Name string }