archive.go 330 B

123456789101112
  1. package dao
  2. const (
  3. _setManual = "REPLACE INTO ugc_archive (aid, manual, deleted) VALUES (?,?,?)"
  4. _needImport = 1
  5. _notDeleted = 0
  6. )
  7. // NeedImport sets the archive as manual, if it's deleted, we recover it
  8. func (d *Dao) NeedImport(aid int64) (err error) {
  9. return d.DB.Exec(_setManual, aid, _needImport, _notDeleted).Error
  10. }