using Tiobon.Core.Model.Models; namespace Tiobon.Core.Model.ViewModels.Extend; public class CertificateDesignerData { /// /// bgColor /// [Display(Name = "bgColor"), Description("bgColor"), MaxLength(32, ErrorMessage = "bgColor 不能超过 32 个字符")] public string bgColor { get; set; } /// /// bgImgSize /// [Display(Name = "bgImgSize"), Description("bgImgSize"), MaxLength(32, ErrorMessage = "bgImgSize 不能超过 32 个字符")] public string bgImgSize { get; set; } /// /// bgImgUrl /// [Display(Name = "bgImgUrl"), Description("bgImgUrl"), MaxLength(200, ErrorMessage = "bgImgUrl 不能超过 200 个字符")] public string bgImgUrl { get; set; } /// /// height /// public int? height { get; set; } /// /// opacity /// [Display(Name = "opacity"), Description("opacity"), Column(TypeName = "decimal(20,2)")] public decimal? opacity { get; set; } /// /// thumbnailImage /// [Display(Name = "thumbnailImage"), Description("thumbnailImage"), MaxLength(200, ErrorMessage = "thumbnailImage 不能超过 200 个字符")] public string thumbnailImage { get; set; } /// /// width /// public int? width { get; set; } public List containerItems { get; set; } = new List(); } public class CertificateDesignerItem { public string id { get; set; } /// /// certNoFixed /// [Display(Name = "certNoFixed"), Description("certNoFixed"), MaxLength(32, ErrorMessage = "certNoFixed 不能超过 32 个字符")] public string certNoFixed { get; set; } /// /// certNoRule /// [Display(Name = "certNoRule"), Description("certNoRule"), MaxLength(32, ErrorMessage = "certNoRule 不能超过 32 个字符")] public string certNoRule { get; set; } /// /// color /// [Display(Name = "color"), Description("color"), MaxLength(32, ErrorMessage = "color 不能超过 32 个字符")] public string color { get; set; } /// /// customDate /// public DateTime? customDate { get; set; } /// /// dateFormat /// [Display(Name = "dateFormat"), Description("dateFormat"), MaxLength(32, ErrorMessage = "dateFormat 不能超过 32 个字符")] public string dateFormat { get; set; } /// /// dateRule /// [Display(Name = "dateRule"), Description("dateRule"), MaxLength(32, ErrorMessage = "dateRule 不能超过 32 个字符")] public string dateRule { get; set; } /// /// elBgColor /// [Display(Name = "elBgColor"), Description("elBgColor"), MaxLength(32, ErrorMessage = "elBgColor 不能超过 32 个字符")] public string elBgColor { get; set; } /// /// field /// [Display(Name = "field"), Description("field"), MaxLength(32, ErrorMessage = "field 不能超过 32 个字符")] public string field { get; set; } /// /// fontSize /// public int? fontSize { get; set; } /// /// fontWeight /// public int? fontWeight { get; set; } /// /// height /// public int? height { get; set; } /// /// id1 /// [Display(Name = "id1"), Description("id1"), MaxLength(64, ErrorMessage = "id1 不能超过 64 个字符")] public string id1 { get; set; } /// /// imageSize /// [Display(Name = "imageSize"), Description("imageSize"), MaxLength(32, ErrorMessage = "imageSize 不能超过 32 个字符")] public string imageSize { get; set; } /// /// imageUrl /// [Display(Name = "imageUrl"), Description("imageUrl"), MaxLength(128, ErrorMessage = "imageUrl 不能超过 128 个字符")] public string imageUrl { get; set; } /// /// left /// public decimal? left { get; set; } /// /// lineHeight /// public int? lineHeight { get; set; } /// /// padding /// public int? padding { get; set; } /// /// text /// public string text { get; set; } /// /// top /// public decimal? top { get; set; } /// /// type /// [Display(Name = "type"), Description("type"), MaxLength(32, ErrorMessage = "type 不能超过 32 个字符")] public string type { get; set; } /// /// width /// public int? width { get; set; } /// /// zIndex /// public int? zIndex { get; set; } }