infoc.go 458 B

123456789101112131415161718192021
  1. package weeklyhonor
  2. import (
  3. "context"
  4. "go-common/library/log"
  5. "time"
  6. )
  7. // HonorInfoc log honor msg send status
  8. func (d *Dao) HonorInfoc(c context.Context, mid int64, success int32) (err error) {
  9. ctime := time.Now().Format("20060102 15:04:05")
  10. i := map[string]interface{}{
  11. "mid": mid,
  12. "ctime": ctime,
  13. "exc": "",
  14. "success": success,
  15. }
  16. log.Warn("infocproc create infoc(%v)", i)
  17. err = d.infoc.Info(mid, ctime, "", success)
  18. return
  19. }