feat: 增加URL表单

This commit is contained in:
wintel
2025-04-02 23:31:38 +08:00
parent 28c82e59d4
commit 350c8e58c1
4 changed files with 21 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;
using Infrastructure;
namespace OpenAuth.App
{
@@ -9,14 +10,14 @@ namespace OpenAuth.App
{
public static IForm CreateForm(Form form, IUnitWork<OpenAuthDBContext> unitWork)
{
if (form.FrmType == 0)
if (form.FrmType == Define.FORM_TYPE_DYNAMIC)
{
return new LeipiForm(unitWork);
}else if (form.FrmType == 1)
}else if (form.FrmType == Define.FORM_TYPE_DEVELOP)
{
throw new Exception("自定义表单不需要创建数据库表");
}
else
else
{
return new DragForm(unitWork);
}

View File

@@ -7,7 +7,7 @@
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using Infrastructure;
namespace OpenAuth.App.Response
{
/// <summary>
@@ -83,7 +83,7 @@ namespace OpenAuth.App.Response
{
get
{
if (this.FrmType != 0) //只有开原版动态表单才需要转换
if (this.FrmType != Define.FORM_TYPE_DYNAMIC) //只有开原版动态表单才需要转换
{
return string.Empty;
}