|
@@ -19,11 +19,14 @@ namespace GxPress.Api.AdminControllers
|
|
|
public class AdminSystemLabelController : ControllerBase
|
|
|
{
|
|
|
private readonly ISystemLabelRepository _repository;
|
|
|
+ private readonly ISystemLableMediaRepository systemLableMediaRepository;
|
|
|
+
|
|
|
private readonly ISystemLabelService systemLabelService;
|
|
|
- public AdminSystemLabelController(ISystemLabelRepository repository, ISystemLabelService systemLabelService)
|
|
|
+ public AdminSystemLabelController(ISystemLabelRepository repository, ISystemLabelService systemLabelService, ISystemLableMediaRepository systemLableMediaRepository)
|
|
|
{
|
|
|
_repository = repository;
|
|
|
this.systemLabelService = systemLabelService;
|
|
|
+ this.systemLableMediaRepository = systemLableMediaRepository;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 添加
|
|
@@ -64,5 +67,15 @@ namespace GxPress.Api.AdminControllers
|
|
|
{
|
|
|
return await _repository.DeleteAsync(id);
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 添加标签媒体
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost("add")]
|
|
|
+ public async Task<bool> InsertAsync(SystemLableMediaRequest request)
|
|
|
+ {
|
|
|
+ return await systemLableMediaRepository.InsertAsync(request);
|
|
|
+ }
|
|
|
}
|
|
|
}
|