up_info_video.go 570 B

1234567891011121314151617181920212223
  1. package income
  2. import (
  3. "go-common/library/database/sql"
  4. "go-common/library/log"
  5. )
  6. // TxUpdateUpInfoScore update up_info_video score
  7. func (s *Service) TxUpdateUpInfoScore(tx *sql.Tx, mid int64, score int) (err error) {
  8. _, err = s.dao.TxUpdateUpInfoScore(tx, "up_info_video", score, mid)
  9. if err != nil {
  10. tx.Rollback()
  11. log.Error("s.dao.TxUpdateUpInfoScore error(%v)", err)
  12. return err
  13. }
  14. _, err = s.dao.TxUpdateUpInfoScore(tx, "up_info_column", score, mid)
  15. if err != nil {
  16. tx.Rollback()
  17. log.Error("s.dao.TxUpdateUpInfoScore error(%v)", err)
  18. }
  19. return
  20. }