mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-09-03 00:26:26 +08:00
完成流程模板列表
This commit is contained in:
45
OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs
Normal file
45
OpenAuth.Mvc/Controllers/WorkflowSchemasController.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Web.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
|
||||
namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
public class WorkflowSchemasController : BaseController
|
||||
{
|
||||
private WorkflowSchemasManagerApp _app;
|
||||
|
||||
public WorkflowSchemasController()
|
||||
{
|
||||
_app = AutofacExt.GetFromFac<WorkflowSchemasManagerApp>();
|
||||
}
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public string Load(int pageCurrent = 1, int pageSize = 30)
|
||||
{
|
||||
return JsonHelper.Instance.Serialize(_app.Load(pageCurrent, pageSize));
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public string Del(string code)
|
||||
{
|
||||
try
|
||||
{
|
||||
_app.Del(code);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
BjuiResponse.statusCode = "300";
|
||||
BjuiResponse.message = e.Message;
|
||||
}
|
||||
|
||||
return JsonHelper.Instance.Serialize(BjuiResponse);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user