mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
更新域名
fix issue #I3ZCIX 可以控制流程审批过程中表单项是否可写
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Infrastructure;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -87,8 +88,18 @@ namespace OpenAuth.Mvc.Controllers
|
||||
/// <returns></returns>
|
||||
public string AllTypes()
|
||||
{
|
||||
var data = _categoryTypeApp.AllTypes();
|
||||
return JsonHelper.Instance.Serialize(data);
|
||||
var resp = new Response<List<CategoryTypeResp>>();
|
||||
try
|
||||
{
|
||||
resp.Result = _categoryTypeApp.AllTypes().MapToList<CategoryTypeResp>();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
resp.Code = 500;
|
||||
resp.Message = e.Message;
|
||||
}
|
||||
return JsonHelper.Instance.Serialize(resp);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
// Last Modified On : 07-24-2018
|
||||
// ***********************************************************************
|
||||
// <copyright file="ErrorController.cs" company="OpenAuth.Mvc">
|
||||
// Copyright (c) http://www.openauth.me. All rights reserved.
|
||||
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
|
||||
// </copyright>
|
||||
// <summary>
|
||||
// 异常处理页面
|
||||
|
@@ -7,7 +7,7 @@
|
||||
// Last Modified On : 07-04-2018
|
||||
// ***********************************************************************
|
||||
// <copyright file="UserSessionController.cs" company="OpenAuth.Mvc">
|
||||
// Copyright (c) http://www.openauth.me. All rights reserved.
|
||||
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
|
||||
// </copyright>
|
||||
// <summary>
|
||||
// 获取登录用户的全部信息
|
||||
|
Reference in New Issue
Block a user