mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
更新域名
fix issue #I3ZCIX 可以控制流程审批过程中表单项是否可写
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// <copyright file="FlowInstancesController.cs" company="openauth.me">
|
||||
// Copyright (c) 2019 openauth.me. All rights reserved.
|
||||
// <copyright file="FlowInstancesController.cs" company="openauth.net.cn">
|
||||
// Copyright (c) 2019 openauth.net.cn. All rights reserved.
|
||||
// </copyright>
|
||||
// <author>www.cnblogs.com/yubaolee</author>
|
||||
// <date>2018-09-06</date>
|
||||
|
@@ -19,13 +19,24 @@ namespace OpenAuth.WebApi.Controllers
|
||||
{
|
||||
private readonly FormApp _app;
|
||||
|
||||
/// <summary>
|
||||
/// 获取表单
|
||||
/// </summary>
|
||||
/// <param name="id">表单ID</param>
|
||||
/// <param name="canWriteFormItemIds">针对动态表单项读写控制</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public Response<FormResp> Get(string id)
|
||||
public Response<FormResp> Get(string id, string canWriteFormItemIds)
|
||||
{
|
||||
var result = new Response<FormResp>();
|
||||
try
|
||||
{
|
||||
result.Result = _app.FindSingle(id);
|
||||
|
||||
if (!string.IsNullOrEmpty(canWriteFormItemIds))
|
||||
{
|
||||
result.Result.CanWriteFormItemIds = JsonHelper.Instance.Deserialize<string[]>(canWriteFormItemIds);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user