1.隐藏所有基础接口
2.完善工作流接口-提交审批流
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Description;
|
||||
using UFIDA.U8.Framework.Api.ControlObject.Entity;
|
||||
using UFIDA.U8.Framework.Api.Models;
|
||||
using UFIDA.U8.Framework.Api.Unit;
|
||||
@@ -19,7 +20,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <summary>
|
||||
/// 日志对象
|
||||
/// </summary>
|
||||
protected readonly ILog logInfo = LogManager.GetLogger("logInfo");
|
||||
private readonly ILog _logInfo = LogManager.GetLogger("logInfo");
|
||||
|
||||
/// <summary>
|
||||
/// 获取加密字符串
|
||||
@@ -28,6 +29,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("api/Common/GetEncryptString")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public BaseResult<string> GetEncryptString(string input)
|
||||
{
|
||||
try
|
||||
@@ -36,7 +38,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<string> { bSuccess = false, message = "加密失败", result = ex.Message };
|
||||
}
|
||||
@@ -49,6 +51,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("api/Common/GetDecryptString")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public BaseResult<string> GetDecryptString(string input)
|
||||
{
|
||||
try
|
||||
@@ -57,7 +60,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<string> { bSuccess = false, message = "解密失败", result =ex.Message };
|
||||
}
|
||||
@@ -70,6 +73,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("api/Common/GetAccountConfig")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public async Task<BaseResult<dynamic>> GetAccountConfig([FromBody]U8AccountConfigInput input)
|
||||
{
|
||||
try
|
||||
@@ -84,7 +88,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<dynamic> { bSuccess = false, message = "查询失败", result = ex.Message };
|
||||
}
|
||||
@@ -98,6 +102,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("api/Common/AddAccountConfig")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public async Task<BaseResult<dynamic>> AddAccountConfig([FromBody] AddU8AccountConfigInput input)
|
||||
{
|
||||
try
|
||||
@@ -117,7 +122,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<dynamic> { bSuccess = false, message = "新增失败", result = ex.Message };
|
||||
}
|
||||
@@ -131,6 +136,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("api/Common/UpdateAccountConfig")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public async Task<BaseResult<dynamic>> UpdateAccountConfig([FromBody]AddU8AccountConfigInput input)
|
||||
{
|
||||
try
|
||||
@@ -150,7 +156,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<dynamic> { bSuccess = false, message = "更新失败", result = ex.Message };
|
||||
}
|
||||
@@ -163,6 +169,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("api/Common/ListAccountConfig")]
|
||||
[ApiExplorerSettings(IgnoreApi = true)]
|
||||
public async Task<BaseResult<dynamic>> ListAccountConfig([FromBody] ListU8AccountConfigInput input)
|
||||
{
|
||||
try
|
||||
@@ -177,7 +184,7 @@ namespace UFIDA.U8.Framework.Api.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logInfo.Error(ex.Message, ex);
|
||||
_logInfo.Error(ex.Message, ex);
|
||||
|
||||
return new BaseResult<dynamic> { bSuccess = false, message = "查询失败", result = ex.Message };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user