Generator Changes at 10/13/2025 7:47:49 AM

This commit is contained in:
MeysamMoghaddam
2025-10-13 07:48:57 +03:30
parent 9238987c17
commit 8eeebcee6f
8 changed files with 11 additions and 25 deletions

View File

@@ -1,8 +1,6 @@
namespace FrontOffice.BFF.Application.UserAddressCQ.Commands.CreateNewUserAddress;
public record CreateNewUserAddressCommand : IRequest<CreateNewUserAddressResponseDto>
{
//شناسه کاربر
public long UserId { get; init; }
//عنوان
public string Title { get; init; }
//آدرس

View File

@@ -3,8 +3,6 @@ public class CreateNewUserAddressCommandValidator : AbstractValidator<CreateNewU
{
public CreateNewUserAddressCommandValidator()
{
RuleFor(model => model.UserId)
.NotNull();
RuleFor(model => model.Title)
.NotEmpty();
RuleFor(model => model.Address)

View File

@@ -3,8 +3,6 @@ public record UpdateUserAddressCommand : IRequest<Unit>
{
//شناسه
public long Id { get; init; }
//شناسه کاربر
public long UserId { get; init; }
//عنوان
public string Title { get; init; }
//آدرس

View File

@@ -5,8 +5,6 @@ public class UpdateUserAddressCommandValidator : AbstractValidator<UpdateUserAdd
{
RuleFor(model => model.Id)
.NotNull();
RuleFor(model => model.UserId)
.NotNull();
RuleFor(model => model.Title)
.NotEmpty();
RuleFor(model => model.Address)