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.
56 lines
1.4 KiB
56 lines
1.4 KiB
// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
|
|
//
|
|
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Admin.NET.Bodk.Customer.Entities;
|
|
using Admin.NET.Core;
|
|
|
|
namespace Admin.NET.Bodk.Customer.Models;
|
|
|
|
public class QueryCustomerInput : BasePageInput
|
|
{
|
|
public long? Id { get; set; }
|
|
public string? Name { get; set; }
|
|
|
|
public string? IdCard { get; set; }
|
|
|
|
public string? Phone { get; set; }
|
|
}
|
|
|
|
public class AddCustomerInput
|
|
{
|
|
[Required(ErrorMessage = "客户姓名不能为空")] public string Name { get; set; }
|
|
|
|
[Required(ErrorMessage = "客户身份证号不能为空")]
|
|
public string IdCard { get; set; }
|
|
|
|
[Required(ErrorMessage = "客户手机号码不能为空")]
|
|
public string Phone { get; set; }
|
|
|
|
[Required(ErrorMessage = "客户性别不能为空")] public bool IsMale { get; set; }
|
|
|
|
public string? ImageUrl { get; set; }
|
|
|
|
public string? VoiceUrl { get; set; }
|
|
}
|
|
|
|
public class UpdateCustomerInput : BaseIdInput
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public string IdCard { get; set; }
|
|
|
|
public string Phone { get; set; }
|
|
|
|
public bool IsMale { get; set; }
|
|
|
|
public string? ImageUrl { get; set; }
|
|
|
|
public string? VoiceUrl { get; set; }
|
|
}
|
|
|
|
public class Customer : CustomerEntity
|
|
{
|
|
public new List<long>? OrgIds = null;
|
|
}
|