Skip to content

model.XXXX don't match BeforeSaveInterface, should be BeforeSave(*gorm.DB) error. Please see https://gorm.io/docs/hooks.html #174

@bohaoist

Description

@bohaoist

目前生成的model中, BeforeSave函数原型为BeforeSave() error, 提示应该是BeforeSave(*gorm.DB) error,这里是什么原因呢?gorm版本v1.22.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions