mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
feat: #IBYEGX 业务系统增加送审功能
This commit is contained in:
@@ -68,12 +68,12 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// <summary>创建一个新的流程实例</summary>
|
||||
/// <remarks> www.cnblogs.com/yubaolee, 2019-03-06. </remarks>
|
||||
[HttpPost]
|
||||
public Response Add([FromBody]AddFlowInstanceReq obj)
|
||||
public Response<string> Add([FromBody]AddFlowInstanceReq obj)
|
||||
{
|
||||
var result = new Response();
|
||||
var result = new Response<string>();
|
||||
try
|
||||
{
|
||||
_app.CreateInstance(obj);
|
||||
result.Result = _app.CreateInstance(obj);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -197,6 +197,7 @@ namespace OpenAuth.WebApi.Controllers
|
||||
return await _app.Load(request);
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
public Response Delete([FromBody]string[] ids)
|
||||
{
|
||||
|
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Infrastructure;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -83,6 +84,17 @@ namespace OpenAuth.WebApi.Controllers
|
||||
return await _app.Load(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载URL表单的流程模板
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
public Response<List<FlowScheme>> LoadUrlFormFlowScheme()
|
||||
{
|
||||
var result = new Response<List<FlowScheme>>();
|
||||
result.Result = _app.LoadUrlFormFlowScheme();
|
||||
return result;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public Response Delete([FromBody]string[] ids)
|
||||
{
|
||||
|
@@ -269,5 +269,25 @@ namespace OpenAuth.WebApi.Controllers
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取模块的流程模板列表
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
public Response<List<FlowScheme>> LoadFlowSchemes(string moduleId)
|
||||
{
|
||||
var result = new Response<List<FlowScheme>>();
|
||||
try
|
||||
{
|
||||
result.Result = _app.LoadFlowSchemes(moduleId).ToList();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
result.Code = 500;
|
||||
result.Message = ex.InnerException?.Message ?? ex.Message;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user