|
@@ -17,6 +17,7 @@ using Hotline.Share.Requests;
|
|
using MapsterMapper;
|
|
using MapsterMapper;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
+using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using XF.Domain.Authentications;
|
|
using XF.Domain.Authentications;
|
|
using XF.Domain.Exceptions;
|
|
using XF.Domain.Exceptions;
|
|
@@ -42,6 +43,7 @@ namespace Hotline.Api.Controllers
|
|
private readonly ISessionContext _sessionContext;
|
|
private readonly ISessionContext _sessionContext;
|
|
private readonly ISystemDicDataCacheManager _systemDicDataCacheManager;
|
|
private readonly ISystemDicDataCacheManager _systemDicDataCacheManager;
|
|
private readonly IRepository<SystemLog> _systemLogRepository;
|
|
private readonly IRepository<SystemLog> _systemLogRepository;
|
|
|
|
+ private readonly IRepository<MessageTemplate> _messageTemplateRepository;
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 系统管理相关接口
|
|
/// 系统管理相关接口
|
|
@@ -68,7 +70,8 @@ namespace Hotline.Api.Controllers
|
|
IRepository<SystemCommonOpinion> commonOpinionRepository,
|
|
IRepository<SystemCommonOpinion> commonOpinionRepository,
|
|
ISessionContext sessionContext,
|
|
ISessionContext sessionContext,
|
|
ISystemDicDataCacheManager systemDicDataCacheManager,
|
|
ISystemDicDataCacheManager systemDicDataCacheManager,
|
|
- IRepository<SystemLog> systemLogRepository
|
|
|
|
|
|
+ IRepository<SystemLog> systemLogRepository,
|
|
|
|
+ IRepository<MessageTemplate> messageTemplateRepository
|
|
)
|
|
)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
@@ -83,6 +86,7 @@ namespace Hotline.Api.Controllers
|
|
_sessionContext = sessionContext;
|
|
_sessionContext = sessionContext;
|
|
_systemDicDataCacheManager = systemDicDataCacheManager;
|
|
_systemDicDataCacheManager = systemDicDataCacheManager;
|
|
_systemLogRepository = systemLogRepository;
|
|
_systemLogRepository = systemLogRepository;
|
|
|
|
+ _messageTemplateRepository = messageTemplateRepository;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -575,6 +579,7 @@ namespace Hotline.Api.Controllers
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- #endregion
|
|
|
|
- }
|
|
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|