You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/AI/Models/Form/FormDefinition.cs

26 lines
819 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections.Generic;
namespace AI.Models.Form
{
/// <summary>
/// 表单定义Id、标题、提交目标、扁平字段列表
/// </summary>
public class FormDefinition
{
/// <summary>表单唯一标识</summary>
public string Id { get; set; } = string.Empty;
/// <summary>表单标题</summary>
public string Title { get; set; } = string.Empty;
/// <summary>提交后执行目标,如 AppActionType 名或 plugin:function</summary>
public string SubmitTarget { get; set; } = string.Empty;
/// <summary>提交按钮文案</summary>
public string SubmitLabel { get; set; } = "提交";
/// <summary>字段列表</summary>
public List<FormField> Fields { get; set; } = new List<FormField>();
}
}