You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
597 B
25 lines
597 B
package dao |
|
|
|
// import ( |
|
// "context" |
|
|
|
// "go-common/app/job/main/search/model" |
|
// "go-common/database/sql" |
|
// "go-common/xstr" |
|
// ) |
|
|
|
// const ( |
|
// _getAssetSQL = "SELECT id, name, type, src FROM digger_asset where id in (?)" |
|
// ) |
|
|
|
// func (d *Dao) getAsset(c context.Context, ids []int64) (res *model.SQLAsset, err error) { |
|
// res = new(model.SQLAsset) |
|
// row := d.SearchDB.QueryRow(c, _getAssetSQL, xstr.JoinInts(ids)) |
|
// if err = row.Scan(&res.ID, &res.Name, &res.Type, &res.Src); err != nil { |
|
// if err == sql.ErrNoRows { |
|
// err = nil |
|
// res = nil |
|
// } |
|
// } |
|
// return |
|
// }
|
|
|