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