gorm 模糊查询 发表于: 2021-08-25 2021-08-25 分类: SRE 标签: go, gorm, https, post puzzle := "%" + keyword + "%" DB.Select("post.*").Where("post.post_title LIKE ?", puzzle).Order("post.id desc").Find(&posts) return posts 文章导航 前一页 上一篇: shell参数倒序打印后一页 下一篇: go mod 基本操作 sjx 429RSS订阅