Generator Changes at 11/12/2025 1:32:03 AM +03:30

This commit is contained in:
masoodafar-web
2025-11-12 02:24:02 +03:30
parent 826ae4589f
commit b27c765731
290 changed files with 30811 additions and 21316 deletions

View File

@@ -0,0 +1,123 @@
syntax = "proto3";
package factordetails;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.FactorDetails";
service FactorDetailsContract
{
rpc CreateNewFactorDetails(CreateNewFactorDetailsRequest) returns (CreateNewFactorDetailsResponse){
option (google.api.http) = {
post: "/CreateNewFactorDetails"
body: "*"
};
};
rpc UpdateFactorDetails(UpdateFactorDetailsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateFactorDetails"
body: "*"
};
};
rpc DeleteFactorDetails(DeleteFactorDetailsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteFactorDetails"
body: "*"
};
};
rpc GetFactorDetails(GetFactorDetailsRequest) returns (GetFactorDetailsResponse){
option (google.api.http) = {
get: "/GetFactorDetails"
};
};
rpc GetAllFactorDetailsByFilter(GetAllFactorDetailsByFilterRequest) returns (GetAllFactorDetailsByFilterResponse){
option (google.api.http) = {
get: "/GetAllFactorDetailsByFilter"
};
};
}
message CreateNewFactorDetailsRequest
{
int64 product_id = 1;
int32 count = 2;
int64 unit_price = 3;
int32 unit_discount = 4;
int64 order_id = 5;
int64 unit_discount_price = 6;
bool is_change_price = 7;
}
message CreateNewFactorDetailsResponse
{
int64 id = 1;
}
message UpdateFactorDetailsRequest
{
int64 id = 1;
int64 product_id = 2;
int32 count = 3;
int64 unit_price = 4;
int32 unit_discount = 5;
int64 order_id = 6;
int64 unit_discount_price = 7;
bool is_change_price = 8;
}
message DeleteFactorDetailsRequest
{
int64 id = 1;
}
message GetFactorDetailsRequest
{
int64 id = 1;
}
message GetFactorDetailsResponse
{
int64 id = 1;
int64 product_id = 2;
int32 count = 3;
int64 unit_price = 4;
int32 unit_discount = 5;
int64 order_id = 6;
int64 unit_discount_price = 7;
bool is_change_price = 8;
}
message GetAllFactorDetailsByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllFactorDetailsByFilterFilter filter = 3;
}
message GetAllFactorDetailsByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.Int64Value product_id = 2;
google.protobuf.Int32Value count = 3;
google.protobuf.Int64Value unit_price = 4;
google.protobuf.Int32Value unit_discount = 5;
google.protobuf.Int64Value order_id = 6;
google.protobuf.Int64Value unit_discount_price = 7;
google.protobuf.BoolValue is_change_price = 8;
}
message GetAllFactorDetailsByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllFactorDetailsByFilterResponseModel models = 2;
}
message GetAllFactorDetailsByFilterResponseModel
{
int64 id = 1;
int64 product_id = 2;
int32 count = 3;
int64 unit_price = 4;
int32 unit_discount = 5;
int64 order_id = 6;
int64 unit_discount_price = 7;
bool is_change_price = 8;
}

View File

@@ -0,0 +1,98 @@
syntax = "proto3";
package productgallerys;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.ProductGallerys";
service ProductGallerysContract
{
rpc CreateNewProductGallerys(CreateNewProductGallerysRequest) returns (CreateNewProductGallerysResponse){
option (google.api.http) = {
post: "/CreateNewProductGallerys"
body: "*"
};
};
rpc UpdateProductGallerys(UpdateProductGallerysRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateProductGallerys"
body: "*"
};
};
rpc DeleteProductGallerys(DeleteProductGallerysRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteProductGallerys"
body: "*"
};
};
rpc GetProductGallerys(GetProductGallerysRequest) returns (GetProductGallerysResponse){
option (google.api.http) = {
get: "/GetProductGallerys"
};
};
rpc GetAllProductGallerysByFilter(GetAllProductGallerysByFilterRequest) returns (GetAllProductGallerysByFilterResponse){
option (google.api.http) = {
get: "/GetAllProductGallerysByFilter"
};
};
}
message CreateNewProductGallerysRequest
{
int64 product_image_id = 1;
int64 product_id = 2;
}
message CreateNewProductGallerysResponse
{
int64 id = 1;
}
message UpdateProductGallerysRequest
{
int64 id = 1;
int64 product_image_id = 2;
int64 product_id = 3;
}
message DeleteProductGallerysRequest
{
int64 id = 1;
}
message GetProductGallerysRequest
{
int64 id = 1;
}
message GetProductGallerysResponse
{
int64 id = 1;
int64 product_image_id = 2;
int64 product_id = 3;
}
message GetAllProductGallerysByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllProductGallerysByFilterFilter filter = 3;
}
message GetAllProductGallerysByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.Int64Value product_image_id = 2;
google.protobuf.Int64Value product_id = 3;
}
message GetAllProductGallerysByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllProductGallerysByFilterResponseModel models = 2;
}
message GetAllProductGallerysByFilterResponseModel
{
int64 id = 1;
int64 product_image_id = 2;
int64 product_id = 3;
}

View File

@@ -0,0 +1,103 @@
syntax = "proto3";
package productimages;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.ProductImages";
service ProductImagesContract
{
rpc CreateNewProductImages(CreateNewProductImagesRequest) returns (CreateNewProductImagesResponse){
option (google.api.http) = {
post: "/CreateNewProductImages"
body: "*"
};
};
rpc UpdateProductImages(UpdateProductImagesRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateProductImages"
body: "*"
};
};
rpc DeleteProductImages(DeleteProductImagesRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteProductImages"
body: "*"
};
};
rpc GetProductImages(GetProductImagesRequest) returns (GetProductImagesResponse){
option (google.api.http) = {
get: "/GetProductImages"
};
};
rpc GetAllProductImagesByFilter(GetAllProductImagesByFilterRequest) returns (GetAllProductImagesByFilterResponse){
option (google.api.http) = {
get: "/GetAllProductImagesByFilter"
};
};
}
message CreateNewProductImagesRequest
{
string title = 1;
string image_path = 2;
string image_thumbnail_path = 3;
}
message CreateNewProductImagesResponse
{
int64 id = 1;
}
message UpdateProductImagesRequest
{
int64 id = 1;
string title = 2;
string image_path = 3;
string image_thumbnail_path = 4;
}
message DeleteProductImagesRequest
{
int64 id = 1;
}
message GetProductImagesRequest
{
int64 id = 1;
}
message GetProductImagesResponse
{
int64 id = 1;
string title = 2;
string image_path = 3;
string image_thumbnail_path = 4;
}
message GetAllProductImagesByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllProductImagesByFilterFilter filter = 3;
}
message GetAllProductImagesByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.StringValue title = 2;
google.protobuf.StringValue image_path = 3;
google.protobuf.StringValue image_thumbnail_path = 4;
}
message GetAllProductImagesByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllProductImagesByFilterResponseModel models = 2;
}
message GetAllProductImagesByFilterResponseModel
{
int64 id = 1;
string title = 2;
string image_path = 3;
string image_thumbnail_path = 4;
}

View File

@@ -0,0 +1,148 @@
syntax = "proto3";
package products;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.Products";
service ProductsContract
{
rpc CreateNewProducts(CreateNewProductsRequest) returns (CreateNewProductsResponse){
option (google.api.http) = {
post: "/CreateNewProducts"
body: "*"
};
};
rpc UpdateProducts(UpdateProductsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateProducts"
body: "*"
};
};
rpc DeleteProducts(DeleteProductsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteProducts"
body: "*"
};
};
rpc GetProducts(GetProductsRequest) returns (GetProductsResponse){
option (google.api.http) = {
get: "/GetProducts"
};
};
rpc GetAllProductsByFilter(GetAllProductsByFilterRequest) returns (GetAllProductsByFilterResponse){
option (google.api.http) = {
get: "/GetAllProductsByFilter"
};
};
}
message CreateNewProductsRequest
{
string title = 1;
string description = 2;
string short_infomation = 3;
string full_information = 4;
int64 price = 5;
int32 discount = 6;
int32 rate = 7;
string image_path = 8;
string thumbnail_path = 9;
int32 sale_count = 10;
int32 view_count = 11;
int32 remaining_count = 12;
}
message CreateNewProductsResponse
{
int64 id = 1;
}
message UpdateProductsRequest
{
int64 id = 1;
string title = 2;
string description = 3;
string short_infomation = 4;
string full_information = 5;
int64 price = 6;
int32 discount = 7;
int32 rate = 8;
string image_path = 9;
string thumbnail_path = 10;
int32 sale_count = 11;
int32 view_count = 12;
int32 remaining_count = 13;
}
message DeleteProductsRequest
{
int64 id = 1;
}
message GetProductsRequest
{
int64 id = 1;
}
message GetProductsResponse
{
int64 id = 1;
string title = 2;
string description = 3;
string short_infomation = 4;
string full_information = 5;
int64 price = 6;
int32 discount = 7;
int32 rate = 8;
string image_path = 9;
string thumbnail_path = 10;
int32 sale_count = 11;
int32 view_count = 12;
int32 remaining_count = 13;
}
message GetAllProductsByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllProductsByFilterFilter filter = 3;
}
message GetAllProductsByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.StringValue title = 2;
google.protobuf.StringValue description = 3;
google.protobuf.StringValue short_infomation = 4;
google.protobuf.StringValue full_information = 5;
google.protobuf.Int64Value price = 6;
google.protobuf.Int32Value discount = 7;
google.protobuf.Int32Value rate = 8;
google.protobuf.StringValue image_path = 9;
google.protobuf.StringValue thumbnail_path = 10;
google.protobuf.Int32Value sale_count = 11;
google.protobuf.Int32Value view_count = 12;
google.protobuf.Int32Value remaining_count = 13;
}
message GetAllProductsByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllProductsByFilterResponseModel models = 2;
}
message GetAllProductsByFilterResponseModel
{
int64 id = 1;
string title = 2;
string description = 3;
string short_infomation = 4;
string full_information = 5;
int64 price = 6;
int32 discount = 7;
int32 rate = 8;
string image_path = 9;
string thumbnail_path = 10;
int32 sale_count = 11;
int32 view_count = 12;
int32 remaining_count = 13;
}

View File

@@ -31,3 +31,16 @@ message DecimalValue
sfixed32 nanos = 2;
}
enum PaymentStatus
{
Success = 0;
Reject = 1;
Pending = 2;
}
enum TransactionType
{
Buy = 0;
DepositIpg = 1;
DepositExternal1 = 2;
Withdraw = 3;
}

View File

@@ -0,0 +1,223 @@
syntax = "proto3";
package transactions;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.Transactions";
service TransactionsContract
{
rpc CreateNewTransactions(CreateNewTransactionsRequest) returns (CreateNewTransactionsResponse){
option (google.api.http) = {
post: "/CreateNewTransactions"
body: "*"
};
};
rpc UpdateTransactions(UpdateTransactionsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateTransactions"
body: "*"
};
};
rpc DeleteTransactions(DeleteTransactionsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteTransactions"
body: "*"
};
};
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse){
option (google.api.http) = {
get: "/GetTransactions"
};
};
rpc GetAllTransactionsByFilter(GetAllTransactionsByFilterRequest) returns (GetAllTransactionsByFilterResponse){
option (google.api.http) = {
get: "/GetAllTransactionsByFilter"
};
};
}
message CreateNewTransactionsRequest
{
string merchant_id = 1;
int64 amount = 2;
string callback_url = 3;
string description = 4;
google.protobuf.StringValue mobile = 5;
google.protobuf.StringValue email = 6;
google.protobuf.Int32Value request_status_code = 7;
google.protobuf.StringValue request_status_message = 8;
google.protobuf.StringValue authority = 9;
google.protobuf.StringValue fee_type = 10;
google.protobuf.Int64Value fee = 11;
google.protobuf.Int32Value currency = 12;
oneof PaymentStatus_item
{
messages.PaymentStatus payment_status = 13;
}
google.protobuf.Timestamp payment_date = 14;
google.protobuf.Int32Value verification_status_code = 15;
google.protobuf.StringValue verification_status_message = 16;
google.protobuf.StringValue card_hash = 17;
google.protobuf.StringValue card_pan = 18;
google.protobuf.StringValue ref_id = 19;
google.protobuf.StringValue order_id = 20;
oneof Type_item
{
messages.TransactionType type = 21;
}
}
message CreateNewTransactionsResponse
{
int64 id = 1;
}
message UpdateTransactionsRequest
{
int64 id = 1;
string merchant_id = 2;
int64 amount = 3;
string callback_url = 4;
string description = 5;
google.protobuf.StringValue mobile = 6;
google.protobuf.StringValue email = 7;
google.protobuf.Int32Value request_status_code = 8;
google.protobuf.StringValue request_status_message = 9;
google.protobuf.StringValue authority = 10;
google.protobuf.StringValue fee_type = 11;
google.protobuf.Int64Value fee = 12;
google.protobuf.Int32Value currency = 13;
oneof PaymentStatus_item
{
messages.PaymentStatus payment_status = 14;
}
google.protobuf.Timestamp payment_date = 15;
google.protobuf.Int32Value verification_status_code = 16;
google.protobuf.StringValue verification_status_message = 17;
google.protobuf.StringValue card_hash = 18;
google.protobuf.StringValue card_pan = 19;
google.protobuf.StringValue ref_id = 20;
google.protobuf.StringValue order_id = 21;
oneof Type_item
{
messages.TransactionType type = 22;
}
}
message DeleteTransactionsRequest
{
int64 id = 1;
}
message GetTransactionsRequest
{
int64 id = 1;
}
message GetTransactionsResponse
{
int64 id = 1;
string merchant_id = 2;
int64 amount = 3;
string callback_url = 4;
string description = 5;
google.protobuf.StringValue mobile = 6;
google.protobuf.StringValue email = 7;
google.protobuf.Int32Value request_status_code = 8;
google.protobuf.StringValue request_status_message = 9;
google.protobuf.StringValue authority = 10;
google.protobuf.StringValue fee_type = 11;
google.protobuf.Int64Value fee = 12;
google.protobuf.Int32Value currency = 13;
oneof PaymentStatus_item
{
messages.PaymentStatus payment_status = 14;
}
google.protobuf.Timestamp payment_date = 15;
google.protobuf.Int32Value verification_status_code = 16;
google.protobuf.StringValue verification_status_message = 17;
google.protobuf.StringValue card_hash = 18;
google.protobuf.StringValue card_pan = 19;
google.protobuf.StringValue ref_id = 20;
google.protobuf.StringValue order_id = 21;
oneof Type_item
{
messages.TransactionType type = 22;
}
}
message GetAllTransactionsByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllTransactionsByFilterFilter filter = 3;
}
message GetAllTransactionsByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.StringValue merchant_id = 2;
google.protobuf.Int64Value amount = 3;
google.protobuf.StringValue callback_url = 4;
google.protobuf.StringValue description = 5;
google.protobuf.StringValue mobile = 6;
google.protobuf.StringValue email = 7;
google.protobuf.Int32Value request_status_code = 8;
google.protobuf.StringValue request_status_message = 9;
google.protobuf.StringValue authority = 10;
google.protobuf.StringValue fee_type = 11;
google.protobuf.Int64Value fee = 12;
google.protobuf.Int32Value currency = 13;
oneof PaymentStatus_item
{
messages.PaymentStatus payment_status = 14;
}
google.protobuf.Timestamp payment_date = 15;
google.protobuf.Int32Value verification_status_code = 16;
google.protobuf.StringValue verification_status_message = 17;
google.protobuf.StringValue card_hash = 18;
google.protobuf.StringValue card_pan = 19;
google.protobuf.StringValue ref_id = 20;
google.protobuf.StringValue order_id = 21;
oneof Type_item
{
messages.TransactionType type = 22;
}
}
message GetAllTransactionsByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllTransactionsByFilterResponseModel models = 2;
}
message GetAllTransactionsByFilterResponseModel
{
int64 id = 1;
string merchant_id = 2;
int64 amount = 3;
string callback_url = 4;
string description = 5;
google.protobuf.StringValue mobile = 6;
google.protobuf.StringValue email = 7;
google.protobuf.Int32Value request_status_code = 8;
google.protobuf.StringValue request_status_message = 9;
google.protobuf.StringValue authority = 10;
google.protobuf.StringValue fee_type = 11;
google.protobuf.Int64Value fee = 12;
google.protobuf.Int32Value currency = 13;
oneof PaymentStatus_item
{
messages.PaymentStatus payment_status = 14;
}
google.protobuf.Timestamp payment_date = 15;
google.protobuf.Int32Value verification_status_code = 16;
google.protobuf.StringValue verification_status_message = 17;
google.protobuf.StringValue card_hash = 18;
google.protobuf.StringValue card_pan = 19;
google.protobuf.StringValue ref_id = 20;
google.protobuf.StringValue order_id = 21;
oneof Type_item
{
messages.TransactionType type = 22;
}
}

View File

@@ -0,0 +1,103 @@
syntax = "proto3";
package usercarts;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.UserCarts";
service UserCartsContract
{
rpc CreateNewUserCarts(CreateNewUserCartsRequest) returns (CreateNewUserCartsResponse){
option (google.api.http) = {
post: "/CreateNewUserCarts"
body: "*"
};
};
rpc UpdateUserCarts(UpdateUserCartsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateUserCarts"
body: "*"
};
};
rpc DeleteUserCarts(DeleteUserCartsRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteUserCarts"
body: "*"
};
};
rpc GetUserCarts(GetUserCartsRequest) returns (GetUserCartsResponse){
option (google.api.http) = {
get: "/GetUserCarts"
};
};
rpc GetAllUserCartsByFilter(GetAllUserCartsByFilterRequest) returns (GetAllUserCartsByFilterResponse){
option (google.api.http) = {
get: "/GetAllUserCartsByFilter"
};
};
}
message CreateNewUserCartsRequest
{
int64 product_id = 1;
int64 user_id = 2;
int32 count = 3;
}
message CreateNewUserCartsResponse
{
int64 id = 1;
}
message UpdateUserCartsRequest
{
int64 id = 1;
int64 product_id = 2;
int64 user_id = 3;
int32 count = 4;
}
message DeleteUserCartsRequest
{
int64 id = 1;
}
message GetUserCartsRequest
{
int64 id = 1;
}
message GetUserCartsResponse
{
int64 id = 1;
int64 product_id = 2;
int64 user_id = 3;
int32 count = 4;
}
message GetAllUserCartsByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllUserCartsByFilterFilter filter = 3;
}
message GetAllUserCartsByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.Int64Value product_id = 2;
google.protobuf.Int64Value user_id = 3;
google.protobuf.Int32Value count = 4;
}
message GetAllUserCartsByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllUserCartsByFilterResponseModel models = 2;
}
message GetAllUserCartsByFilterResponseModel
{
int64 id = 1;
int64 product_id = 2;
int64 user_id = 3;
int32 count = 4;
}

View File

@@ -0,0 +1,98 @@
syntax = "proto3";
package userwallet;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.UserWallet";
service UserWalletContract
{
rpc CreateNewUserWallet(CreateNewUserWalletRequest) returns (CreateNewUserWalletResponse){
option (google.api.http) = {
post: "/CreateNewUserWallet"
body: "*"
};
};
rpc UpdateUserWallet(UpdateUserWalletRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateUserWallet"
body: "*"
};
};
rpc DeleteUserWallet(DeleteUserWalletRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteUserWallet"
body: "*"
};
};
rpc GetUserWallet(GetUserWalletRequest) returns (GetUserWalletResponse){
option (google.api.http) = {
get: "/GetUserWallet"
};
};
rpc GetAllUserWalletByFilter(GetAllUserWalletByFilterRequest) returns (GetAllUserWalletByFilterResponse){
option (google.api.http) = {
get: "/GetAllUserWalletByFilter"
};
};
}
message CreateNewUserWalletRequest
{
int64 user_id = 1;
int64 balance = 2;
}
message CreateNewUserWalletResponse
{
int64 id = 1;
}
message UpdateUserWalletRequest
{
int64 id = 1;
int64 user_id = 2;
int64 balance = 3;
}
message DeleteUserWalletRequest
{
int64 id = 1;
}
message GetUserWalletRequest
{
int64 id = 1;
}
message GetUserWalletResponse
{
int64 id = 1;
int64 user_id = 2;
int64 balance = 3;
}
message GetAllUserWalletByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllUserWalletByFilterFilter filter = 3;
}
message GetAllUserWalletByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.Int64Value user_id = 2;
google.protobuf.Int64Value balance = 3;
}
message GetAllUserWalletByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllUserWalletByFilterResponseModel models = 2;
}
message GetAllUserWalletByFilterResponseModel
{
int64 id = 1;
int64 user_id = 2;
int64 balance = 3;
}

View File

@@ -0,0 +1,113 @@
syntax = "proto3";
package userwalletchangelog;
import "public_messages.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option csharp_namespace = "CMSMicroservice.Protobuf.Protos.UserWalletChangeLog";
service UserWalletChangeLogContract
{
rpc CreateNewUserWalletChangeLog(CreateNewUserWalletChangeLogRequest) returns (CreateNewUserWalletChangeLogResponse){
option (google.api.http) = {
post: "/CreateNewUserWalletChangeLog"
body: "*"
};
};
rpc UpdateUserWalletChangeLog(UpdateUserWalletChangeLogRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
put: "/UpdateUserWalletChangeLog"
body: "*"
};
};
rpc DeleteUserWalletChangeLog(DeleteUserWalletChangeLogRequest) returns (google.protobuf.Empty){
option (google.api.http) = {
delete: "/DeleteUserWalletChangeLog"
body: "*"
};
};
rpc GetUserWalletChangeLog(GetUserWalletChangeLogRequest) returns (GetUserWalletChangeLogResponse){
option (google.api.http) = {
get: "/GetUserWalletChangeLog"
};
};
rpc GetAllUserWalletChangeLogByFilter(GetAllUserWalletChangeLogByFilterRequest) returns (GetAllUserWalletChangeLogByFilterResponse){
option (google.api.http) = {
get: "/GetAllUserWalletChangeLogByFilter"
};
};
}
message CreateNewUserWalletChangeLogRequest
{
int64 wallet_id = 1;
int64 current_balance = 2;
int64 change_value = 3;
bool is_increase = 4;
google.protobuf.Int64Value refrence_id = 5;
}
message CreateNewUserWalletChangeLogResponse
{
int64 id = 1;
}
message UpdateUserWalletChangeLogRequest
{
int64 id = 1;
int64 wallet_id = 2;
int64 current_balance = 3;
int64 change_value = 4;
bool is_increase = 5;
google.protobuf.Int64Value refrence_id = 6;
}
message DeleteUserWalletChangeLogRequest
{
int64 id = 1;
}
message GetUserWalletChangeLogRequest
{
int64 id = 1;
}
message GetUserWalletChangeLogResponse
{
int64 id = 1;
int64 wallet_id = 2;
int64 current_balance = 3;
int64 change_value = 4;
bool is_increase = 5;
google.protobuf.Int64Value refrence_id = 6;
}
message GetAllUserWalletChangeLogByFilterRequest
{
messages.PaginationState pagination_state = 1;
google.protobuf.StringValue sort_by = 2;
GetAllUserWalletChangeLogByFilterFilter filter = 3;
}
message GetAllUserWalletChangeLogByFilterFilter
{
google.protobuf.Int64Value id = 1;
google.protobuf.Int64Value wallet_id = 2;
google.protobuf.Int64Value current_balance = 3;
google.protobuf.Int64Value change_value = 4;
google.protobuf.BoolValue is_increase = 5;
google.protobuf.Int64Value refrence_id = 6;
}
message GetAllUserWalletChangeLogByFilterResponse
{
messages.MetaData meta_data = 1;
repeated GetAllUserWalletChangeLogByFilterResponseModel models = 2;
}
message GetAllUserWalletChangeLogByFilterResponseModel
{
int64 id = 1;
int64 wallet_id = 2;
int64 current_balance = 3;
int64 change_value = 4;
bool is_increase = 5;
google.protobuf.Int64Value refrence_id = 6;
}