Generator Changes at 11/25/2025 1:59:23 AM +03:30
This commit is contained in:
@@ -48,6 +48,7 @@ message CreateNewUserWalletRequest
|
||||
{
|
||||
int64 user_id = 1;
|
||||
int64 balance = 2;
|
||||
int64 network_balance = 3;
|
||||
}
|
||||
message CreateNewUserWalletResponse
|
||||
{
|
||||
@@ -58,6 +59,7 @@ message UpdateUserWalletRequest
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
int64 balance = 3;
|
||||
int64 network_balance = 4;
|
||||
}
|
||||
message DeleteUserWalletRequest
|
||||
{
|
||||
@@ -72,6 +74,7 @@ message GetUserWalletResponse
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
int64 balance = 3;
|
||||
int64 network_balance = 4;
|
||||
}
|
||||
message GetAllUserWalletByFilterRequest
|
||||
{
|
||||
@@ -84,6 +87,7 @@ message GetAllUserWalletByFilterFilter
|
||||
google.protobuf.Int64Value id = 1;
|
||||
google.protobuf.Int64Value user_id = 2;
|
||||
google.protobuf.Int64Value balance = 3;
|
||||
int64 network_balance = 4;
|
||||
}
|
||||
message GetAllUserWalletByFilterResponse
|
||||
{
|
||||
@@ -95,4 +99,5 @@ message GetAllUserWalletByFilterResponseModel
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
int64 balance = 3;
|
||||
int64 network_balance = 4;
|
||||
}
|
||||
|
||||
@@ -49,8 +49,10 @@ message CreateNewUserWalletChangeLogRequest
|
||||
int64 wallet_id = 1;
|
||||
int64 current_balance = 2;
|
||||
int64 change_value = 3;
|
||||
bool is_increase = 4;
|
||||
google.protobuf.Int64Value refrence_id = 5;
|
||||
int64 current_network_balance = 4;
|
||||
int64 change_nerwork_value = 5;
|
||||
bool is_increase = 6;
|
||||
google.protobuf.Int64Value refrence_id = 7;
|
||||
}
|
||||
message CreateNewUserWalletChangeLogResponse
|
||||
{
|
||||
@@ -62,8 +64,10 @@ message UpdateUserWalletChangeLogRequest
|
||||
int64 wallet_id = 2;
|
||||
int64 current_balance = 3;
|
||||
int64 change_value = 4;
|
||||
bool is_increase = 5;
|
||||
google.protobuf.Int64Value refrence_id = 6;
|
||||
int64 current_network_balance = 5;
|
||||
int64 change_nerwork_value = 6;
|
||||
bool is_increase = 7;
|
||||
google.protobuf.Int64Value refrence_id = 8;
|
||||
}
|
||||
message DeleteUserWalletChangeLogRequest
|
||||
{
|
||||
@@ -79,8 +83,10 @@ message GetUserWalletChangeLogResponse
|
||||
int64 wallet_id = 2;
|
||||
int64 current_balance = 3;
|
||||
int64 change_value = 4;
|
||||
bool is_increase = 5;
|
||||
google.protobuf.Int64Value refrence_id = 6;
|
||||
int64 current_network_balance = 5;
|
||||
int64 change_nerwork_value = 6;
|
||||
bool is_increase = 7;
|
||||
google.protobuf.Int64Value refrence_id = 8;
|
||||
}
|
||||
message GetAllUserWalletChangeLogByFilterRequest
|
||||
{
|
||||
@@ -108,6 +114,8 @@ message GetAllUserWalletChangeLogByFilterResponseModel
|
||||
int64 wallet_id = 2;
|
||||
int64 current_balance = 3;
|
||||
int64 change_value = 4;
|
||||
bool is_increase = 5;
|
||||
google.protobuf.Int64Value refrence_id = 6;
|
||||
int64 current_network_balance = 5;
|
||||
int64 change_nerwork_value = 6;
|
||||
bool is_increase = 7;
|
||||
google.protobuf.Int64Value refrence_id = 8;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using FluentValidation;
|
||||
using CMSMicroservice.Protobuf.Protos.Category;
|
||||
|
||||
namespace CMSMicroservice.Protobuf.Validator.Category;
|
||||
|
||||
public class CreateNewCategoryRequestValidator : AbstractValidator<CreateNewCategoryRequest>
|
||||
|
||||
@@ -17,4 +17,3 @@ public class DeletePruductTagRequestValidator : AbstractValidator<DeletePruductT
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ public class GetAllPruductTagByFilterRequestValidator : AbstractValidator<GetAll
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class GetPruductTagRequestValidator : AbstractValidator<GetPruductTagRequ
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class DeleteTagRequestValidator : AbstractValidator<DeleteTagRequest>
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -15,4 +15,3 @@ public class GetAllTagByFilterRequestValidator : AbstractValidator<GetAllTagByFi
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ public class GetTagRequestValidator : AbstractValidator<GetTagRequest>
|
||||
return result.Errors.Select(e => e.ErrorMessage);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ public class CreateNewUserWalletRequestValidator : AbstractValidator<CreateNewUs
|
||||
.NotNull();
|
||||
RuleFor(model => model.Balance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.NetworkBalance)
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -12,6 +12,8 @@ public class UpdateUserWalletRequestValidator : AbstractValidator<UpdateUserWall
|
||||
.NotNull();
|
||||
RuleFor(model => model.Balance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.NetworkBalance)
|
||||
.NotNull();
|
||||
}
|
||||
public Func<object, string, Task<IEnumerable<string>>> ValidateValue => async (model, propertyName) =>
|
||||
{
|
||||
|
||||
@@ -12,6 +12,10 @@ public class CreateNewUserWalletChangeLogRequestValidator : AbstractValidator<Cr
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CurrentNetworkBalance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeNerworkValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.IsIncrease)
|
||||
.NotNull();
|
||||
}
|
||||
|
||||
@@ -14,6 +14,10 @@ public class UpdateUserWalletChangeLogRequestValidator : AbstractValidator<Updat
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.CurrentNetworkBalance)
|
||||
.NotNull();
|
||||
RuleFor(model => model.ChangeNerworkValue)
|
||||
.NotNull();
|
||||
RuleFor(model => model.IsIncrease)
|
||||
.NotNull();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user