chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-08 06:40:09 +00:00
parent 90a1f3aec2
commit 86b69cb3a0
3 changed files with 402 additions and 58 deletions

View File

@@ -49,6 +49,26 @@ export interface ChangePasswordResponse {
message: string;
}
export interface CreateUserRequest {
username: string;
password: string;
roles: string[];
}
export interface CreateUserResponse {
success: boolean;
message: string;
}
export interface DeleteUserRequest {
userId: string;
}
export interface DeleteUserResponse {
success: boolean;
message: string;
}
export interface ChangeDataRequest {
userId: string;
sessionId: string;
@@ -118,6 +138,10 @@ export interface AccountServiceClient {
changePassword(request: ChangePasswordRequest, metadata?: Metadata): Observable<ChangePasswordResponse>;
createUser(request: CreateUserRequest, metadata?: Metadata): Observable<CreateUserResponse>;
deleteUser(request: DeleteUserRequest, metadata?: Metadata): Observable<DeleteUserResponse>;
changeData(request: ChangeDataRequest, metadata?: Metadata): Observable<ChangeDataResponse>;
setPin(request: SetPinRequest, metadata?: Metadata): Observable<SetPinResponse>;
@@ -140,6 +164,16 @@ export interface AccountServiceController {
metadata?: Metadata,
): Promise<ChangePasswordResponse> | Observable<ChangePasswordResponse> | ChangePasswordResponse;
createUser(
request: CreateUserRequest,
metadata?: Metadata,
): Promise<CreateUserResponse> | Observable<CreateUserResponse> | CreateUserResponse;
deleteUser(
request: DeleteUserRequest,
metadata?: Metadata,
): Promise<DeleteUserResponse> | Observable<DeleteUserResponse> | DeleteUserResponse;
changeData(
request: ChangeDataRequest,
metadata?: Metadata,
@@ -171,6 +205,8 @@ export function AccountServiceControllerMethods() {
const grpcMethods: string[] = [
"getAccount",
"changePassword",
"createUser",
"deleteUser",
"changeData",
"setPin",
"unlockPin",

View File

@@ -373,6 +373,214 @@ func (x *ChangePasswordResponse) GetMessage() string {
return ""
}
type CreateUserRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateUserRequest) Reset() {
*x = CreateUserRequest{}
mi := &file_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserRequest) ProtoMessage() {}
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
}
func (x *CreateUserRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *CreateUserRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *CreateUserRequest) GetRoles() []string {
if x != nil {
return x.Roles
}
return nil
}
type CreateUserResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateUserResponse) Reset() {
*x = CreateUserResponse{}
mi := &file_account_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateUserResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserResponse) ProtoMessage() {}
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
}
func (x *CreateUserResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *CreateUserResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type DeleteUserRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteUserRequest) Reset() {
*x = DeleteUserRequest{}
mi := &file_account_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteUserRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteUserRequest) ProtoMessage() {}
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteUserRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type DeleteUserResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteUserResponse) Reset() {
*x = DeleteUserResponse{}
mi := &file_account_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteUserResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteUserResponse) ProtoMessage() {}
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteUserResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *DeleteUserResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type ChangeDataRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@@ -391,7 +599,7 @@ type ChangeDataRequest struct {
func (x *ChangeDataRequest) Reset() {
*x = ChangeDataRequest{}
mi := &file_account_proto_msgTypes[4]
mi := &file_account_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -403,7 +611,7 @@ func (x *ChangeDataRequest) String() string {
func (*ChangeDataRequest) ProtoMessage() {}
func (x *ChangeDataRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
mi := &file_account_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -416,7 +624,7 @@ func (x *ChangeDataRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ChangeDataRequest.ProtoReflect.Descriptor instead.
func (*ChangeDataRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
return file_account_proto_rawDescGZIP(), []int{8}
}
func (x *ChangeDataRequest) GetUserId() string {
@@ -499,7 +707,7 @@ type ChangeDataResponse struct {
func (x *ChangeDataResponse) Reset() {
*x = ChangeDataResponse{}
mi := &file_account_proto_msgTypes[5]
mi := &file_account_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -511,7 +719,7 @@ func (x *ChangeDataResponse) String() string {
func (*ChangeDataResponse) ProtoMessage() {}
func (x *ChangeDataResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
mi := &file_account_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -524,7 +732,7 @@ func (x *ChangeDataResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ChangeDataResponse.ProtoReflect.Descriptor instead.
func (*ChangeDataResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
return file_account_proto_rawDescGZIP(), []int{9}
}
func (x *ChangeDataResponse) GetSuccess() bool {
@@ -552,7 +760,7 @@ type SetPinRequest struct {
func (x *SetPinRequest) Reset() {
*x = SetPinRequest{}
mi := &file_account_proto_msgTypes[6]
mi := &file_account_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -564,7 +772,7 @@ func (x *SetPinRequest) String() string {
func (*SetPinRequest) ProtoMessage() {}
func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[6]
mi := &file_account_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -577,7 +785,7 @@ func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPinRequest.ProtoReflect.Descriptor instead.
func (*SetPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{6}
return file_account_proto_rawDescGZIP(), []int{10}
}
func (x *SetPinRequest) GetUserId() string {
@@ -611,7 +819,7 @@ type SetPinResponse struct {
func (x *SetPinResponse) Reset() {
*x = SetPinResponse{}
mi := &file_account_proto_msgTypes[7]
mi := &file_account_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -623,7 +831,7 @@ func (x *SetPinResponse) String() string {
func (*SetPinResponse) ProtoMessage() {}
func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[7]
mi := &file_account_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -636,7 +844,7 @@ func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetPinResponse.ProtoReflect.Descriptor instead.
func (*SetPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{7}
return file_account_proto_rawDescGZIP(), []int{11}
}
func (x *SetPinResponse) GetSuccess() bool {
@@ -664,7 +872,7 @@ type UnlockPinRequest struct {
func (x *UnlockPinRequest) Reset() {
*x = UnlockPinRequest{}
mi := &file_account_proto_msgTypes[8]
mi := &file_account_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -676,7 +884,7 @@ func (x *UnlockPinRequest) String() string {
func (*UnlockPinRequest) ProtoMessage() {}
func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[8]
mi := &file_account_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -689,7 +897,7 @@ func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnlockPinRequest.ProtoReflect.Descriptor instead.
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{8}
return file_account_proto_rawDescGZIP(), []int{12}
}
func (x *UnlockPinRequest) GetUserId() string {
@@ -723,7 +931,7 @@ type UnlockPinResponse struct {
func (x *UnlockPinResponse) Reset() {
*x = UnlockPinResponse{}
mi := &file_account_proto_msgTypes[9]
mi := &file_account_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -735,7 +943,7 @@ func (x *UnlockPinResponse) String() string {
func (*UnlockPinResponse) ProtoMessage() {}
func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[9]
mi := &file_account_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -748,7 +956,7 @@ func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnlockPinResponse.ProtoReflect.Descriptor instead.
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{9}
return file_account_proto_rawDescGZIP(), []int{13}
}
func (x *UnlockPinResponse) GetSuccess() bool {
@@ -775,7 +983,7 @@ type GetPinStatusRequest struct {
func (x *GetPinStatusRequest) Reset() {
*x = GetPinStatusRequest{}
mi := &file_account_proto_msgTypes[10]
mi := &file_account_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -787,7 +995,7 @@ func (x *GetPinStatusRequest) String() string {
func (*GetPinStatusRequest) ProtoMessage() {}
func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[10]
mi := &file_account_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -800,7 +1008,7 @@ func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPinStatusRequest.ProtoReflect.Descriptor instead.
func (*GetPinStatusRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{10}
return file_account_proto_rawDescGZIP(), []int{14}
}
func (x *GetPinStatusRequest) GetUserId() string {
@@ -828,7 +1036,7 @@ type GetPinStatusResponse struct {
func (x *GetPinStatusResponse) Reset() {
*x = GetPinStatusResponse{}
mi := &file_account_proto_msgTypes[11]
mi := &file_account_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -840,7 +1048,7 @@ func (x *GetPinStatusResponse) String() string {
func (*GetPinStatusResponse) ProtoMessage() {}
func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[11]
mi := &file_account_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -853,7 +1061,7 @@ func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPinStatusResponse.ProtoReflect.Descriptor instead.
func (*GetPinStatusResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{11}
return file_account_proto_rawDescGZIP(), []int{15}
}
func (x *GetPinStatusResponse) GetHasPin() bool {
@@ -888,7 +1096,7 @@ type RemovePinRequest struct {
func (x *RemovePinRequest) Reset() {
*x = RemovePinRequest{}
mi := &file_account_proto_msgTypes[12]
mi := &file_account_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -900,7 +1108,7 @@ func (x *RemovePinRequest) String() string {
func (*RemovePinRequest) ProtoMessage() {}
func (x *RemovePinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[12]
mi := &file_account_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -913,7 +1121,7 @@ func (x *RemovePinRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RemovePinRequest.ProtoReflect.Descriptor instead.
func (*RemovePinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{12}
return file_account_proto_rawDescGZIP(), []int{16}
}
func (x *RemovePinRequest) GetPin() string {
@@ -947,7 +1155,7 @@ type RemovePinResponse struct {
func (x *RemovePinResponse) Reset() {
*x = RemovePinResponse{}
mi := &file_account_proto_msgTypes[13]
mi := &file_account_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -959,7 +1167,7 @@ func (x *RemovePinResponse) String() string {
func (*RemovePinResponse) ProtoMessage() {}
func (x *RemovePinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[13]
mi := &file_account_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -972,7 +1180,7 @@ func (x *RemovePinResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RemovePinResponse.ProtoReflect.Descriptor instead.
func (*RemovePinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{13}
return file_account_proto_rawDescGZIP(), []int{17}
}
func (x *RemovePinResponse) GetSuccess() bool {
@@ -1031,6 +1239,18 @@ const file_account_proto_rawDesc = "" +
"\x05_code\"L\n" +
"\x16ChangePasswordResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"a\n" +
"\x11CreateUserRequest\x12\x1a\n" +
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
"\x05roles\x18\x03 \x03(\tR\x05roles\"H\n" +
"\x12CreateUserResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\",\n" +
"\x11DeleteUserRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\"H\n" +
"\x12DeleteUserResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"\xeb\x03\n" +
"\x11ChangeDataRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
@@ -1090,12 +1310,16 @@ const file_account_proto_rawDesc = "" +
"session_id\x18\x03 \x01(\tR\tsessionId\"G\n" +
"\x11RemovePinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xab\x04\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xc5\x05\n" +
"\x0eAccountService\x12K\n" +
"\n" +
"GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" +
"\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12K\n" +
"\n" +
"CreateUser\x12\x1d.account.v1.CreateUserRequest\x1a\x1e.account.v1.CreateUserResponse\x12K\n" +
"\n" +
"DeleteUser\x12\x1d.account.v1.DeleteUserRequest\x1a\x1e.account.v1.DeleteUserResponse\x12K\n" +
"\n" +
"ChangeData\x12\x1d.account.v1.ChangeDataRequest\x1a\x1e.account.v1.ChangeDataResponse\x12?\n" +
"\x06SetPin\x12\x19.account.v1.SetPinRequest\x1a\x1a.account.v1.SetPinResponse\x12H\n" +
"\tUnlockPin\x12\x1c.account.v1.UnlockPinRequest\x1a\x1d.account.v1.UnlockPinResponse\x12Q\n" +
@@ -1114,40 +1338,48 @@ func file_account_proto_rawDescGZIP() []byte {
return file_account_proto_rawDescData
}
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_account_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse
(*ChangePasswordRequest)(nil), // 2: account.v1.ChangePasswordRequest
(*ChangePasswordResponse)(nil), // 3: account.v1.ChangePasswordResponse
(*ChangeDataRequest)(nil), // 4: account.v1.ChangeDataRequest
(*ChangeDataResponse)(nil), // 5: account.v1.ChangeDataResponse
(*SetPinRequest)(nil), // 6: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 7: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 8: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 9: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 10: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 11: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 12: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 13: account.v1.RemovePinResponse
(*CreateUserRequest)(nil), // 4: account.v1.CreateUserRequest
(*CreateUserResponse)(nil), // 5: account.v1.CreateUserResponse
(*DeleteUserRequest)(nil), // 6: account.v1.DeleteUserRequest
(*DeleteUserResponse)(nil), // 7: account.v1.DeleteUserResponse
(*ChangeDataRequest)(nil), // 8: account.v1.ChangeDataRequest
(*ChangeDataResponse)(nil), // 9: account.v1.ChangeDataResponse
(*SetPinRequest)(nil), // 10: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 11: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 12: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 13: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 14: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 15: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 16: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 17: account.v1.RemovePinResponse
}
var file_account_proto_depIdxs = []int32{
0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest
2, // 1: account.v1.AccountService.ChangePassword:input_type -> account.v1.ChangePasswordRequest
4, // 2: account.v1.AccountService.ChangeData:input_type -> account.v1.ChangeDataRequest
6, // 3: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
8, // 4: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
10, // 5: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
12, // 6: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 7: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 8: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 9: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse
7, // 10: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
9, // 11: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
11, // 12: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
13, // 13: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
7, // [7:14] is the sub-list for method output_type
0, // [0:7] is the sub-list for method input_type
4, // 2: account.v1.AccountService.CreateUser:input_type -> account.v1.CreateUserRequest
6, // 3: account.v1.AccountService.DeleteUser:input_type -> account.v1.DeleteUserRequest
8, // 4: account.v1.AccountService.ChangeData:input_type -> account.v1.ChangeDataRequest
10, // 5: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
12, // 6: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
14, // 7: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
16, // 8: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 9: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 10: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 11: account.v1.AccountService.CreateUser:output_type -> account.v1.CreateUserResponse
7, // 12: account.v1.AccountService.DeleteUser:output_type -> account.v1.DeleteUserResponse
9, // 13: account.v1.AccountService.ChangeData:output_type -> account.v1.ChangeDataResponse
11, // 14: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
13, // 15: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
15, // 16: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
17, // 17: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
9, // [9:18] is the sub-list for method output_type
0, // [0:9] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
@@ -1160,14 +1392,14 @@ func file_account_proto_init() {
}
file_account_proto_msgTypes[1].OneofWrappers = []any{}
file_account_proto_msgTypes[2].OneofWrappers = []any{}
file_account_proto_msgTypes[4].OneofWrappers = []any{}
file_account_proto_msgTypes[8].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
NumEnums: 0,
NumMessages: 14,
NumMessages: 18,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -21,6 +21,8 @@ const _ = grpc.SupportPackageIsVersion9
const (
AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount"
AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword"
AccountService_CreateUser_FullMethodName = "/account.v1.AccountService/CreateUser"
AccountService_DeleteUser_FullMethodName = "/account.v1.AccountService/DeleteUser"
AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData"
AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin"
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
@@ -34,6 +36,8 @@ const (
type AccountServiceClient interface {
GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error)
SetPin(ctx context.Context, in *SetPinRequest, opts ...grpc.CallOption) (*SetPinResponse, error)
UnlockPin(ctx context.Context, in *UnlockPinRequest, opts ...grpc.CallOption) (*UnlockPinResponse, error)
@@ -69,6 +73,26 @@ func (c *accountServiceClient) ChangePassword(ctx context.Context, in *ChangePas
return out, nil
}
func (c *accountServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(CreateUserResponse)
err := c.cc.Invoke(ctx, AccountService_CreateUser_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(DeleteUserResponse)
err := c.cc.Invoke(ctx, AccountService_DeleteUser_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *accountServiceClient) ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(ChangeDataResponse)
@@ -125,6 +149,8 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque
type AccountServiceServer interface {
GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error)
SetPin(context.Context, *SetPinRequest) (*SetPinResponse, error)
UnlockPin(context.Context, *UnlockPinRequest) (*UnlockPinResponse, error)
@@ -146,6 +172,12 @@ func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccount
func (UnimplementedAccountServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ChangePassword not implemented")
}
func (UnimplementedAccountServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) {
return nil, status.Error(codes.Unimplemented, "method CreateUser not implemented")
}
func (UnimplementedAccountServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteUser not implemented")
}
func (UnimplementedAccountServiceServer) ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error) {
return nil, status.Error(codes.Unimplemented, "method ChangeData not implemented")
}
@@ -218,6 +250,42 @@ func _AccountService_ChangePassword_Handler(srv interface{}, ctx context.Context
return interceptor(ctx, in, info, handler)
}
func _AccountService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).CreateUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_CreateUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).CreateUser(ctx, req.(*CreateUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AccountServiceServer).DeleteUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AccountService_DeleteUser_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountServiceServer).DeleteUser(ctx, req.(*DeleteUserRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AccountService_ChangeData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ChangeDataRequest)
if err := dec(in); err != nil {
@@ -323,6 +391,14 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
MethodName: "ChangePassword",
Handler: _AccountService_ChangePassword_Handler,
},
{
MethodName: "CreateUser",
Handler: _AccountService_CreateUser_Handler,
},
{
MethodName: "DeleteUser",
Handler: _AccountService_DeleteUser_Handler,
},
{
MethodName: "ChangeData",
Handler: _AccountService_ChangeData_Handler,