go-common/app/job/main/web-goblin/dao/web/ugc.go

20 lines
381 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package web
import (
"context"
"go-common/library/log"
)
const _ugcIncre = "web_goblin"
// UgcSearch ugc insert .
func (d *Dao) UgcSearch(ctx context.Context, data map[string]interface{}) (err error) {
insert := d.ela.NewUpdate(_ugcIncre).Insert()
insert.AddData(_ugcIncre, data)
if err = insert.Do(ctx); err != nil {
log.Error("insert.Do error(%v)", err)
}
return
}