update.go 200 B

12345678
  1. package chart_info
  2. import "hongze/hongze_yb/global"
  3. func (r *ChartInfo) Update(updateCols []string) (err error) {
  4. err = global.MYSQL["data"].Model(r).Select(updateCols).Updates(*r).Error
  5. return
  6. }