From 42825aec6eb61203a0e26528575d180bccfd9f92 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期一, 24 三月 2025 10:39:26 +0800 Subject: [PATCH] fix:创建账号bug修复 --- LifePayment/LifePayment.Application.Contracts/User/CreateBackClientUserInput.cs | 5 ++++- LifePayment/LifePayment.Application/LifePaymentServicesApplicationModuleAutoMapperProfile.cs | 2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.Application.Contracts/User/CreateBackClientUserInput.cs b/LifePayment/LifePayment.Application.Contracts/User/CreateBackClientUserInput.cs index 6fa5292..76e561d 100644 --- a/LifePayment/LifePayment.Application.Contracts/User/CreateBackClientUserInput.cs +++ b/LifePayment/LifePayment.Application.Contracts/User/CreateBackClientUserInput.cs @@ -1,5 +1,7 @@ -锘縰sing System; +锘縰sing LifePayment.Domain.Shared; +using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using ZeroD.Util; namespace LifePayment.Application.Contracts @@ -24,6 +26,7 @@ /// <summary> /// 璐︽埛 /// </summary> + [RegularExpression(LifePaymentConstant.RegularExpression.UserNameEx, ErrorMessage = "璐﹀彿鏍煎紡涓嶆纭�")] public string UserName { get; set; } public string Remark { get; set; } diff --git a/LifePayment/LifePayment.Application/LifePaymentServicesApplicationModuleAutoMapperProfile.cs b/LifePayment/LifePayment.Application/LifePaymentServicesApplicationModuleAutoMapperProfile.cs index 68e9053..abedd35 100644 --- a/LifePayment/LifePayment.Application/LifePaymentServicesApplicationModuleAutoMapperProfile.cs +++ b/LifePayment/LifePayment.Application/LifePaymentServicesApplicationModuleAutoMapperProfile.cs @@ -14,6 +14,8 @@ CreateMap<CreateLifePayOrderInput, LifePayOrder>(MemberList.None); CreateMap<CreateEditPayChannelsInput, LifePayChannles>(MemberList.None); + + CreateMap<CreateBackClientUserInput, CreateAccountInput>(MemberList.None); #endregion } } -- Gitblit v1.9.1