|
@@ -1,4 +1,5 @@
|
|
|
-using Hotline.Caching.Interfaces;
|
|
|
+using Hotline.Application.Systems;
|
|
|
+using Hotline.Caching.Interfaces;
|
|
|
using Hotline.Permissions;
|
|
|
using Hotline.Quality;
|
|
|
using Hotline.Repository.SqlSugar.Extensions;
|
|
@@ -14,6 +15,7 @@ using Hotline.Share.Dtos.Trunk;
|
|
|
using Hotline.Share.Enums.Quality;
|
|
|
using Hotline.Share.Enums.Settings;
|
|
|
using Hotline.Share.Requests;
|
|
|
+using Hotline.Share.Tools;
|
|
|
using MapsterMapper;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
@@ -44,7 +46,7 @@ namespace Hotline.Api.Controllers
|
|
|
private readonly ISessionContext _sessionContext;
|
|
|
private readonly ISystemDicDataCacheManager _systemDicDataCacheManager;
|
|
|
private readonly IRepository<SystemLog> _systemLogRepository;
|
|
|
- private readonly IRepository<SystemMobilArea> _systemMobilAreaRepository;
|
|
|
+ private readonly ISystemMobilAreaApplication _systemMobilAreaApplication;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 系统管理相关接口
|
|
@@ -61,7 +63,7 @@ namespace Hotline.Api.Controllers
|
|
|
/// <param name="sessionContext"></param>
|
|
|
/// <param name="systemDicDataCacheManager"></param>
|
|
|
/// <param name="systemLogRepository"></param>
|
|
|
- /// <param name="systemMobilAreaRepository"></param>
|
|
|
+ /// <param name="systemMobilAreaApplication"></param>
|
|
|
public SysController(
|
|
|
IMapper mapper,
|
|
|
IRepository<SystemSetting> systemSettingsRepository,
|
|
@@ -75,7 +77,7 @@ namespace Hotline.Api.Controllers
|
|
|
ISessionContext sessionContext,
|
|
|
ISystemDicDataCacheManager systemDicDataCacheManager,
|
|
|
IRepository<SystemLog> systemLogRepository,
|
|
|
- IRepository<SystemMobilArea> systemMobilAreaRepository
|
|
|
+ ISystemMobilAreaApplication systemMobilAreaApplication
|
|
|
)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
@@ -90,7 +92,7 @@ namespace Hotline.Api.Controllers
|
|
|
_sessionContext = sessionContext;
|
|
|
_systemDicDataCacheManager = systemDicDataCacheManager;
|
|
|
_systemLogRepository = systemLogRepository;
|
|
|
- _systemMobilAreaRepository = systemMobilAreaRepository;
|
|
|
+ _systemMobilAreaApplication = systemMobilAreaApplication;
|
|
|
}
|
|
|
|
|
|
#region 菜单管理
|
|
@@ -591,5 +593,15 @@ namespace Hotline.Api.Controllers
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 验证电话外呼是否需要加0
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="mobile"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("vaild_mobile/{mobile}")]
|
|
|
+ public async Task<string> VaildMobile(string mobile)
|
|
|
+ {
|
|
|
+ return await _systemMobilAreaApplication.VaildMobile(mobile);
|
|
|
+ }
|
|
|
}
|
|
|
}
|