mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix search
This commit is contained in:
@@ -422,7 +422,11 @@ func GetResourcesIdWithTag(tagID uint) ([]uint, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return tagIds, nil
|
||||
ids := make([]uint, len(result))
|
||||
for i, r := range result {
|
||||
ids[i] = r.ID
|
||||
}
|
||||
return ids, nil
|
||||
}
|
||||
|
||||
func BatchGetResources(ids []uint) ([]model.Resource, error) {
|
||||
|
Reference in New Issue
Block a user