|
@@ -252,7 +252,7 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
public class EditUserInfoDto
|
|
public class EditUserInfoDto
|
|
{
|
|
{
|
|
-
|
|
+ public int CurrUserId { get; set; }
|
|
|
|
|
|
public int Id { get; set; }
|
|
public int Id { get; set; }
|
|
|
|
|
|
@@ -316,7 +316,7 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- public string Edate { get; set; }
|
|
+ public string? Edate { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -325,18 +325,18 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- public string Birthday { get; set; }
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string IDCard { get; set; }
|
|
public string IDCard { get; set; }
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
- public string? StartWorkDate { get; set; }
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -388,8 +388,9 @@ namespace OASystem.Domain.Dtos.System
|
|
|
|
|
|
public class EditUserInfoDtoValidator : AbstractValidator<EditUserInfoDto>
|
|
public class EditUserInfoDtoValidator : AbstractValidator<EditUserInfoDto>
|
|
{
|
|
{
|
|
- public EditUserInfoDtoValidator()
|
|
+ public EditUserInfoDtoValidator()
|
|
{
|
|
{
|
|
|
|
+
|
|
RuleFor(x => x.CnName).NotEmpty().WithMessage("姓名不能为空!");
|
|
RuleFor(x => x.CnName).NotEmpty().WithMessage("姓名不能为空!");
|
|
RuleFor(x => x.EnName).NotEmpty().WithMessage("英文名不能为空!");
|
|
RuleFor(x => x.EnName).NotEmpty().WithMessage("英文名不能为空!");
|
|
RuleFor(x => x.Number).NotEmpty().WithMessage("工号不能为空!");
|
|
RuleFor(x => x.Number).NotEmpty().WithMessage("工号不能为空!");
|