摘要: gorm默认支持软删除 如果想要支持联合唯一索引,就需要用到一个gorm的插件库:gorm.io/plugin/soft_delete By default, gorm.Model uses *time.Time as the value for the DeletedAt field, and i 阅读全文
posted @ 2022-09-06 17:54 专职 阅读(2038) 评论(0) 推荐(0) 编辑