|
@@ -47,6 +47,9 @@ namespace GxPress.Repository.Implement.Media
|
|
|
//获取媒体
|
|
|
var media = await _repository.GetAsync(id);
|
|
|
result = _mapper.Map<MediaResult>(media);
|
|
|
+ result.CategoryId = StringUtils.StringCollectionToStringList(media.CategoryId).ToList();
|
|
|
+ result.CategoryName = StringUtils.StringCollectionToStringList(media.CategoryName).ToList();
|
|
|
+ result.FullCategoryId = StringUtils.StringCollectionToStringList(media.FullCategoryId).ToList();
|
|
|
//获取媒体库资源
|
|
|
var mediaLibrarys = await mediaLibraryRepository.GetAllAsync(Q.Where(nameof(Entity.tede2.Media.MediaLibrary.MediaId), id));
|
|
|
result.MediaLibraryResults = mediaLibrarys.ToList().Select(n => _mapper.Map<MediaLibraryResult>(n)).ToList();
|