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.
85 lines
1.9 KiB
85 lines
1.9 KiB
3 months ago
|
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
|
||
|
//
|
||
|
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
|
||
|
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using Admin.NET.Core;
|
||
|
using Bodk.NET.Customer.Entities;
|
||
|
|
||
|
namespace Bodk.NET.Customer.Models;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 新增客户ID入参
|
||
|
/// </summary>
|
||
|
public class AddCustomerInput : BodkCustomer
|
||
|
{
|
||
|
private new long Id { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 客户姓名
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "客户姓名不能为空")]
|
||
|
public override string Name { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 客户身份证号
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "客户身份证号不能为空")]
|
||
|
public override string IdCard { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 客户性别
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "客户性别不能为空")]
|
||
|
public override bool IsMale { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 客户手机号
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "客户手机号不能为空")]
|
||
|
public override string Phone { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 更新客户ID入参
|
||
|
/// </summary>
|
||
|
public class UpdateCustomerInput : BodkCustomer
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 客户Id
|
||
|
/// </summary>
|
||
|
[Required(ErrorMessage = "客户Id不能为空")]
|
||
|
public override long Id { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 分页获取客户列表入参
|
||
|
/// </summary>
|
||
|
public class PageCustomerInput : BasePageInput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 组织机构Id列表
|
||
|
/// </summary>
|
||
|
public long[]? OrgIds { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询单个客户入参
|
||
|
/// </summary>
|
||
|
public class SingleCustomerInput
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 名称
|
||
|
/// </summary>
|
||
|
public string? Name { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 身份证号
|
||
|
/// </summary>
|
||
|
public string? IdCard { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 手机号
|
||
|
/// </summary>
|
||
|
public string? Phone { get; set; }
|
||
|
}
|