df/bff/proto/rpc_update_account.proto
itsscb d0098a76f4 rf/removes account_info out of accounts
and removes folder /bff/api because all features are implemented with
grpc and grpc-gateway
2023-10-23 22:28:30 +02:00

37 lines
987 B
Protocol Buffer

syntax = "proto3";
package pb;
import "protoc-gen-openapiv2/options/annotations.proto";
import "account.proto";
option go_package = "github.com/itsscb/df/pb";
message UpdateAccountRequest {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "Update Account";
description: "Update an Account";
required: [
"email",
"password"
];
};
example: "{\"account_id\": \"1\", \"email\": \"john.doe@example.com\"}";
};
uint64 account_id = 1;
optional string email = 2;
optional string password = 3;
}
message UpdateAccountResponse {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "Updated Account";
description: "Returns the updated Account";
};
};
Account account = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
}];
}