go-common/app/job/main/web-goblin/dao/web/ugc.go
2019-04-22 18:49:16 +08:00

20 lines
381 B
Go

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
}