You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

using CellularManagement.Domain.Common;
using MediatR;
using System.ComponentModel.DataAnnotations;
namespace CellularManagement.Application.Features.TestCaseSets.Commands.CreateTestCaseSet;
/// <summary>
/// 创建用例集命令
/// </summary>
public class CreateTestCaseSetCommand : IRequest<OperationResult<CreateTestCaseSetResponse>>
{
/// <summary>
/// 用例集编码
/// </summary>
[Required(ErrorMessage = "用例集编码不能为空")]
[MaxLength(50, ErrorMessage = "用例集编码长度不能超过50个字符")]
public string Code { get; set; } = null!;
/// <summary>
/// 用例集名称
/// </summary>
[Required(ErrorMessage = "用例集名称不能为空")]
[MaxLength(100, ErrorMessage = "用例集名称长度不能超过100个字符")]
public string Name { get; set; } = null!;
/// <summary>
/// 用例集说明
/// </summary>
[MaxLength(1000, ErrorMessage = "用例集说明长度不能超过1000个字符")]
public string? Description { get; set; }
/// <summary>
/// 用例集版本
/// </summary>
[Required(ErrorMessage = "用例集版本不能为空")]
[MaxLength(20, ErrorMessage = "用例集版本长度不能超过20个字符")]
public string Version { get; set; } = null!;
/// <summary>
/// 版本更新信息
/// </summary>
[MaxLength(500, ErrorMessage = "版本更新信息长度不能超过500个字符")]
public string? VersionUpdateInfo { get; set; }
/// <summary>
/// 是否禁用
/// </summary>
public bool IsDisabled { get; set; } = false;
/// <summary>
/// 备注
/// </summary>
[MaxLength(1000, ErrorMessage = "备注长度不能超过1000个字符")]
public string? Remarks { get; set; }
}