Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MrYZhou opened this issue Feb 3, 2024 · 2 comments
Closed

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

MrYZhou opened this issue Feb 3, 2024 · 2 comments

Comments

@MrYZhou
Copy link

MrYZhou commented Feb 3, 2024

image

type Config struct {
Id string
Name string
}

image

@MrYZhou MrYZhou closed this as completed Feb 3, 2024
@ywly
Copy link

ywly commented Mar 18, 2024

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

@ywly
Copy link

ywly commented Mar 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants