|
@@ -12,7 +12,7 @@ using System;
|
|
|
using GxPress.Repository.Interface;
|
|
|
using GxPress.Repository.Interface.Order;
|
|
|
using GxPress.Repository.Interface.Attach;
|
|
|
-
|
|
|
+using GxPress.Repository.Interface.SystemLabel;
|
|
|
namespace GxPress.Service.Implement.Media
|
|
|
{
|
|
|
public partial class MediaService : IMediaService
|
|
@@ -25,7 +25,9 @@ namespace GxPress.Service.Implement.Media
|
|
|
private readonly IUserRepository userRepository;
|
|
|
private readonly IOrderRepository orderRepository;
|
|
|
private readonly IAttachRepository attachRepository;
|
|
|
- public MediaService(ICategoryRepository categoryRepository, IMediaRepository mediaRepository, IMapper _mapper, IEpubService epubService, IMediaLibraryRepository mediaLibraryRepository, IUserRepository userRepository, IOrderRepository orderRepository,IAttachRepository attachRepository)
|
|
|
+ private readonly ISystemLabelRepository systemLabelRepository;
|
|
|
+ private readonly ISystemLableMediaRepository systemLableMediaRepository;
|
|
|
+ public MediaService(ICategoryRepository categoryRepository, IMediaRepository mediaRepository, IMapper _mapper, IEpubService epubService, IMediaLibraryRepository mediaLibraryRepository, IUserRepository userRepository, IOrderRepository orderRepository, IAttachRepository attachRepository, ISystemLabelRepository systemLabelRepository, ISystemLableMediaRepository systemLableMediaRepository)
|
|
|
{
|
|
|
this.categoryRepository = categoryRepository;
|
|
|
this.mediaRepository = mediaRepository;
|
|
@@ -34,7 +36,9 @@ namespace GxPress.Service.Implement.Media
|
|
|
this.mediaLibraryRepository = mediaLibraryRepository;
|
|
|
this.userRepository = userRepository;
|
|
|
this.orderRepository = orderRepository;
|
|
|
- this.attachRepository=attachRepository;
|
|
|
+ this.attachRepository = attachRepository;
|
|
|
+ this.systemLabelRepository = systemLabelRepository;
|
|
|
+ this.systemLableMediaRepository = systemLableMediaRepository;
|
|
|
}
|
|
|
public async Task<bool> InsertAsync(MediaResult result)
|
|
|
{
|