mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 10:08:04 +08:00
可以正常发起流程
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using OpenAuth.App.Request;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App.Request;
|
||||
using OpenAuth.App.Response;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
@@ -43,9 +44,10 @@ namespace OpenAuth.App
|
||||
Repository.ExecuteSql(FormUtil.GetSql(obj));
|
||||
}
|
||||
|
||||
public Form FindSingle(string id)
|
||||
public FormResp FindSingle(string id)
|
||||
{
|
||||
return Repository.FindSingle(u => u.Id == id);
|
||||
var form = Get(id);
|
||||
return form.MapTo<FormResp>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Infrastructure;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OpenAuth.App.Response;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
namespace OpenAuth.App
|
||||
@@ -71,7 +72,7 @@ namespace OpenAuth.App
|
||||
*
|
||||
* 功能: html
|
||||
*/
|
||||
public static string GetHtml(Form form, string action){
|
||||
public static string GetHtml(FormResp form, string action){
|
||||
|
||||
//action=action!=null && !""==(action)?action:"view";
|
||||
return GetHtml(form.ContentData, form.ContentParse, action);
|
||||
|
@@ -120,6 +120,7 @@
|
||||
<Compile Include="Request\QueryRoleListReq.cs" />
|
||||
<Compile Include="Request\QueryFormListReq.cs" />
|
||||
<Compile Include="Request\QueryUserListReq.cs" />
|
||||
<Compile Include="Response\FormResp.cs" />
|
||||
<Compile Include="Response\TableData.cs" />
|
||||
<Compile Include="RevelanceManagerApp.cs" />
|
||||
<Compile Include="SystemAuthService.cs" />
|
||||
|
53
OpenAuth.App/Response/FormResp.cs
Normal file
53
OpenAuth.App/Response/FormResp.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace OpenAuth.App.Response
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单模板表
|
||||
/// </summary>
|
||||
public class FormResp
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 字段个数
|
||||
/// </summary>
|
||||
public int Fields { get; set; }
|
||||
/// <summary>
|
||||
/// 表单中的字段数据
|
||||
/// </summary>
|
||||
public string ContentData { get; set; }
|
||||
/// <summary>
|
||||
/// 表单替换的模板 经过处理
|
||||
/// </summary>
|
||||
public string ContentParse { get; set; }
|
||||
/// <summary>
|
||||
/// 表单原html模板未经处理的
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库名称
|
||||
/// </summary>
|
||||
public string DbName { get; set; }
|
||||
/// <summary>
|
||||
/// 用户显示
|
||||
/// </summary>
|
||||
public string Html
|
||||
{
|
||||
get { return FormUtil.GetHtml(this, ""); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user