using Admin.NET.Core; using System.ComponentModel.DataAnnotations; namespace Admin.NET.Application; /// /// 码元素内容基础输入参数 /// public class CodeElementPropBaseInput { /// /// 序号 /// public virtual int? Index { get; set; } /// /// 码元素值 /// public virtual string? CodeValue { get; set; } /// /// 产码规则 /// public virtual string? CodeType { get; set; } /// /// 备注 /// public virtual string? Remark { get; set; } } /// /// 码元素内容分页查询输入参数 /// public class CodeElementPropInput : BasePageInput { /// /// 关键字查询 /// public string? SearchKey { get; set; } /// /// 序号 /// public int? Index { get; set; } /// /// 码元素值 /// public string? CodeValue { get; set; } /// /// 产码规则 /// public string? CodeType { get; set; } /// /// 备注 /// public string? Remark { get; set; } } /// /// 码元素内容增加输入参数 /// public class AddCodeElementPropInput : CodeElementPropBaseInput { } /// /// 码元素内容删除输入参数 /// public class DeleteCodeElementPropInput : BaseIdInput { /// /// 码元素Id /// [Required(ErrorMessage = "码元素Id不能为空")] public long CodeElementId { get; set; } /// /// 长度 /// [Required(ErrorMessage = "长度不能为空")] public int Length { get; set; } } /// /// 码元素内容更新输入参数 /// public class UpdateCodeElementPropInput : CodeElementPropBaseInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } /// /// 码元素Id /// [Required(ErrorMessage = "码元素Id不能为空")] public long CodeElementId { get; set; } /// /// 长度 /// [Required(ErrorMessage = "长度不能为空")] public int Length { get; set; } } /// /// 码元素内容主键查询输入参数 /// public class QueryByIdCodeElementPropInput : DeleteCodeElementPropInput { }