go-common/app/job/main/videoup-report/dao/archive/audit.go

20 lines
415 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package archive
import (
"context"
"go-common/library/log"
)
const (
_seNoteSQL = "SELECT note FROM archive_video_audit WHERE vid=?;"
)
//VideoAuditNote get note by vid
func (d *Dao) VideoAuditNote(c context.Context, vid int64) (note string, err error) {
if err = d.db.QueryRow(c, _seNoteSQL, vid).Scan(&note); err != nil {
log.Error("VideoAuditNote db.row.scan error(%v) vid(%d)", err, vid)
}
return
}