摘要: type Products struct { gorm.Model SaleNum uint ` json:"saleNum"` CarNum uint ` json:"carNum"` } 上面的结构体 到数据库中查询的时候会自动将 saleNum carNum 转成 sale_num car_n 阅读全文
posted @ 2021-09-01 13:13 TY520 阅读(26657) 评论(0) 推荐(0) 编辑