Generator Changes at 10/13/2025 8:22:12 AM
This commit is contained in:
@@ -13,6 +13,14 @@ public record UpdateUserCommand : IRequest<Unit>
|
||||
public string? AvatarPath { get; init; }
|
||||
//فایل آواتار
|
||||
public UserAvatarFileModel? AvatarFile { get; init; }
|
||||
//اعلان ایمیل
|
||||
public bool EmailNotifications { get; init; }
|
||||
//اعلان پیامک
|
||||
public bool SmsNotifications { get; init; }
|
||||
//اعلان پوش
|
||||
public bool PushNotifications { get; init; }
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; init; }
|
||||
|
||||
}public class UserAvatarFileModel
|
||||
{
|
||||
|
||||
@@ -5,6 +5,12 @@ public class UpdateUserCommandValidator : AbstractValidator<UpdateUserCommand>
|
||||
{
|
||||
RuleFor(model => model.Id)
|
||||
.NotNull();
|
||||
RuleFor(model => model.EmailNotifications)
|
||||
.NotNull();
|
||||
RuleFor(model => model.SmsNotifications)
|
||||
.NotNull();
|
||||
RuleFor(model => model.PushNotifications)
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -28,4 +28,12 @@ public record GetAllUserByFilterQuery : IRequest<GetAllUserByFilterResponseDto>
|
||||
public string? ReferralCode { get; set; }
|
||||
//موبایل فعال شده؟
|
||||
public bool? IsMobileVerified { get; set; }
|
||||
//اعلان ایمیل
|
||||
public bool? EmailNotifications { get; set; }
|
||||
//اعلان پیامک
|
||||
public bool? SmsNotifications { get; set; }
|
||||
//اعلان پوش
|
||||
public bool? PushNotifications { get; set; }
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; set; }
|
||||
}
|
||||
|
||||
@@ -28,4 +28,12 @@ public class GetAllUserByFilterResponseDto
|
||||
public bool IsMobileVerified { get; set; }
|
||||
//تاریخ فعال سازی موبایل
|
||||
public DateTime? MobileVerifiedAt { get; set; }
|
||||
//اعلان ایمیل
|
||||
public bool EmailNotifications { get; set; }
|
||||
//اعلان پیامک
|
||||
public bool SmsNotifications { get; set; }
|
||||
//اعلان پوش
|
||||
public bool PushNotifications { get; set; }
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; set; }
|
||||
}
|
||||
|
||||
@@ -23,5 +23,13 @@ public class GetUserResponseDto
|
||||
public bool IsMobileVerified { get; set; }
|
||||
//تاریخ فعال سازی موبایل
|
||||
public DateTime? MobileVerifiedAt { get; set; }
|
||||
//اعلان ایمیل
|
||||
public bool EmailNotifications { get; set; }
|
||||
//اعلان پیامک
|
||||
public bool SmsNotifications { get; set; }
|
||||
//اعلان پوش
|
||||
public bool PushNotifications { get; set; }
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user