using System; using System.ComponentModel.DataAnnotations; using Model.Base; namespace Dto { /// /// 添加 /// public class PageUpdateInfoAddDto { /// /// 模板更新版本 /// [Required(ErrorMessage = "模板更新版本不能为空")] [RegularExpression(@"^\d+$", ErrorMessage = "模板更新版本格式有误")] public int moduleVersion { get; set; } /// /// 模板路径 /// [Required(ErrorMessage = "模板路径不能为空")] public string? modulePath { get; set; } /// /// 背景色 /// public string? backgroudColor { get; set; } /// /// 前景色 /// public string? textColor { get; set; } /// /// 苹果状态栏 /// public string? statusBarStyle { get; set; } /// /// 是否显示头部 /// public bool showTitle { get; set; } /// /// 顶部标题 /// public string? title { get; set; } /// /// 是否显示滚动条 /// public bool showScrollBar { get; set; } /// /// 是否侧滑返回 /// public bool skidFlag { get; set; } /// /// 左侧按钮1 /// public string? leftBtn1 { get; set; } /// /// 左侧按钮2 /// public string? leftBtn2 { get; set; } /// /// 右侧按钮1 /// public string? rightBtn1 { get; set; } /// /// 右侧按钮2 /// public string? rightBtn2 { get; set; } /// /// 左侧按钮1点击事件 /// public string? leftAction1 { get; set; } /// /// 左侧按钮2点击事件 /// public string? leftAction2 { get; set; } /// /// 右侧按钮1点击事件 /// public string? rightAction1 { get; set; } /// /// 右侧按钮2点击事件 /// public string? rightAction2 { get; set; } /// /// 下级页面 /// public string? gotoPages { get; set; } /// /// 是否强制更新 /// public bool mustUpdate { get; set; } } }