8000 模型的自增id不是id的时候创建成功后获取不到返回的id项 · Issue #3758 · go-gorm/gorm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
模型的自增id不是id的时候创建成功后获取不到返回的id项 #3758
Closed
@daifuyang

Description

@daifuyang

GORM Playground Link

go-gorm/playground#1

Description

当我使用orm进行create的时候,我的自增id是attr_id。创建成功却返回0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0