ugc.go 381 B

12345678910111213141516171819
  1. package web
  2. import (
  3. "context"
  4. "go-common/library/log"
  5. )
  6. const _ugcIncre = "web_goblin"
  7. // UgcSearch ugc insert .
  8. func (d *Dao) UgcSearch(ctx context.Context, data map[string]interface{}) (err error) {
  9. insert := d.ela.NewUpdate(_ugcIncre).Insert()
  10. insert.AddData(_ugcIncre, data)
  11. if err = insert.Do(ctx); err != nil {
  12. log.Error("insert.Do error(%v)", err)
  13. }
  14. return
  15. }