audit.go 415 B

12345678910111213141516171819
  1. package archive
  2. import (
  3. "context"
  4. "go-common/library/log"
  5. )
  6. const (
  7. _seNoteSQL = "SELECT note FROM archive_video_audit WHERE vid=?;"
  8. )
  9. //VideoAuditNote get note by vid
  10. func (d *Dao) VideoAuditNote(c context.Context, vid int64) (note string, err error) {
  11. if err = d.db.QueryRow(c, _seNoteSQL, vid).Scan(&note); err != nil {
  12. log.Error("VideoAuditNote db.row.scan error(%v) vid(%d)", err, vid)
  13. }
  14. return
  15. }