摘要:
想接收前端这样的数据格式:【json数组】 [ { "password": "casso", "mobile": "13456789999", "nick_name": "go", "icon": "地址" }, { "password": "casso", "mobile": "134567899 阅读全文
posted @ 2023-05-28 14:29
李若盛开
阅读(599)
评论(0)
推荐(0)
摘要:
gorm框架执行原生sql有两种方式,作用不同,分别是: db.exec("sql语句") //执行插入删除等操作使用 db.raw("sql语句") //执行查询操作时使用 举例: db.Exec("UPDATE orders SET shipped_at=? WHERE id IN (?)", 阅读全文
posted @ 2023-05-28 00:13
李若盛开
阅读(1269)
评论(0)
推荐(0)
浙公网安备 33010602011771号