go-common/app/job/main/videoup-report/dao/archive/audit.go
2019-04-22 18:49:16 +08:00

20 lines
415 B
Go

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
}