@ -84,7 +84,7 @@ func (b *BaseDao) Detail(dbInstance *gorm.DB, result interface{}, optionFuncList
//
// Date : 15:57 2023/2/23
func (b *BaseDao) IsNotFound(err error) bool {
return err == gorm.ErrRecordNotFound
return errors.Is(err, gorm.ErrRecordNotFound)
}
// Count 查询数量
The note is not visible to the blocked user.