using System.ComponentModel.DataAnnotations; namespace iWare.Wms.Application { /// /// 表单添加 /// public class FormAddDto { /// ///表单标题 不可重复 /// [Required(ErrorMessage = "标题不能为空")] public string Title { get; set; } /// /// 表单类型ID /// [Required(ErrorMessage = "表单类型ID不可为空")] public long TypeId { get; set; } /// /// form表单Json /// public string FormJson { get; set; } /// /// 是否发布 /// public bool Publish { get; set; } = false; /// /// 版本 /// public int Version { get; set; } } }