移除属性注入改为构造函数注入
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-10-13 13:31:25 +08:00
parent f1be4eaf5f
commit 0206947202
117 changed files with 285 additions and 451 deletions
@@ -12,9 +12,8 @@ namespace IRaCIS.Core.Application.Service
/// 快捷键服务
/// </summary>
[ApiExplorerSettings(GroupName = "Reading")]
public class ShortcutKeyService(
IRepository<Dictionary> _dictionaryRepository,
IRepository<ShortcutKey> _shortcutKeyRepository) : BaseService
public class ShortcutKeyService(IRepository<Dictionary> _dictionaryRepository,
IRepository<ShortcutKey> _shortcutKeyRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService
{
@@ -14,9 +14,8 @@ namespace IRaCIS.Core.Application.Service
/// 用户WL模板
/// </summary>
[ApiExplorerSettings(GroupName = "Reading")]
public class UserWLTemplateService(
IRepository<UserWLTemplate> _userWLTemplateRepository,
IRepository<User> _userRepository) : BaseService
public class UserWLTemplateService(IRepository<UserWLTemplate> _userWLTemplateRepository,
IRepository<User> _userRepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService
{