Generator Changes at 10/13/2025 7:47:49 AM
This commit is contained in:
@@ -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; }
|
||||
//آدرس
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -3,8 +3,6 @@ public record UpdateUserAddressCommand : IRequest<Unit>
|
||||
{
|
||||
//شناسه
|
||||
public long Id { get; init; }
|
||||
//شناسه کاربر
|
||||
public long UserId { get; init; }
|
||||
//عنوان
|
||||
public string Title { get; init; }
|
||||
//آدرس
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user