config_asset.go 597 B

12345678910111213141516171819202122232425
  1. package dao
  2. // import (
  3. // "context"
  4. // "go-common/app/job/main/search/model"
  5. // "go-common/database/sql"
  6. // "go-common/xstr"
  7. // )
  8. // const (
  9. // _getAssetSQL = "SELECT id, name, type, src FROM digger_asset where id in (?)"
  10. // )
  11. // func (d *Dao) getAsset(c context.Context, ids []int64) (res *model.SQLAsset, err error) {
  12. // res = new(model.SQLAsset)
  13. // row := d.SearchDB.QueryRow(c, _getAssetSQL, xstr.JoinInts(ids))
  14. // if err = row.Scan(&res.ID, &res.Name, &res.Type, &res.Src); err != nil {
  15. // if err == sql.ErrNoRows {
  16. // err = nil
  17. // res = nil
  18. // }
  19. // }
  20. // return
  21. // }