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.

69 lines
1.5 KiB
C#

using System.ComponentModel.DataAnnotations;
using DS.Module.Core;
using FluentValidation;
namespace DS.WMS.Core.System.Dtos;
/// <summary>
/// 版本信息请求实体
/// </summary>
public class VersionReq
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 版本号
/// </summary>
[Required, MaxLength(100)]
public string Version { get; set; }
/// <summary>
/// 标题
/// </summary>
[Required, MaxLength(100)]
public string Title { get; set; }
/// <summary>
/// 主库更新内容
/// </summary>
public string MainContent { get; set; }
/// <summary>
/// 租户库更新内容
/// </summary>
public string TenantContent { get; set; }
/// <summary>
/// 排序
/// </summary>
public int? OrderNo { get; set; } = 100;
/// <summary>
/// 状态 0 启用 1 禁用
/// </summary>
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
/// <summary>
/// 备注
/// </summary>
public string Note { get; set; } = "";
}
/// <summary>
/// 验证
/// </summary>
public class VersionReqValidator : AbstractValidator<VersionReq>
{
/// <summary>
/// 构造函数
/// </summary>
public VersionReqValidator()
{
// this.RuleFor(o => o.PermissionId)
// .NotEmpty().WithName("权限模块Id");
// this.RuleFor(o => o.ColumnView)
// .NotEmpty().WithName("中文视图名");
}
}