摘要: GORM高级查询 一、智能选择字段 GORM 允许通过 Select 方法选择特定的字段,如果您在应用程序中经常使用此功能,你也可以定义一个较小的结构体,以实现调用 API 时自动选择特定的字段,例如: type CreditCard struct { gorm.Model Number strin 阅读全文
posted @ 2021-12-08 22:37 RandySun 阅读(2737) 评论(0) 推荐(0) 编辑