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)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.112</Version>
|
||||
<Version>0.0.113</Version>
|
||||
<DebugType>None</DebugType>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
|
||||
@@ -45,12 +45,11 @@ service UserAddressContract
|
||||
}
|
||||
message CreateNewUserAddressRequest
|
||||
{
|
||||
int64 user_id = 1;
|
||||
string title = 2;
|
||||
string address = 3;
|
||||
string postal_code = 4;
|
||||
bool is_default = 5;
|
||||
int64 city_id = 6;
|
||||
string title = 1;
|
||||
string address = 2;
|
||||
string postal_code = 3;
|
||||
bool is_default = 4;
|
||||
int64 city_id = 5;
|
||||
}
|
||||
message CreateNewUserAddressResponse
|
||||
{
|
||||
@@ -59,12 +58,11 @@ message CreateNewUserAddressResponse
|
||||
message UpdateUserAddressRequest
|
||||
{
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
string title = 3;
|
||||
string address = 4;
|
||||
string postal_code = 5;
|
||||
bool is_default = 6;
|
||||
int64 city_id = 7;
|
||||
string title = 2;
|
||||
string address = 3;
|
||||
string postal_code = 4;
|
||||
bool is_default = 5;
|
||||
int64 city_id = 6;
|
||||
}
|
||||
message DeleteUserAddressRequest
|
||||
{
|
||||
|
||||
@@ -6,8 +6,6 @@ public class CreateNewUserAddressRequestValidator : AbstractValidator<CreateNewU
|
||||
{
|
||||
public CreateNewUserAddressRequestValidator()
|
||||
{
|
||||
RuleFor(model => model.UserId)
|
||||
.NotNull();
|
||||
RuleFor(model => model.Title)
|
||||
.NotEmpty();
|
||||
RuleFor(model => model.Address)
|
||||
|
||||
@@ -8,8 +8,6 @@ public class UpdateUserAddressRequestValidator : 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