using DS.Module.Core; using FluentValidation; using SqlSugar; namespace DS.WMS.Core.Code.Dtos; /// /// 第三方账号请求实体 /// public class CodeThirdPartyReq { /// /// 主键Id /// public long Id { get; set; } /// /// 账号类型 /// public string AccountType { get; set; } /// /// 客户名称 /// public string CustomerName { get; set; } /// /// 客户类型 /// public string CustomerType { get; set; } /// /// 客户Id /// public long CustomerId { get; set; } /// /// 账户key /// public string AppKey { get; set; } /// /// 账户密钥 /// public string AppSecret { get; set; } /// /// 状态 0 启用 1 禁用 /// public StatusEnum? Status { get; set; } = StatusEnum.Enable; /// /// 备注 /// public string Note { get; set; } = ""; /// /// 是否为公司账号 /// public bool IsCompany { get; set; } = false; /// /// 备案代码 /// public string RegistPartyCode { get; set; } /// /// 备案全称 /// public string RegistPartyName { get; set; } /// /// 联系人 /// public string RegistContractName { get; set; } /// /// 联系邮箱 /// public string RegistContractEmail { get; set; } /// /// 用户ID /// public long UserId { get; set; } /// /// 用户姓名 /// public string? UserName { get; set; } } /// /// 验证 /// public class CodeThirdPartyReqValidator : AbstractValidator { /// /// 构造函数 /// public CodeThirdPartyReqValidator() { //this.RuleFor(o => o.AccountType) // .NotEmpty().WithName("账号类型"); //this.RuleFor(o => o.CustomerId) // .NotEmpty().WithName("客户名称"); } }