|
@@ -1,6 +1,8 @@
|
|
|
|
|
|
|
|
|
+using OASystem.Infrastructure.Repositories.System;
|
|
|
|
|
|
+using System.ComponentModel.Design;
|
|
|
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
@@ -17,44 +19,25 @@ namespace OASystem.API.Controllers
|
|
|
private readonly UsersRepository _userRep;
|
|
|
private readonly IMapper _mapper;
|
|
|
|
|
|
+ private readonly SetDataRepository _setDataRepository;
|
|
|
+ private readonly SystemMenuPermissionRepository _SystemMenuPermissionRepository;
|
|
|
+ private readonly CompanyRepository _CompanyRepository;
|
|
|
+ private readonly JobPostRepository _jobRep;
|
|
|
+
|
|
|
public SystemController( CompanyRepository syscom,DepartmentRepository sysDepRep, UsersRepository userRep,
|
|
|
- IMapper mapper)
|
|
|
+ IMapper mapper, SetDataRepository setDataRepository, CompanyRepository companyRepository,
|
|
|
+ SystemMenuPermissionRepository systemMenuPermissionRepository, JobPostRepository jobRep)
|
|
|
{
|
|
|
_syscomRep = syscom;
|
|
|
_sysDepRep = sysDepRep;
|
|
|
_userRep = userRep;
|
|
|
_mapper = mapper;
|
|
|
+ _setDataRepository = setDataRepository;
|
|
|
+ _CompanyRepository = companyRepository;
|
|
|
+ _SystemMenuPermissionRepository = systemMenuPermissionRepository;
|
|
|
+ _jobRep = jobRep;
|
|
|
}
|
|
|
|
|
|
- #region user 操作
|
|
|
- /// <summary>
|
|
|
- /// 查询所有员工(web)
|
|
|
- /// </summary>
|
|
|
- /// <param name="dto"></param>
|
|
|
- /// <returns></returns>
|
|
|
- [HttpPost]
|
|
|
- [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> GetUserList(DtoBase dto)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- var result = _userRep.GetUserList(dto.PortType,string.Empty);
|
|
|
- if (result.Result.Code != 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
-
|
|
|
- }
|
|
|
- return Ok(JsonView(result.Result.Data));
|
|
|
- }
|
|
|
- catch (Exception)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "程序错误!"));
|
|
|
- throw;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
-
|
|
|
#region 企业操作
|
|
|
/// <summary>
|
|
|
/// 查询企业数据
|
|
@@ -69,16 +52,23 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
if (dto.PortType == 1)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ var CompanyDataResult = _CompanyRepository.GetCompanyData();
|
|
|
+ if (CompanyDataResult.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(CompanyDataResult.Msg));
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(JsonView(true, "查询成功!", CompanyDataResult.Data));
|
|
|
}
|
|
|
else if (dto.PortType == 2)
|
|
|
{
|
|
|
- var companyList = _sysDepRep.QueryDto<Sys_Company, CompanyView>(a=>a.ToBool(true)).ToList();
|
|
|
- if (companyList.Count == 0)
|
|
|
+ var CompanyDataResult = _CompanyRepository.GetCompanyData();
|
|
|
+ if (CompanyDataResult.Code != 0)
|
|
|
{
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ return Ok(JsonView(CompanyDataResult.Msg));
|
|
|
}
|
|
|
- return Ok(JsonView(companyList));
|
|
|
+
|
|
|
+ return Ok(JsonView(true,"查询成功!", CompanyDataResult.Data));
|
|
|
}
|
|
|
else if (dto.PortType == 3)
|
|
|
{
|
|
@@ -105,25 +95,34 @@ namespace OASystem.API.Controllers
|
|
|
[ProducesResponseType(typeof(JsonView),StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> AddCompany(AddCompanyDto dto)
|
|
|
{
|
|
|
- if (string.IsNullOrWhiteSpace(dto.CompanyName) || dto.CreateUserId==0 || !string.IsNullOrWhiteSpace(dto.CompanyCode))
|
|
|
- {
|
|
|
- return Ok(JsonView(-1, "请检查信息是否输入完整!", null));
|
|
|
- }
|
|
|
- else if (string.IsNullOrWhiteSpace(dto.Tel))
|
|
|
- {
|
|
|
- return Ok(JsonView(-1, "请检查联系方式是否输入正确!", null));
|
|
|
- }
|
|
|
- else
|
|
|
+ try
|
|
|
{
|
|
|
- Sys_Company _Company = _mapper.Map<Sys_Company>(dto);
|
|
|
- int id = await _syscomRep.AddAsyncReturnId(_Company);
|
|
|
- if (id == 0)
|
|
|
+ if (string.IsNullOrWhiteSpace(dto.CompanyName) || dto.CreateUserId == 0 || string.IsNullOrWhiteSpace(dto.CompanyCode))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "请检查信息是否输入完整!"));
|
|
|
+ }
|
|
|
+ else if (string.IsNullOrWhiteSpace(dto.Tel))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "请检查联系方式是否输入正确!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
{
|
|
|
- return Ok(JsonView(-1, "添加失败!", null));
|
|
|
+ Sys_Company _Company = _mapper.Map<Sys_Company>(dto);
|
|
|
+ int id = await _syscomRep.AddAsyncReturnId(_Company);
|
|
|
+ if (id == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "添加失败!"));
|
|
|
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true,"添加成功", new { Id = id }));
|
|
|
}
|
|
|
- return Ok(JsonView(0, "成功", id));
|
|
|
}
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -140,11 +139,11 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
if (string.IsNullOrWhiteSpace(dto.CompanyName) || string.IsNullOrWhiteSpace(dto.CompanyCode) || string.IsNullOrWhiteSpace(dto.Address) || dto.ParentCompanyId == 0 || dto.ContactUserId == 0)
|
|
|
{
|
|
|
- return Ok(JsonView(-1, "请检查信息是否输入完整!", null));
|
|
|
+ return Ok(JsonView(false, "请检查信息是否输入完整!"));
|
|
|
}
|
|
|
else if (string.IsNullOrWhiteSpace(dto.Tel))
|
|
|
{
|
|
|
- return Ok(JsonView(-1, "请检查联系方式是否输入正确!", null));
|
|
|
+ return Ok(JsonView(false, "请检查联系方式是否输入正确!"));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -157,8 +156,8 @@ namespace OASystem.API.Controllers
|
|
|
Tel = dto.Tel,
|
|
|
ContactUserId = dto.ContactUserId,
|
|
|
});
|
|
|
- if (!res) { return Ok(JsonView(-1, "失败", null)); }
|
|
|
- return Ok(JsonView(0, "成功", null));
|
|
|
+ if (!res) { return Ok(JsonView(false, "修改失败")); }
|
|
|
+ return Ok(JsonView(true,"修改成功!"));
|
|
|
}
|
|
|
}
|
|
|
catch (Exception)
|
|
@@ -182,8 +181,8 @@ namespace OASystem.API.Controllers
|
|
|
try
|
|
|
{
|
|
|
bool res = await _syscomRep.SoftDeleteAsync<Sys_Company>(dto.Id.ToString());
|
|
|
- if (!res) { return Ok(JsonView(-1, "失败", null)); }
|
|
|
- return Ok(JsonView(0, "成功", null));
|
|
|
+ if (!res) { return Ok(JsonView(false, "删除失败")); }
|
|
|
+ return Ok(JsonView(true, "删除成功"));
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|
|
@@ -203,7 +202,7 @@ namespace OASystem.API.Controllers
|
|
|
/// </summary>
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
- //[Authorize]
|
|
|
+
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QueryDepartmentList(DepartmentDto dto)
|
|
@@ -221,7 +220,7 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
return Ok(JsonView(false, "暂无数据!"));
|
|
|
}
|
|
|
- return Ok(JsonView(result));
|
|
|
+ return Ok(JsonView(true,"查询成功!",result));
|
|
|
}
|
|
|
else if (dto.PortType == 3)
|
|
|
{
|
|
@@ -239,9 +238,259 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 部门添加
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> AddDepartment(AddDepartmentDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (dto.CreateUserId == 0 || string.IsNullOrWhiteSpace(dto.DepName) || dto.CompanyId == 0 || string.IsNullOrWhiteSpace(dto.DepCode))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "请检查信息是否输入完整!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Sys_Department _Department = _mapper.Map<Sys_Department>(dto);
|
|
|
+ int id = await _sysDepRep.AddAsyncReturnId(_Department);
|
|
|
+ if (id == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "添加失败!"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "添加成功!", new { Id = id }));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 部门修改
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> EditDepartment(EditDepartmentDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (dto.Id==0 || string.IsNullOrWhiteSpace(dto.DepName) || dto.CompanyId == 0 || string.IsNullOrWhiteSpace(dto.DepCode))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "请检查信息是否输入完整!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ bool res = await _sysDepRep.UpdateAsync<Sys_Department>(a => a.Id == dto.Id, a => new Sys_Department
|
|
|
+ {
|
|
|
+ CompanyId=dto.CompanyId,
|
|
|
+ DepCode=dto.DepCode,
|
|
|
+ DepName=dto.DepName,
|
|
|
+ ParentDepId=dto.ParentDepId,
|
|
|
+ Remark=dto.Remark,
|
|
|
+ });
|
|
|
+ if (!res)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "修改失败!"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "修改成功!"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 部门删除
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> DelDepartment(DelDepartmentDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (dto.Id == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(-1, "请检查信息是否输入完整!", null));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ bool res =await _sysDepRep.SoftDeleteAsync<Sys_Department>(dto.Id.ToString());
|
|
|
+ if (!res)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "删除失败!"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "删除成功!"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region 岗位板块
|
|
|
+ /// <summary>
|
|
|
+ /// 岗位查询
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> QueryJobPost(QueryJobPostDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (dto.PortType == 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ else if (dto.PortType == 2)
|
|
|
+ {
|
|
|
+ var result = _jobRep.QueryDto<Sys_JobPost, JobPostView>(s => s.CompanyId == dto.CompanyId && s.DepId==dto.DepId).ToList();
|
|
|
+ if (result.Count == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "查询成功!", result));
|
|
|
+ }
|
|
|
+ else if (dto.PortType == 3)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 添加岗位
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> AddJobPost(AddJobPostDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ Sys_JobPost sys_Job = _mapper.Map<Sys_JobPost>(dto);
|
|
|
+ int id = await _jobRep.AddAsyncReturnId(sys_Job);
|
|
|
+ if (id == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "添加失败"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "添加成功", new { Id = id }));
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 修改岗位
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> EditJobPost(EditJobPostDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ bool res = await _jobRep.UpdateAsync<Sys_JobPost>(a=>a.Id==dto.Id,a =>new Sys_JobPost
|
|
|
+ {
|
|
|
+ CompanyId=dto.CompanyId,
|
|
|
+ DepId=dto.DepId,
|
|
|
+ JobName=dto.JobName,
|
|
|
+ Remark=dto.Remark,
|
|
|
+ });
|
|
|
+ if (!res)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "修改失败"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "修改成功"));
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public async Task<IActionResult> DelJobPost(DelJobPostDto dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ bool res = await _jobRep.SoftDeleteAsync<Sys_JobPost>(dto.Id.ToString());
|
|
|
+ if (!res)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "删除失败!"));
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "删除成功"));
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 用户操作
|
|
|
+ /// <summary>
|
|
|
+ /// 查询所有员工(web)
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> GetUserList(DtoBase dto)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ var result = _userRep.GetUserList(dto.PortType, string.Empty);
|
|
|
+ if (result.Result.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "查询成功!", result.Result.Data));
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 查询用户数据
|
|
|
/// </summary>
|
|
@@ -273,7 +522,7 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "暂无数据!"));
|
|
|
|
|
|
}
|
|
|
- return Ok(JsonView(result.Result.Data));
|
|
|
+ return Ok(JsonView(true,"查询成功!",result.Result.Data));
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|
|
@@ -282,7 +531,68 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> AddUser(AddUserDto dto)
|
|
|
+ {
|
|
|
+ int id = 0;
|
|
|
+ return Ok(JsonView(true, "添加成功!", new { Id = id }));
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
+ #region 权限模块
|
|
|
+ /// <summary>
|
|
|
+ /// 权限数据页面初始化
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ //[Authorize]
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> GetAuth(AuthDto dto)
|
|
|
+ {
|
|
|
+ Result result = new Result();
|
|
|
+ //模块数据
|
|
|
+ var setDataResult = await _setDataRepository.GetSySDefultModule(_setDataRepository);
|
|
|
+ if (setDataResult.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(setDataResult.Msg));
|
|
|
+ }
|
|
|
+
|
|
|
+ List<SetDataView> setDataList = _mapper.Map<List<SetDataView>>(setDataResult.Data);
|
|
|
+ var mod = setDataList.Find(x => x.Name == "权限模块");
|
|
|
+ if (mod == null)
|
|
|
+ {
|
|
|
+ return Ok(JsonView("未找到权限模块!"));
|
|
|
+ }
|
|
|
+
|
|
|
+ //页面数据
|
|
|
+ var SystemMenuPermissionData = _SystemMenuPermissionRepository.GetSystemMenuViweData(_SystemMenuPermissionRepository, mod.Id, dto.pageSize, dto.currentPage);
|
|
|
+ if (SystemMenuPermissionData.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(SystemMenuPermissionData.Msg));
|
|
|
+ }
|
|
|
+
|
|
|
+ //公司数据
|
|
|
+ var CompanyDataResult = _CompanyRepository.GetCompanyData();
|
|
|
+ if (CompanyDataResult.Code != 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(CompanyDataResult.Msg));
|
|
|
+ }
|
|
|
+
|
|
|
+ result.Code = 0;
|
|
|
+ result.Msg = "成功!";
|
|
|
+ var Dyresult = new
|
|
|
+ {
|
|
|
+ setDataResult = setDataResult.Data,
|
|
|
+ CompanyDataResult = CompanyDataResult.Data,
|
|
|
+ SystemMenuPermissionData = SystemMenuPermissionData.Data
|
|
|
+ };
|
|
|
+
|
|
|
+ return Ok(JsonView(200, "成功!", Dyresult));
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
}
|
|
|
}
|