最近升級了gorm 2.0,紀錄一下on duplicate update 寫法 type TableItem struct { ID int // PK Amount int } func Create(ID int, amount int) error ...
確定! 回上一頁