diff --git a/client/main.go b/client/main.go index 0496f26..fb22483 100644 --- a/client/main.go +++ b/client/main.go @@ -7,7 +7,7 @@ import ( "google.golang.org/grpc" "user-service/client/service" - users "user-service/pb" + "user-service/pb/users" ) func main() { diff --git a/client/service/access.go b/client/service/access.go index 86e1397..572115c 100644 --- a/client/service/access.go +++ b/client/service/access.go @@ -3,7 +3,7 @@ package service import ( "context" "log" - users "user-service/pb" + "user-service/pb/users" ) // ViewAccessTree service client diff --git a/client/service/auth.go b/client/service/auth.go index 7b1d9e7..47749ae 100644 --- a/client/service/auth.go +++ b/client/service/auth.go @@ -4,7 +4,7 @@ import ( "context" "log" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" ) // Login service client diff --git a/client/service/branch.go b/client/service/branch.go index 1c3d352..2d2eab5 100644 --- a/client/service/branch.go +++ b/client/service/branch.go @@ -4,7 +4,7 @@ import ( "context" "io" "log" - users "user-service/pb" + "user-service/pb/users" ) // CreateBranch service client diff --git a/client/service/company.go b/client/service/company.go index d597dbc..f229b9d 100644 --- a/client/service/company.go +++ b/client/service/company.go @@ -3,7 +3,7 @@ package service import ( "context" "log" - users "user-service/pb" + "user-service/pb/users" ) // Registration service client diff --git a/client/service/employee.go b/client/service/employee.go index e97b809..0a601e4 100644 --- a/client/service/employee.go +++ b/client/service/employee.go @@ -4,7 +4,7 @@ import ( "context" "io" "log" - users "user-service/pb" + "user-service/pb/users" ) // CreateEmployee service client diff --git a/client/service/feature.go b/client/service/feature.go index 26a7525..fcceca6 100644 --- a/client/service/feature.go +++ b/client/service/feature.go @@ -4,7 +4,7 @@ import ( "context" "io" "log" - users "user-service/pb" + "user-service/pb/users" ) // ListFeature service client diff --git a/client/service/group.go b/client/service/group.go index d0f03c2..6e1fb5d 100644 --- a/client/service/group.go +++ b/client/service/group.go @@ -4,7 +4,7 @@ import ( "context" "io" "log" - users "user-service/pb" + "user-service/pb/users" ) // CreateGroup service client diff --git a/client/service/region.go b/client/service/region.go index c13dd48..94a4487 100644 --- a/client/service/region.go +++ b/client/service/region.go @@ -4,7 +4,7 @@ import ( "context" "io" "log" - users "user-service/pb" + "user-service/pb/users" ) // CreateRegion service client diff --git a/client/service/user.go b/client/service/user.go index 3f57ce2..3596c01 100644 --- a/client/service/user.go +++ b/client/service/user.go @@ -3,7 +3,7 @@ package service import ( "io" "log" - users "user-service/pb" + "user-service/pb/users" "golang.org/x/net/context" ) diff --git a/internal/model/access.go b/internal/model/access.go index 2c1c14c..6dd7fed 100644 --- a/internal/model/access.go +++ b/internal/model/access.go @@ -3,7 +3,7 @@ package model import ( "context" "database/sql" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/model/branch.go b/internal/model/branch.go index 489d938..899a5c7 100644 --- a/internal/model/branch.go +++ b/internal/model/branch.go @@ -7,7 +7,7 @@ import ( "strings" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/golang/protobuf/ptypes" diff --git a/internal/model/company.go b/internal/model/company.go index 89b8613..682993d 100644 --- a/internal/model/company.go +++ b/internal/model/company.go @@ -5,7 +5,7 @@ import ( "database/sql" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/google/uuid" "golang.org/x/crypto/bcrypt" diff --git a/internal/model/employee.go b/internal/model/employee.go index cad5315..07b5354 100644 --- a/internal/model/employee.go +++ b/internal/model/employee.go @@ -7,7 +7,7 @@ import ( "strings" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/golang/protobuf/ptypes" "github.com/google/uuid" diff --git a/internal/model/feature.go b/internal/model/feature.go index 5ed141f..3195d00 100644 --- a/internal/model/feature.go +++ b/internal/model/feature.go @@ -3,7 +3,7 @@ package model import ( "context" "database/sql" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/model/group.go b/internal/model/group.go index e523cf0..de1b65c 100644 --- a/internal/model/group.go +++ b/internal/model/group.go @@ -8,7 +8,7 @@ import ( "strings" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/golang/protobuf/ptypes" diff --git a/internal/model/region.go b/internal/model/region.go index df7cf91..30cdcfa 100644 --- a/internal/model/region.go +++ b/internal/model/region.go @@ -7,7 +7,7 @@ import ( "strings" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/google/uuid" "google.golang.org/grpc/codes" diff --git a/internal/model/request_password.go b/internal/model/request_password.go index df96db0..41c3d4a 100644 --- a/internal/model/request_password.go +++ b/internal/model/request_password.go @@ -4,7 +4,7 @@ import ( "context" "database/sql" "time" - users "user-service/pb" + "user-service/pb/users" "github.com/golang/protobuf/ptypes" diff --git a/internal/model/user.go b/internal/model/user.go index 15aefeb..942a760 100644 --- a/internal/model/user.go +++ b/internal/model/user.go @@ -8,7 +8,7 @@ import ( "strings" "time" "user-service/internal/pkg/app" - users "user-service/pb" + "user-service/pb/users" "github.com/google/uuid" "golang.org/x/crypto/bcrypt" diff --git a/internal/route/route.go b/internal/route/route.go index cdbaeb8..d8b20d0 100644 --- a/internal/route/route.go +++ b/internal/route/route.go @@ -8,7 +8,7 @@ import ( "user-service/internal/pkg/db/redis" "user-service/internal/service" - users "user-service/pb" + "user-service/pb/users" ) // GrpcRoute func diff --git a/internal/service/access.go b/internal/service/access.go index 2f2298e..70ce1b6 100644 --- a/internal/service/access.go +++ b/internal/service/access.go @@ -5,7 +5,7 @@ import ( "database/sql" "user-service/internal/model" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/auth.go b/internal/service/auth.go index 97c7a19..984e942 100644 --- a/internal/service/auth.go +++ b/internal/service/auth.go @@ -16,7 +16,7 @@ import ( "user-service/internal/pkg/db/redis" "user-service/internal/pkg/email" "user-service/internal/pkg/token" - users "user-service/pb" + "user-service/pb/users" ) // Auth struct diff --git a/internal/service/branch.go b/internal/service/branch.go index 614180c..c81f797 100644 --- a/internal/service/branch.go +++ b/internal/service/branch.go @@ -3,7 +3,7 @@ package service import ( "context" "database/sql" - users "user-service/pb" + "user-service/pb/users" "user-service/internal/model" "user-service/internal/pkg/app" diff --git a/internal/service/company.go b/internal/service/company.go index 09b20b9..a77d2f2 100644 --- a/internal/service/company.go +++ b/internal/service/company.go @@ -5,7 +5,7 @@ import ( "database/sql" "os" "regexp" - users "user-service/pb" + "user-service/pb/users" "user-service/internal/model" "user-service/internal/pkg/app" diff --git a/internal/service/employee.go b/internal/service/employee.go index b1554e9..3d37f34 100644 --- a/internal/service/employee.go +++ b/internal/service/employee.go @@ -6,7 +6,7 @@ import ( "user-service/internal/model" "user-service/internal/pkg/app" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/feature.go b/internal/service/feature.go index e4d4094..1613607 100644 --- a/internal/service/feature.go +++ b/internal/service/feature.go @@ -3,7 +3,7 @@ package service import ( "database/sql" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/group.go b/internal/service/group.go index 47405f8..ed13eee 100644 --- a/internal/service/group.go +++ b/internal/service/group.go @@ -7,7 +7,7 @@ import ( "user-service/internal/model" "user-service/internal/pkg/app" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/package_feature.go b/internal/service/package_feature.go index 6d4bc02..7ec0d77 100644 --- a/internal/service/package_feature.go +++ b/internal/service/package_feature.go @@ -5,7 +5,7 @@ import ( "database/sql" "user-service/internal/model" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/region.go b/internal/service/region.go index e418b90..3a67c4d 100644 --- a/internal/service/region.go +++ b/internal/service/region.go @@ -7,7 +7,7 @@ import ( "user-service/internal/model" "user-service/internal/pkg/app" "user-service/internal/pkg/db/redis" - users "user-service/pb" + "user-service/pb/users" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/internal/service/user.go b/internal/service/user.go index a0898ee..31c73f0 100644 --- a/internal/service/user.go +++ b/internal/service/user.go @@ -10,7 +10,7 @@ import ( "user-service/internal/pkg/db/redis" "user-service/internal/pkg/email" "user-service/internal/pkg/token" - users "user-service/pb" + "user-service/pb/users" "github.com/sendgrid/sendgrid-go/helpers/mail" "google.golang.org/grpc/codes" diff --git a/makefile b/makefile index 133beab..c508e59 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ gen: - protoc --proto_path=proto proto/*.proto --go_out=plugins=grpc:. + protoc --proto_path=proto proto/users/*.proto --go_out=plugins=grpc:. init: go mod init user-service diff --git a/pb/access_message.pb.go b/pb/users/access_message.pb.go similarity index 53% rename from pb/access_message.pb.go rename to pb/users/access_message.pb.go index a68c796..34e5e58 100644 --- a/pb/access_message.pb.go +++ b/pb/users/access_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: access_message.proto +// source: users/access_message.proto package users @@ -43,7 +43,7 @@ type Access struct { func (x *Access) Reset() { *x = Access{} if protoimpl.UnsafeEnabled { - mi := &file_access_message_proto_msgTypes[0] + mi := &file_users_access_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -56,7 +56,7 @@ func (x *Access) String() string { func (*Access) ProtoMessage() {} func (x *Access) ProtoReflect() protoreflect.Message { - mi := &file_access_message_proto_msgTypes[0] + mi := &file_users_access_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -69,7 +69,7 @@ func (x *Access) ProtoReflect() protoreflect.Message { // Deprecated: Use Access.ProtoReflect.Descriptor instead. func (*Access) Descriptor() ([]byte, []int) { - return file_access_message_proto_rawDescGZIP(), []int{0} + return file_users_access_message_proto_rawDescGZIP(), []int{0} } func (x *Access) GetId() string { @@ -121,53 +121,53 @@ func (x *Access) GetUpdatedBy() string { return "" } -var File_access_message_proto protoreflect.FileDescriptor - -var file_access_message_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, 0x0a, 0x06, 0x41, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, - 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x73, 0x12, 0x39, 0x0a, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, +var File_users_access_message_proto protoreflect.FileDescriptor + +var file_users_access_message_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x02, + 0x0a, 0x06, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x09, + 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x09, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, + 0x6e, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, - 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_access_message_proto_rawDescOnce sync.Once - file_access_message_proto_rawDescData = file_access_message_proto_rawDesc + file_users_access_message_proto_rawDescOnce sync.Once + file_users_access_message_proto_rawDescData = file_users_access_message_proto_rawDesc ) -func file_access_message_proto_rawDescGZIP() []byte { - file_access_message_proto_rawDescOnce.Do(func() { - file_access_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_access_message_proto_rawDescData) +func file_users_access_message_proto_rawDescGZIP() []byte { + file_users_access_message_proto_rawDescOnce.Do(func() { + file_users_access_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_access_message_proto_rawDescData) }) - return file_access_message_proto_rawDescData + return file_users_access_message_proto_rawDescData } -var file_access_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_access_message_proto_goTypes = []interface{}{ +var file_users_access_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_access_message_proto_goTypes = []interface{}{ (*Access)(nil), // 0: wiradata.users.Access (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } -var file_access_message_proto_depIdxs = []int32{ +var file_users_access_message_proto_depIdxs = []int32{ 0, // 0: wiradata.users.Access.childrens:type_name -> wiradata.users.Access 1, // 1: wiradata.users.Access.created_at:type_name -> google.protobuf.Timestamp 1, // 2: wiradata.users.Access.updated_at:type_name -> google.protobuf.Timestamp @@ -178,13 +178,13 @@ var file_access_message_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_access_message_proto_init() } -func file_access_message_proto_init() { - if File_access_message_proto != nil { +func init() { file_users_access_message_proto_init() } +func file_users_access_message_proto_init() { + if File_users_access_message_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_access_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_access_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Access); i { case 0: return &v.state @@ -201,18 +201,18 @@ func file_access_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_access_message_proto_rawDesc, + RawDescriptor: file_users_access_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_access_message_proto_goTypes, - DependencyIndexes: file_access_message_proto_depIdxs, - MessageInfos: file_access_message_proto_msgTypes, + GoTypes: file_users_access_message_proto_goTypes, + DependencyIndexes: file_users_access_message_proto_depIdxs, + MessageInfos: file_users_access_message_proto_msgTypes, }.Build() - File_access_message_proto = out.File - file_access_message_proto_rawDesc = nil - file_access_message_proto_goTypes = nil - file_access_message_proto_depIdxs = nil + File_users_access_message_proto = out.File + file_users_access_message_proto_rawDesc = nil + file_users_access_message_proto_goTypes = nil + file_users_access_message_proto_depIdxs = nil } diff --git a/pb/access_service.pb.go b/pb/users/access_service.pb.go similarity index 66% rename from pb/access_service.pb.go rename to pb/users/access_service.pb.go index 99b0f61..45136d8 100644 --- a/pb/access_service.pb.go +++ b/pb/users/access_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: access_service.proto +// source: users/access_service.proto package users @@ -28,28 +28,29 @@ const ( // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 -var File_access_service_proto protoreflect.FileDescriptor - -var file_access_service_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x14, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x32, 0x48, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x00, 0x42, 0x0a, 0x5a, - 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, +var File_users_access_service_proto protoreflect.FileDescriptor + +var file_users_access_service_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1a, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x48, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x00, 0x42, + 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var file_access_service_proto_goTypes = []interface{}{ +var file_users_access_service_proto_goTypes = []interface{}{ (*Empty)(nil), // 0: wiradata.users.Empty (*Access)(nil), // 1: wiradata.users.Access } -var file_access_service_proto_depIdxs = []int32{ +var file_users_access_service_proto_depIdxs = []int32{ 0, // 0: wiradata.users.AccessService.List:input_type -> wiradata.users.Empty 1, // 1: wiradata.users.AccessService.List:output_type -> wiradata.users.Access 1, // [1:2] is the sub-list for method output_type @@ -59,30 +60,30 @@ var file_access_service_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_access_service_proto_init() } -func file_access_service_proto_init() { - if File_access_service_proto != nil { +func init() { file_users_access_service_proto_init() } +func file_users_access_service_proto_init() { + if File_users_access_service_proto != nil { return } - file_access_message_proto_init() - file_generic_message_proto_init() + file_users_access_message_proto_init() + file_users_generic_message_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_access_service_proto_rawDesc, + RawDescriptor: file_users_access_service_proto_rawDesc, NumEnums: 0, NumMessages: 0, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_access_service_proto_goTypes, - DependencyIndexes: file_access_service_proto_depIdxs, + GoTypes: file_users_access_service_proto_goTypes, + DependencyIndexes: file_users_access_service_proto_depIdxs, }.Build() - File_access_service_proto = out.File - file_access_service_proto_rawDesc = nil - file_access_service_proto_goTypes = nil - file_access_service_proto_depIdxs = nil + File_users_access_service_proto = out.File + file_users_access_service_proto_rawDesc = nil + file_users_access_service_proto_goTypes = nil + file_users_access_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -162,5 +163,5 @@ var _AccessService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "access_service.proto", + Metadata: "users/access_service.proto", } diff --git a/pb/auth_service.pb.go b/pb/users/auth_service.pb.go similarity index 71% rename from pb/auth_service.pb.go rename to pb/users/auth_service.pb.go index 8e2dea9..66453aa 100644 --- a/pb/auth_service.pb.go +++ b/pb/users/auth_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: auth_service.proto +// source: users/auth_service.proto package users @@ -41,7 +41,7 @@ type LoginRequest struct { func (x *LoginRequest) Reset() { *x = LoginRequest{} if protoimpl.UnsafeEnabled { - mi := &file_auth_service_proto_msgTypes[0] + mi := &file_users_auth_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -54,7 +54,7 @@ func (x *LoginRequest) String() string { func (*LoginRequest) ProtoMessage() {} func (x *LoginRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_service_proto_msgTypes[0] + mi := &file_users_auth_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -67,7 +67,7 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead. func (*LoginRequest) Descriptor() ([]byte, []int) { - return file_auth_service_proto_rawDescGZIP(), []int{0} + return file_users_auth_service_proto_rawDescGZIP(), []int{0} } func (x *LoginRequest) GetUsername() string { @@ -95,7 +95,7 @@ type ForgotPasswordRequest struct { func (x *ForgotPasswordRequest) Reset() { *x = ForgotPasswordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_auth_service_proto_msgTypes[1] + mi := &file_users_auth_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -108,7 +108,7 @@ func (x *ForgotPasswordRequest) String() string { func (*ForgotPasswordRequest) ProtoMessage() {} func (x *ForgotPasswordRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_service_proto_msgTypes[1] + mi := &file_users_auth_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -121,7 +121,7 @@ func (x *ForgotPasswordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ForgotPasswordRequest.ProtoReflect.Descriptor instead. func (*ForgotPasswordRequest) Descriptor() ([]byte, []int) { - return file_auth_service_proto_rawDescGZIP(), []int{1} + return file_users_auth_service_proto_rawDescGZIP(), []int{1} } func (x *ForgotPasswordRequest) GetEmail() string { @@ -144,7 +144,7 @@ type ResetPasswordRequest struct { func (x *ResetPasswordRequest) Reset() { *x = ResetPasswordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_auth_service_proto_msgTypes[2] + mi := &file_users_auth_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -157,7 +157,7 @@ func (x *ResetPasswordRequest) String() string { func (*ResetPasswordRequest) ProtoMessage() {} func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_service_proto_msgTypes[2] + mi := &file_users_auth_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -170,7 +170,7 @@ func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead. func (*ResetPasswordRequest) Descriptor() ([]byte, []int) { - return file_auth_service_proto_rawDescGZIP(), []int{2} + return file_users_auth_service_proto_rawDescGZIP(), []int{2} } func (x *ResetPasswordRequest) GetToken() string { @@ -207,7 +207,7 @@ type ChangePasswordRequest struct { func (x *ChangePasswordRequest) Reset() { *x = ChangePasswordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_auth_service_proto_msgTypes[3] + mi := &file_users_auth_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -220,7 +220,7 @@ func (x *ChangePasswordRequest) String() string { func (*ChangePasswordRequest) ProtoMessage() {} func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_service_proto_msgTypes[3] + mi := &file_users_auth_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -233,7 +233,7 @@ func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead. func (*ChangePasswordRequest) Descriptor() ([]byte, []int) { - return file_auth_service_proto_rawDescGZIP(), []int{3} + return file_users_auth_service_proto_rawDescGZIP(), []int{3} } func (x *ChangePasswordRequest) GetOldPassword() string { @@ -269,7 +269,7 @@ type LoginResponse struct { func (x *LoginResponse) Reset() { *x = LoginResponse{} if protoimpl.UnsafeEnabled { - mi := &file_auth_service_proto_msgTypes[4] + mi := &file_users_auth_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -282,7 +282,7 @@ func (x *LoginResponse) String() string { func (*LoginResponse) ProtoMessage() {} func (x *LoginResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_service_proto_msgTypes[4] + mi := &file_users_auth_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -295,7 +295,7 @@ func (x *LoginResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead. func (*LoginResponse) Descriptor() ([]byte, []int) { - return file_auth_service_proto_rawDescGZIP(), []int{4} + return file_users_auth_service_proto_rawDescGZIP(), []int{4} } func (x *LoginResponse) GetToken() string { @@ -312,84 +312,86 @@ func (x *LoginResponse) GetUser() *User { return nil } -var File_auth_service_proto protoreflect.FileDescriptor - -var file_auth_service_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x46, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2d, 0x0a, 0x15, 0x46, 0x6f, 0x72, 0x67, 0x6f, +var File_users_auth_service_proto protoreflect.FileDescriptor + +var file_users_auth_service_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x18, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x46, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2d, 0x0a, 0x15, 0x46, 0x6f, 0x72, + 0x67, 0x6f, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x70, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x70, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x5f, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7e, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x5f, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x4f, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, - 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x8c, 0x03, 0x0a, 0x0b, 0x41, 0x75, - 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x4c, 0x6f, 0x67, - 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, + 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7e, 0x0a, 0x15, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, + 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x4f, 0x0a, 0x0d, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x8c, 0x03, 0x0a, 0x0b, + 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x4c, + 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, 0x6f, 0x72, 0x67, 0x6f, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x49, - 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x1a, 0x17, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x74, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0e, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, + 0x06, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x1a, + 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_auth_service_proto_rawDescOnce sync.Once - file_auth_service_proto_rawDescData = file_auth_service_proto_rawDesc + file_users_auth_service_proto_rawDescOnce sync.Once + file_users_auth_service_proto_rawDescData = file_users_auth_service_proto_rawDesc ) -func file_auth_service_proto_rawDescGZIP() []byte { - file_auth_service_proto_rawDescOnce.Do(func() { - file_auth_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_service_proto_rawDescData) +func file_users_auth_service_proto_rawDescGZIP() []byte { + file_users_auth_service_proto_rawDescOnce.Do(func() { + file_users_auth_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_auth_service_proto_rawDescData) }) - return file_auth_service_proto_rawDescData + return file_users_auth_service_proto_rawDescData } -var file_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_auth_service_proto_goTypes = []interface{}{ +var file_users_auth_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_users_auth_service_proto_goTypes = []interface{}{ (*LoginRequest)(nil), // 0: wiradata.users.LoginRequest (*ForgotPasswordRequest)(nil), // 1: wiradata.users.ForgotPasswordRequest (*ResetPasswordRequest)(nil), // 2: wiradata.users.ResetPasswordRequest @@ -400,7 +402,7 @@ var file_auth_service_proto_goTypes = []interface{}{ (*Message)(nil), // 7: wiradata.users.Message (*Boolean)(nil), // 8: wiradata.users.Boolean } -var file_auth_service_proto_depIdxs = []int32{ +var file_users_auth_service_proto_depIdxs = []int32{ 5, // 0: wiradata.users.LoginResponse.user:type_name -> wiradata.users.User 0, // 1: wiradata.users.AuthService.Login:input_type -> wiradata.users.LoginRequest 1, // 2: wiradata.users.AuthService.ForgotPassword:input_type -> wiradata.users.ForgotPasswordRequest @@ -419,15 +421,15 @@ var file_auth_service_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_auth_service_proto_init() } -func file_auth_service_proto_init() { - if File_auth_service_proto != nil { +func init() { file_users_auth_service_proto_init() } +func file_users_auth_service_proto_init() { + if File_users_auth_service_proto != nil { return } - file_user_message_proto_init() - file_generic_message_proto_init() + file_users_user_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_auth_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_auth_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginRequest); i { case 0: return &v.state @@ -439,7 +441,7 @@ func file_auth_service_proto_init() { return nil } } - file_auth_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_auth_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ForgotPasswordRequest); i { case 0: return &v.state @@ -451,7 +453,7 @@ func file_auth_service_proto_init() { return nil } } - file_auth_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_auth_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResetPasswordRequest); i { case 0: return &v.state @@ -463,7 +465,7 @@ func file_auth_service_proto_init() { return nil } } - file_auth_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_users_auth_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChangePasswordRequest); i { case 0: return &v.state @@ -475,7 +477,7 @@ func file_auth_service_proto_init() { return nil } } - file_auth_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_users_auth_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LoginResponse); i { case 0: return &v.state @@ -492,20 +494,20 @@ func file_auth_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_auth_service_proto_rawDesc, + RawDescriptor: file_users_auth_service_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_auth_service_proto_goTypes, - DependencyIndexes: file_auth_service_proto_depIdxs, - MessageInfos: file_auth_service_proto_msgTypes, + GoTypes: file_users_auth_service_proto_goTypes, + DependencyIndexes: file_users_auth_service_proto_depIdxs, + MessageInfos: file_users_auth_service_proto_msgTypes, }.Build() - File_auth_service_proto = out.File - file_auth_service_proto_rawDesc = nil - file_auth_service_proto_goTypes = nil - file_auth_service_proto_depIdxs = nil + File_users_auth_service_proto = out.File + file_users_auth_service_proto_rawDesc = nil + file_users_auth_service_proto_goTypes = nil + file_users_auth_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -729,5 +731,5 @@ var _AuthService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "auth_service.proto", + Metadata: "users/auth_service.proto", } diff --git a/pb/branch_message.pb.go b/pb/users/branch_message.pb.go similarity index 54% rename from pb/branch_message.pb.go rename to pb/users/branch_message.pb.go index f9b3489..f7d5371 100644 --- a/pb/branch_message.pb.go +++ b/pb/users/branch_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: branch_message.proto +// source: users/branch_message.proto package users @@ -52,7 +52,7 @@ type Branch struct { func (x *Branch) Reset() { *x = Branch{} if protoimpl.UnsafeEnabled { - mi := &file_branch_message_proto_msgTypes[0] + mi := &file_users_branch_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65,7 +65,7 @@ func (x *Branch) String() string { func (*Branch) ProtoMessage() {} func (x *Branch) ProtoReflect() protoreflect.Message { - mi := &file_branch_message_proto_msgTypes[0] + mi := &file_users_branch_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -78,7 +78,7 @@ func (x *Branch) ProtoReflect() protoreflect.Message { // Deprecated: Use Branch.ProtoReflect.Descriptor instead. func (*Branch) Descriptor() ([]byte, []int) { - return file_branch_message_proto_rawDescGZIP(), []int{0} + return file_users_branch_message_proto_rawDescGZIP(), []int{0} } func (x *Branch) GetId() string { @@ -193,65 +193,65 @@ func (x *Branch) GetUpdatedBy() string { return "" } -var File_branch_message_proto protoreflect.FileDescriptor - -var file_branch_message_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x03, 0x0a, 0x06, 0x42, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x70, 0x77, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x70, 0x77, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, - 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, - 0x70, 0x69, 0x63, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x70, 0x69, 0x63, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, +var File_users_branch_message_proto protoreflect.FileDescriptor + +var file_users_branch_message_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x03, + 0x0a, 0x06, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, + 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, + 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x70, 0x77, 0x70, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x70, 0x77, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, + 0x6f, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, + 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x63, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, + 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x62, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, - 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x62, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x42, 0x79, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_branch_message_proto_rawDescOnce sync.Once - file_branch_message_proto_rawDescData = file_branch_message_proto_rawDesc + file_users_branch_message_proto_rawDescOnce sync.Once + file_users_branch_message_proto_rawDescData = file_users_branch_message_proto_rawDesc ) -func file_branch_message_proto_rawDescGZIP() []byte { - file_branch_message_proto_rawDescOnce.Do(func() { - file_branch_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_branch_message_proto_rawDescData) +func file_users_branch_message_proto_rawDescGZIP() []byte { + file_users_branch_message_proto_rawDescOnce.Do(func() { + file_users_branch_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_branch_message_proto_rawDescData) }) - return file_branch_message_proto_rawDescData + return file_users_branch_message_proto_rawDescData } -var file_branch_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_branch_message_proto_goTypes = []interface{}{ +var file_users_branch_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_branch_message_proto_goTypes = []interface{}{ (*Branch)(nil), // 0: wiradata.users.Branch (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } -var file_branch_message_proto_depIdxs = []int32{ +var file_users_branch_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.Branch.created_at:type_name -> google.protobuf.Timestamp 1, // 1: wiradata.users.Branch.updated_at:type_name -> google.protobuf.Timestamp 2, // [2:2] is the sub-list for method output_type @@ -261,13 +261,13 @@ var file_branch_message_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_branch_message_proto_init() } -func file_branch_message_proto_init() { - if File_branch_message_proto != nil { +func init() { file_users_branch_message_proto_init() } +func file_users_branch_message_proto_init() { + if File_users_branch_message_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_branch_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_branch_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Branch); i { case 0: return &v.state @@ -284,18 +284,18 @@ func file_branch_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_branch_message_proto_rawDesc, + RawDescriptor: file_users_branch_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_branch_message_proto_goTypes, - DependencyIndexes: file_branch_message_proto_depIdxs, - MessageInfos: file_branch_message_proto_msgTypes, + GoTypes: file_users_branch_message_proto_goTypes, + DependencyIndexes: file_users_branch_message_proto_depIdxs, + MessageInfos: file_users_branch_message_proto_msgTypes, }.Build() - File_branch_message_proto = out.File - file_branch_message_proto_rawDesc = nil - file_branch_message_proto_goTypes = nil - file_branch_message_proto_depIdxs = nil + File_users_branch_message_proto = out.File + file_users_branch_message_proto_rawDesc = nil + file_users_branch_message_proto_goTypes = nil + file_users_branch_message_proto_depIdxs = nil } diff --git a/pb/branch_service.pb.go b/pb/users/branch_service.pb.go similarity index 72% rename from pb/branch_service.pb.go rename to pb/users/branch_service.pb.go index 1918964..b7b3329 100644 --- a/pb/branch_service.pb.go +++ b/pb/users/branch_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: branch_service.proto +// source: users/branch_service.proto package users @@ -41,7 +41,7 @@ type ListBranchRequest struct { func (x *ListBranchRequest) Reset() { *x = ListBranchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_branch_service_proto_msgTypes[0] + mi := &file_users_branch_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -54,7 +54,7 @@ func (x *ListBranchRequest) String() string { func (*ListBranchRequest) ProtoMessage() {} func (x *ListBranchRequest) ProtoReflect() protoreflect.Message { - mi := &file_branch_service_proto_msgTypes[0] + mi := &file_users_branch_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -67,7 +67,7 @@ func (x *ListBranchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBranchRequest.ProtoReflect.Descriptor instead. func (*ListBranchRequest) Descriptor() ([]byte, []int) { - return file_branch_service_proto_rawDescGZIP(), []int{0} + return file_users_branch_service_proto_rawDescGZIP(), []int{0} } func (x *ListBranchRequest) GetPagination() *Pagination { @@ -97,7 +97,7 @@ type BranchPaginationResponse struct { func (x *BranchPaginationResponse) Reset() { *x = BranchPaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_branch_service_proto_msgTypes[1] + mi := &file_users_branch_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -110,7 +110,7 @@ func (x *BranchPaginationResponse) String() string { func (*BranchPaginationResponse) ProtoMessage() {} func (x *BranchPaginationResponse) ProtoReflect() protoreflect.Message { - mi := &file_branch_service_proto_msgTypes[1] + mi := &file_users_branch_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -123,7 +123,7 @@ func (x *BranchPaginationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BranchPaginationResponse.ProtoReflect.Descriptor instead. func (*BranchPaginationResponse) Descriptor() ([]byte, []int) { - return file_branch_service_proto_rawDescGZIP(), []int{1} + return file_users_branch_service_proto_rawDescGZIP(), []int{1} } func (x *BranchPaginationResponse) GetPagination() *Pagination { @@ -159,7 +159,7 @@ type ListBranchResponse struct { func (x *ListBranchResponse) Reset() { *x = ListBranchResponse{} if protoimpl.UnsafeEnabled { - mi := &file_branch_service_proto_msgTypes[2] + mi := &file_users_branch_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -172,7 +172,7 @@ func (x *ListBranchResponse) String() string { func (*ListBranchResponse) ProtoMessage() {} func (x *ListBranchResponse) ProtoReflect() protoreflect.Message { - mi := &file_branch_service_proto_msgTypes[2] + mi := &file_users_branch_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -185,7 +185,7 @@ func (x *ListBranchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBranchResponse.ProtoReflect.Descriptor instead. func (*ListBranchResponse) Descriptor() ([]byte, []int) { - return file_branch_service_proto_rawDescGZIP(), []int{2} + return file_users_branch_service_proto_rawDescGZIP(), []int{2} } func (x *ListBranchResponse) GetPagination() *BranchPaginationResponse { @@ -202,77 +202,79 @@ func (x *ListBranchResponse) GetBranch() *Branch { return nil } -var File_branch_service_proto protoreflect.FileDescriptor - -var file_branch_service_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x14, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x22, 0x89, 0x01, 0x0a, 0x18, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x8e, 0x01, - 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, - 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, +var File_users_branch_service_proto protoreflect.FileDescriptor + +var file_users_branch_service_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1a, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, + 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, - 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x32, 0xc9, - 0x02, 0x0a, 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x3a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x18, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x50, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x8e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x06, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x1a, 0x16, + 0x63, 0x68, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x2e, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x32, 0xc9, 0x02, 0x0a, 0x0d, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, 0x12, 0x3a, + 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x04, 0x56, 0x69, + 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, + 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, - 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, - 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x00, 0x12, 0x37, - 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x6f, - 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, - 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x04, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x10, 0x5a, 0x0e, + 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_branch_service_proto_rawDescOnce sync.Once - file_branch_service_proto_rawDescData = file_branch_service_proto_rawDesc + file_users_branch_service_proto_rawDescOnce sync.Once + file_users_branch_service_proto_rawDescData = file_users_branch_service_proto_rawDesc ) -func file_branch_service_proto_rawDescGZIP() []byte { - file_branch_service_proto_rawDescOnce.Do(func() { - file_branch_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_branch_service_proto_rawDescData) +func file_users_branch_service_proto_rawDescGZIP() []byte { + file_users_branch_service_proto_rawDescOnce.Do(func() { + file_users_branch_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_branch_service_proto_rawDescData) }) - return file_branch_service_proto_rawDescData + return file_users_branch_service_proto_rawDescData } -var file_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_branch_service_proto_goTypes = []interface{}{ +var file_users_branch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_users_branch_service_proto_goTypes = []interface{}{ (*ListBranchRequest)(nil), // 0: wiradata.users.ListBranchRequest (*BranchPaginationResponse)(nil), // 1: wiradata.users.BranchPaginationResponse (*ListBranchResponse)(nil), // 2: wiradata.users.ListBranchResponse @@ -281,7 +283,7 @@ var file_branch_service_proto_goTypes = []interface{}{ (*Id)(nil), // 5: wiradata.users.Id (*Boolean)(nil), // 6: wiradata.users.Boolean } -var file_branch_service_proto_depIdxs = []int32{ +var file_users_branch_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListBranchRequest.pagination:type_name -> wiradata.users.Pagination 3, // 1: wiradata.users.BranchPaginationResponse.pagination:type_name -> wiradata.users.Pagination 1, // 2: wiradata.users.ListBranchResponse.pagination:type_name -> wiradata.users.BranchPaginationResponse @@ -303,15 +305,15 @@ var file_branch_service_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_branch_service_proto_init() } -func file_branch_service_proto_init() { - if File_branch_service_proto != nil { +func init() { file_users_branch_service_proto_init() } +func file_users_branch_service_proto_init() { + if File_users_branch_service_proto != nil { return } - file_branch_message_proto_init() - file_generic_message_proto_init() + file_users_branch_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_branch_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_branch_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListBranchRequest); i { case 0: return &v.state @@ -323,7 +325,7 @@ func file_branch_service_proto_init() { return nil } } - file_branch_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_branch_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BranchPaginationResponse); i { case 0: return &v.state @@ -335,7 +337,7 @@ func file_branch_service_proto_init() { return nil } } - file_branch_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_branch_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListBranchResponse); i { case 0: return &v.state @@ -352,20 +354,20 @@ func file_branch_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_branch_service_proto_rawDesc, + RawDescriptor: file_users_branch_service_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_branch_service_proto_goTypes, - DependencyIndexes: file_branch_service_proto_depIdxs, - MessageInfos: file_branch_service_proto_msgTypes, + GoTypes: file_users_branch_service_proto_goTypes, + DependencyIndexes: file_users_branch_service_proto_depIdxs, + MessageInfos: file_users_branch_service_proto_msgTypes, }.Build() - File_branch_service_proto = out.File - file_branch_service_proto_rawDesc = nil - file_branch_service_proto_goTypes = nil - file_branch_service_proto_depIdxs = nil + File_users_branch_service_proto = out.File + file_users_branch_service_proto_rawDesc = nil + file_users_branch_service_proto_goTypes = nil + file_users_branch_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -617,5 +619,5 @@ var _BranchService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "branch_service.proto", + Metadata: "users/branch_service.proto", } diff --git a/pb/company_message.pb.go b/pb/users/company_message.pb.go similarity index 52% rename from pb/company_message.pb.go rename to pb/users/company_message.pb.go index 1ac3ea7..c5526bd 100644 --- a/pb/company_message.pb.go +++ b/pb/users/company_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: company_message.proto +// source: users/company_message.proto package users @@ -52,7 +52,7 @@ type Company struct { func (x *Company) Reset() { *x = Company{} if protoimpl.UnsafeEnabled { - mi := &file_company_message_proto_msgTypes[0] + mi := &file_users_company_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65,7 +65,7 @@ func (x *Company) String() string { func (*Company) ProtoMessage() {} func (x *Company) ProtoReflect() protoreflect.Message { - mi := &file_company_message_proto_msgTypes[0] + mi := &file_users_company_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -78,7 +78,7 @@ func (x *Company) ProtoReflect() protoreflect.Message { // Deprecated: Use Company.ProtoReflect.Descriptor instead. func (*Company) Descriptor() ([]byte, []int) { - return file_company_message_proto_rawDescGZIP(), []int{0} + return file_users_company_message_proto_rawDescGZIP(), []int{0} } func (x *Company) GetId() string { @@ -193,72 +193,73 @@ func (x *Company) GetUpdatedBy() string { return "" } -var File_company_message_proto protoreflect.FileDescriptor - -var file_company_message_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x96, 0x04, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, - 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x70, 0x77, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x70, 0x77, - 0x70, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x63, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x63, - 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, - 0x63, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x12, 0x52, 0x0a, 0x12, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x10, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x33, - 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, - 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_company_message_proto protoreflect.FileDescriptor + +var file_users_company_message_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x04, 0x0a, 0x07, + 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x70, 0x77, + 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x70, 0x77, 0x70, 0x12, 0x14, 0x0a, + 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, + 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x70, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x69, 0x63, 0x5f, 0x70, 0x68, 0x6f, + 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x50, 0x68, 0x6f, + 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x12, 0x52, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, + 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x10, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, + 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x42, 0x79, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_company_message_proto_rawDescOnce sync.Once - file_company_message_proto_rawDescData = file_company_message_proto_rawDesc + file_users_company_message_proto_rawDescOnce sync.Once + file_users_company_message_proto_rawDescData = file_users_company_message_proto_rawDesc ) -func file_company_message_proto_rawDescGZIP() []byte { - file_company_message_proto_rawDescOnce.Do(func() { - file_company_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_company_message_proto_rawDescData) +func file_users_company_message_proto_rawDescGZIP() []byte { + file_users_company_message_proto_rawDescOnce.Do(func() { + file_users_company_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_company_message_proto_rawDescData) }) - return file_company_message_proto_rawDescData + return file_users_company_message_proto_rawDescData } -var file_company_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_company_message_proto_goTypes = []interface{}{ +var file_users_company_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_company_message_proto_goTypes = []interface{}{ (*Company)(nil), // 0: wiradata.users.Company (EnumPackageOfFeature)(0), // 1: wiradata.users.EnumPackageOfFeature (*Feature)(nil), // 2: wiradata.users.Feature (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } -var file_company_message_proto_depIdxs = []int32{ +var file_users_company_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.Company.package_of_feature:type_name -> wiradata.users.EnumPackageOfFeature 2, // 1: wiradata.users.Company.features:type_name -> wiradata.users.Feature 3, // 2: wiradata.users.Company.created_at:type_name -> google.protobuf.Timestamp @@ -270,14 +271,14 @@ var file_company_message_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_company_message_proto_init() } -func file_company_message_proto_init() { - if File_company_message_proto != nil { +func init() { file_users_company_message_proto_init() } +func file_users_company_message_proto_init() { + if File_users_company_message_proto != nil { return } - file_feature_message_proto_init() + file_users_feature_message_proto_init() if !protoimpl.UnsafeEnabled { - file_company_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_company_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Company); i { case 0: return &v.state @@ -294,18 +295,18 @@ func file_company_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_company_message_proto_rawDesc, + RawDescriptor: file_users_company_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_company_message_proto_goTypes, - DependencyIndexes: file_company_message_proto_depIdxs, - MessageInfos: file_company_message_proto_msgTypes, + GoTypes: file_users_company_message_proto_goTypes, + DependencyIndexes: file_users_company_message_proto_depIdxs, + MessageInfos: file_users_company_message_proto_msgTypes, }.Build() - File_company_message_proto = out.File - file_company_message_proto_rawDesc = nil - file_company_message_proto_goTypes = nil - file_company_message_proto_depIdxs = nil + File_users_company_message_proto = out.File + file_users_company_message_proto_rawDesc = nil + file_users_company_message_proto_goTypes = nil + file_users_company_message_proto_depIdxs = nil } diff --git a/pb/company_service.pb.go b/pb/users/company_service.pb.go similarity index 65% rename from pb/company_service.pb.go rename to pb/users/company_service.pb.go index 1bcc22d..4c9b387 100644 --- a/pb/company_service.pb.go +++ b/pb/users/company_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: company_service.proto +// source: users/company_service.proto package users @@ -41,7 +41,7 @@ type CompanyRegistration struct { func (x *CompanyRegistration) Reset() { *x = CompanyRegistration{} if protoimpl.UnsafeEnabled { - mi := &file_company_service_proto_msgTypes[0] + mi := &file_users_company_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -54,7 +54,7 @@ func (x *CompanyRegistration) String() string { func (*CompanyRegistration) ProtoMessage() {} func (x *CompanyRegistration) ProtoReflect() protoreflect.Message { - mi := &file_company_service_proto_msgTypes[0] + mi := &file_users_company_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -67,7 +67,7 @@ func (x *CompanyRegistration) ProtoReflect() protoreflect.Message { // Deprecated: Use CompanyRegistration.ProtoReflect.Descriptor instead. func (*CompanyRegistration) Descriptor() ([]byte, []int) { - return file_company_service_proto_rawDescGZIP(), []int{0} + return file_users_company_service_proto_rawDescGZIP(), []int{0} } func (x *CompanyRegistration) GetCompany() *Company { @@ -84,61 +84,63 @@ func (x *CompanyRegistration) GetUser() *User { return nil } -var File_company_service_proto protoreflect.FileDescriptor - -var file_company_service_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, 0x0a, 0x13, 0x43, 0x6f, 0x6d, - 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x6e, 0x79, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xe1, 0x01, - 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x5a, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x23, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x23, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x06, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x1a, - 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x56, 0x69, - 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x22, - 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_company_service_proto protoreflect.FileDescriptor + +var file_users_company_service_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1b, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x72, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, + 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, + 0x6e, 0x79, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x28, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xe1, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, + 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, + 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x23, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x3c, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, + 0x22, 0x00, 0x12, 0x35, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_company_service_proto_rawDescOnce sync.Once - file_company_service_proto_rawDescData = file_company_service_proto_rawDesc + file_users_company_service_proto_rawDescOnce sync.Once + file_users_company_service_proto_rawDescData = file_users_company_service_proto_rawDesc ) -func file_company_service_proto_rawDescGZIP() []byte { - file_company_service_proto_rawDescOnce.Do(func() { - file_company_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_company_service_proto_rawDescData) +func file_users_company_service_proto_rawDescGZIP() []byte { + file_users_company_service_proto_rawDescOnce.Do(func() { + file_users_company_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_company_service_proto_rawDescData) }) - return file_company_service_proto_rawDescData + return file_users_company_service_proto_rawDescData } -var file_company_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_company_service_proto_goTypes = []interface{}{ +var file_users_company_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_company_service_proto_goTypes = []interface{}{ (*CompanyRegistration)(nil), // 0: wiradata.users.CompanyRegistration (*Company)(nil), // 1: wiradata.users.Company (*User)(nil), // 2: wiradata.users.User (*Id)(nil), // 3: wiradata.users.Id } -var file_company_service_proto_depIdxs = []int32{ +var file_users_company_service_proto_depIdxs = []int32{ 1, // 0: wiradata.users.CompanyRegistration.company:type_name -> wiradata.users.Company 2, // 1: wiradata.users.CompanyRegistration.user:type_name -> wiradata.users.User 0, // 2: wiradata.users.CompanyService.Registration:input_type -> wiradata.users.CompanyRegistration @@ -154,16 +156,16 @@ var file_company_service_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_company_service_proto_init() } -func file_company_service_proto_init() { - if File_company_service_proto != nil { +func init() { file_users_company_service_proto_init() } +func file_users_company_service_proto_init() { + if File_users_company_service_proto != nil { return } - file_company_message_proto_init() - file_generic_message_proto_init() - file_user_message_proto_init() + file_users_company_message_proto_init() + file_users_generic_message_proto_init() + file_users_user_message_proto_init() if !protoimpl.UnsafeEnabled { - file_company_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_company_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CompanyRegistration); i { case 0: return &v.state @@ -180,20 +182,20 @@ func file_company_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_company_service_proto_rawDesc, + RawDescriptor: file_users_company_service_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_company_service_proto_goTypes, - DependencyIndexes: file_company_service_proto_depIdxs, - MessageInfos: file_company_service_proto_msgTypes, + GoTypes: file_users_company_service_proto_goTypes, + DependencyIndexes: file_users_company_service_proto_depIdxs, + MessageInfos: file_users_company_service_proto_msgTypes, }.Build() - File_company_service_proto = out.File - file_company_service_proto_rawDesc = nil - file_company_service_proto_goTypes = nil - file_company_service_proto_depIdxs = nil + File_users_company_service_proto = out.File + file_users_company_service_proto_rawDesc = nil + file_users_company_service_proto_goTypes = nil + file_users_company_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -345,5 +347,5 @@ var _CompanyService_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "company_service.proto", + Metadata: "users/company_service.proto", } diff --git a/pb/employee_message.pb.go b/pb/users/employee_message.pb.go similarity index 51% rename from pb/employee_message.pb.go rename to pb/users/employee_message.pb.go index 2976680..466627b 100644 --- a/pb/employee_message.pb.go +++ b/pb/users/employee_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: employee_message.proto +// source: users/employee_message.proto package users @@ -48,7 +48,7 @@ type Employee struct { func (x *Employee) Reset() { *x = Employee{} if protoimpl.UnsafeEnabled { - mi := &file_employee_message_proto_msgTypes[0] + mi := &file_users_employee_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61,7 +61,7 @@ func (x *Employee) String() string { func (*Employee) ProtoMessage() {} func (x *Employee) ProtoReflect() protoreflect.Message { - mi := &file_employee_message_proto_msgTypes[0] + mi := &file_users_employee_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -74,7 +74,7 @@ func (x *Employee) ProtoReflect() protoreflect.Message { // Deprecated: Use Employee.ProtoReflect.Descriptor instead. func (*Employee) Descriptor() ([]byte, []int) { - return file_employee_message_proto_rawDescGZIP(), []int{0} + return file_users_employee_message_proto_rawDescGZIP(), []int{0} } func (x *Employee) GetId() string { @@ -161,62 +161,63 @@ func (x *Employee) GetUpdatedBy() string { return "" } -var File_employee_message_proto protoreflect.FileDescriptor +var File_users_employee_message_proto protoreflect.FileDescriptor -var file_employee_message_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x03, - 0x0a, 0x08, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x61, 0x62, 0x61, 0x74, 0x61, - 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x61, 0x62, 0x61, 0x74, 0x61, 0x6e, - 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x62, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_users_employee_message_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, + 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x18, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x03, 0x0a, 0x08, 0x45, 0x6d, + 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x61, 0x62, 0x61, 0x74, 0x61, 0x6e, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x61, 0x62, 0x61, 0x74, 0x61, 0x6e, 0x12, 0x39, 0x0a, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, + 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_employee_message_proto_rawDescOnce sync.Once - file_employee_message_proto_rawDescData = file_employee_message_proto_rawDesc + file_users_employee_message_proto_rawDescOnce sync.Once + file_users_employee_message_proto_rawDescData = file_users_employee_message_proto_rawDesc ) -func file_employee_message_proto_rawDescGZIP() []byte { - file_employee_message_proto_rawDescOnce.Do(func() { - file_employee_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_employee_message_proto_rawDescData) +func file_users_employee_message_proto_rawDescGZIP() []byte { + file_users_employee_message_proto_rawDescOnce.Do(func() { + file_users_employee_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_employee_message_proto_rawDescData) }) - return file_employee_message_proto_rawDescData + return file_users_employee_message_proto_rawDescData } -var file_employee_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_employee_message_proto_goTypes = []interface{}{ +var file_users_employee_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_employee_message_proto_goTypes = []interface{}{ (*Employee)(nil), // 0: wiradata.users.Employee (*User)(nil), // 1: wiradata.users.User (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } -var file_employee_message_proto_depIdxs = []int32{ +var file_users_employee_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.Employee.user:type_name -> wiradata.users.User 2, // 1: wiradata.users.Employee.created_at:type_name -> google.protobuf.Timestamp 2, // 2: wiradata.users.Employee.updated_at:type_name -> google.protobuf.Timestamp @@ -227,14 +228,14 @@ var file_employee_message_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_employee_message_proto_init() } -func file_employee_message_proto_init() { - if File_employee_message_proto != nil { +func init() { file_users_employee_message_proto_init() } +func file_users_employee_message_proto_init() { + if File_users_employee_message_proto != nil { return } - file_user_message_proto_init() + file_users_user_message_proto_init() if !protoimpl.UnsafeEnabled { - file_employee_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_employee_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Employee); i { case 0: return &v.state @@ -251,18 +252,18 @@ func file_employee_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_employee_message_proto_rawDesc, + RawDescriptor: file_users_employee_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_employee_message_proto_goTypes, - DependencyIndexes: file_employee_message_proto_depIdxs, - MessageInfos: file_employee_message_proto_msgTypes, + GoTypes: file_users_employee_message_proto_goTypes, + DependencyIndexes: file_users_employee_message_proto_depIdxs, + MessageInfos: file_users_employee_message_proto_msgTypes, }.Build() - File_employee_message_proto = out.File - file_employee_message_proto_rawDesc = nil - file_employee_message_proto_goTypes = nil - file_employee_message_proto_depIdxs = nil + File_users_employee_message_proto = out.File + file_users_employee_message_proto_rawDesc = nil + file_users_employee_message_proto_goTypes = nil + file_users_employee_message_proto_depIdxs = nil } diff --git a/pb/employee_service.pb.go b/pb/users/employee_service.pb.go similarity index 70% rename from pb/employee_service.pb.go rename to pb/users/employee_service.pb.go index 6ef1522..7eb3972 100644 --- a/pb/employee_service.pb.go +++ b/pb/users/employee_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: employee_service.proto +// source: users/employee_service.proto package users @@ -42,7 +42,7 @@ type ListEmployeeRequest struct { func (x *ListEmployeeRequest) Reset() { *x = ListEmployeeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_employee_service_proto_msgTypes[0] + mi := &file_users_employee_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -55,7 +55,7 @@ func (x *ListEmployeeRequest) String() string { func (*ListEmployeeRequest) ProtoMessage() {} func (x *ListEmployeeRequest) ProtoReflect() protoreflect.Message { - mi := &file_employee_service_proto_msgTypes[0] + mi := &file_users_employee_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -68,7 +68,7 @@ func (x *ListEmployeeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEmployeeRequest.ProtoReflect.Descriptor instead. func (*ListEmployeeRequest) Descriptor() ([]byte, []int) { - return file_employee_service_proto_rawDescGZIP(), []int{0} + return file_users_employee_service_proto_rawDescGZIP(), []int{0} } func (x *ListEmployeeRequest) GetPagination() *Pagination { @@ -106,7 +106,7 @@ type EmployeePaginationResponse struct { func (x *EmployeePaginationResponse) Reset() { *x = EmployeePaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_employee_service_proto_msgTypes[1] + mi := &file_users_employee_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -119,7 +119,7 @@ func (x *EmployeePaginationResponse) String() string { func (*EmployeePaginationResponse) ProtoMessage() {} func (x *EmployeePaginationResponse) ProtoReflect() protoreflect.Message { - mi := &file_employee_service_proto_msgTypes[1] + mi := &file_users_employee_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -132,7 +132,7 @@ func (x *EmployeePaginationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EmployeePaginationResponse.ProtoReflect.Descriptor instead. func (*EmployeePaginationResponse) Descriptor() ([]byte, []int) { - return file_employee_service_proto_rawDescGZIP(), []int{1} + return file_users_employee_service_proto_rawDescGZIP(), []int{1} } func (x *EmployeePaginationResponse) GetPagination() *Pagination { @@ -175,7 +175,7 @@ type ListEmployeeResponse struct { func (x *ListEmployeeResponse) Reset() { *x = ListEmployeeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_employee_service_proto_msgTypes[2] + mi := &file_users_employee_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -188,7 +188,7 @@ func (x *ListEmployeeResponse) String() string { func (*ListEmployeeResponse) ProtoMessage() {} func (x *ListEmployeeResponse) ProtoReflect() protoreflect.Message { - mi := &file_employee_service_proto_msgTypes[2] + mi := &file_users_employee_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -201,7 +201,7 @@ func (x *ListEmployeeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEmployeeResponse.ProtoReflect.Descriptor instead. func (*ListEmployeeResponse) Descriptor() ([]byte, []int) { - return file_employee_service_proto_rawDescGZIP(), []int{2} + return file_users_employee_service_proto_rawDescGZIP(), []int{2} } func (x *ListEmployeeResponse) GetPagination() *EmployeePaginationResponse { @@ -218,83 +218,85 @@ func (x *ListEmployeeResponse) GetEmployee() *Employee { return nil } -var File_employee_service_proto protoreflect.FileDescriptor - -var file_employee_service_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x16, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, - 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, - 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0xa8, 0x01, 0x0a, 0x1a, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x65, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x22, 0x98, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, - 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, - 0x65, 0x52, 0x08, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x32, 0xd9, 0x02, 0x0a, 0x0f, - 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x3e, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x65, 0x1a, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, 0x00, 0x12, - 0x3e, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, +var File_users_employee_service_proto protoreflect.FileDescriptor + +var file_users_employee_service_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1c, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 0x01, 0x0a, 0x13, 0x4c, 0x69, + 0x73, 0x74, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, + 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0xa8, 0x01, 0x0a, 0x1a, 0x45, 0x6d, 0x70, 0x6c, + 0x6f, 0x79, 0x65, 0x65, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6d, 0x70, 0x6c, 0x6f, + 0x79, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x08, 0x65, 0x6d, 0x70, 0x6c, 0x6f, + 0x79, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x65, 0x1a, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, 0x00, 0x12, - 0x36, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x18, 0x2e, 0x77, 0x69, + 0x79, 0x65, 0x65, 0x52, 0x08, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x32, 0xd9, 0x02, + 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, - 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, - 0x12, 0x55, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6d, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x1a, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, + 0x00, 0x12, 0x3e, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, + 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x1a, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, + 0x00, 0x12, 0x36, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x18, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, + 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x22, 0x00, 0x12, 0x55, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( - file_employee_service_proto_rawDescOnce sync.Once - file_employee_service_proto_rawDescData = file_employee_service_proto_rawDesc + file_users_employee_service_proto_rawDescOnce sync.Once + file_users_employee_service_proto_rawDescData = file_users_employee_service_proto_rawDesc ) -func file_employee_service_proto_rawDescGZIP() []byte { - file_employee_service_proto_rawDescOnce.Do(func() { - file_employee_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_employee_service_proto_rawDescData) +func file_users_employee_service_proto_rawDescGZIP() []byte { + file_users_employee_service_proto_rawDescOnce.Do(func() { + file_users_employee_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_employee_service_proto_rawDescData) }) - return file_employee_service_proto_rawDescData + return file_users_employee_service_proto_rawDescData } -var file_employee_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_employee_service_proto_goTypes = []interface{}{ +var file_users_employee_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_users_employee_service_proto_goTypes = []interface{}{ (*ListEmployeeRequest)(nil), // 0: wiradata.users.ListEmployeeRequest (*EmployeePaginationResponse)(nil), // 1: wiradata.users.EmployeePaginationResponse (*ListEmployeeResponse)(nil), // 2: wiradata.users.ListEmployeeResponse @@ -303,7 +305,7 @@ var file_employee_service_proto_goTypes = []interface{}{ (*Id)(nil), // 5: wiradata.users.Id (*Boolean)(nil), // 6: wiradata.users.Boolean } -var file_employee_service_proto_depIdxs = []int32{ +var file_users_employee_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListEmployeeRequest.pagination:type_name -> wiradata.users.Pagination 3, // 1: wiradata.users.EmployeePaginationResponse.pagination:type_name -> wiradata.users.Pagination 1, // 2: wiradata.users.ListEmployeeResponse.pagination:type_name -> wiradata.users.EmployeePaginationResponse @@ -325,15 +327,15 @@ var file_employee_service_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_employee_service_proto_init() } -func file_employee_service_proto_init() { - if File_employee_service_proto != nil { +func init() { file_users_employee_service_proto_init() } +func file_users_employee_service_proto_init() { + if File_users_employee_service_proto != nil { return } - file_employee_message_proto_init() - file_generic_message_proto_init() + file_users_employee_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_employee_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_employee_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListEmployeeRequest); i { case 0: return &v.state @@ -345,7 +347,7 @@ func file_employee_service_proto_init() { return nil } } - file_employee_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_employee_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EmployeePaginationResponse); i { case 0: return &v.state @@ -357,7 +359,7 @@ func file_employee_service_proto_init() { return nil } } - file_employee_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_employee_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListEmployeeResponse); i { case 0: return &v.state @@ -374,20 +376,20 @@ func file_employee_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_employee_service_proto_rawDesc, + RawDescriptor: file_users_employee_service_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_employee_service_proto_goTypes, - DependencyIndexes: file_employee_service_proto_depIdxs, - MessageInfos: file_employee_service_proto_msgTypes, + GoTypes: file_users_employee_service_proto_goTypes, + DependencyIndexes: file_users_employee_service_proto_depIdxs, + MessageInfos: file_users_employee_service_proto_msgTypes, }.Build() - File_employee_service_proto = out.File - file_employee_service_proto_rawDesc = nil - file_employee_service_proto_goTypes = nil - file_employee_service_proto_depIdxs = nil + File_users_employee_service_proto = out.File + file_users_employee_service_proto_rawDesc = nil + file_users_employee_service_proto_goTypes = nil + file_users_employee_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -639,5 +641,5 @@ var _EmployeeService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "employee_service.proto", + Metadata: "users/employee_service.proto", } diff --git a/pb/feature_message.pb.go b/pb/users/feature_message.pb.go similarity index 57% rename from pb/feature_message.pb.go rename to pb/users/feature_message.pb.go index 34cd6f7..f4c9771 100644 --- a/pb/feature_message.pb.go +++ b/pb/users/feature_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: feature_message.proto +// source: users/feature_message.proto package users @@ -59,11 +59,11 @@ func (x EnumPackageOfFeature) String() string { } func (EnumPackageOfFeature) Descriptor() protoreflect.EnumDescriptor { - return file_feature_message_proto_enumTypes[0].Descriptor() + return file_users_feature_message_proto_enumTypes[0].Descriptor() } func (EnumPackageOfFeature) Type() protoreflect.EnumType { - return &file_feature_message_proto_enumTypes[0] + return &file_users_feature_message_proto_enumTypes[0] } func (x EnumPackageOfFeature) Number() protoreflect.EnumNumber { @@ -72,7 +72,7 @@ func (x EnumPackageOfFeature) Number() protoreflect.EnumNumber { // Deprecated: Use EnumPackageOfFeature.Descriptor instead. func (EnumPackageOfFeature) EnumDescriptor() ([]byte, []int) { - return file_feature_message_proto_rawDescGZIP(), []int{0} + return file_users_feature_message_proto_rawDescGZIP(), []int{0} } type Feature struct { @@ -91,7 +91,7 @@ type Feature struct { func (x *Feature) Reset() { *x = Feature{} if protoimpl.UnsafeEnabled { - mi := &file_feature_message_proto_msgTypes[0] + mi := &file_users_feature_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -104,7 +104,7 @@ func (x *Feature) String() string { func (*Feature) ProtoMessage() {} func (x *Feature) ProtoReflect() protoreflect.Message { - mi := &file_feature_message_proto_msgTypes[0] + mi := &file_users_feature_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -117,7 +117,7 @@ func (x *Feature) ProtoReflect() protoreflect.Message { // Deprecated: Use Feature.ProtoReflect.Descriptor instead. func (*Feature) Descriptor() ([]byte, []int) { - return file_feature_message_proto_rawDescGZIP(), []int{0} + return file_users_feature_message_proto_rawDescGZIP(), []int{0} } func (x *Feature) GetId() string { @@ -175,7 +175,7 @@ type PackageOfFeature struct { func (x *PackageOfFeature) Reset() { *x = PackageOfFeature{} if protoimpl.UnsafeEnabled { - mi := &file_feature_message_proto_msgTypes[1] + mi := &file_users_feature_message_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -188,7 +188,7 @@ func (x *PackageOfFeature) String() string { func (*PackageOfFeature) ProtoMessage() {} func (x *PackageOfFeature) ProtoReflect() protoreflect.Message { - mi := &file_feature_message_proto_msgTypes[1] + mi := &file_users_feature_message_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -201,7 +201,7 @@ func (x *PackageOfFeature) ProtoReflect() protoreflect.Message { // Deprecated: Use PackageOfFeature.ProtoReflect.Descriptor instead. func (*PackageOfFeature) Descriptor() ([]byte, []int) { - return file_feature_message_proto_rawDescGZIP(), []int{1} + return file_users_feature_message_proto_rawDescGZIP(), []int{1} } func (x *PackageOfFeature) GetId() string { @@ -225,65 +225,66 @@ func (x *PackageOfFeature) GetFeatures() []*Feature { return nil } -var File_feature_message_proto protoreflect.FileDescriptor - -var file_feature_message_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x01, 0x0a, 0x07, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, +var File_users_feature_message_proto protoreflect.FileDescriptor + +var file_users_feature_message_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, + 0x01, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x22, 0x91, 0x01, 0x0a, - 0x10, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, - 0x2a, 0x38, 0x0a, 0x14, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, - 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, - 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, - 0x07, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x45, 0x10, 0x02, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, - 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x42, 0x79, 0x22, 0x91, 0x01, 0x0a, 0x10, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x33, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2a, 0x38, 0x0a, 0x14, 0x45, 0x6e, 0x75, 0x6d, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x07, + 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4d, 0x50, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x55, 0x53, 0x54, 0x4f, 0x4d, 0x45, 0x10, 0x02, + 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_feature_message_proto_rawDescOnce sync.Once - file_feature_message_proto_rawDescData = file_feature_message_proto_rawDesc + file_users_feature_message_proto_rawDescOnce sync.Once + file_users_feature_message_proto_rawDescData = file_users_feature_message_proto_rawDesc ) -func file_feature_message_proto_rawDescGZIP() []byte { - file_feature_message_proto_rawDescOnce.Do(func() { - file_feature_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_feature_message_proto_rawDescData) +func file_users_feature_message_proto_rawDescGZIP() []byte { + file_users_feature_message_proto_rawDescOnce.Do(func() { + file_users_feature_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_feature_message_proto_rawDescData) }) - return file_feature_message_proto_rawDescData + return file_users_feature_message_proto_rawDescData } -var file_feature_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_feature_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_feature_message_proto_goTypes = []interface{}{ +var file_users_feature_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_users_feature_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_users_feature_message_proto_goTypes = []interface{}{ (EnumPackageOfFeature)(0), // 0: wiradata.users.EnumPackageOfFeature (*Feature)(nil), // 1: wiradata.users.Feature (*PackageOfFeature)(nil), // 2: wiradata.users.PackageOfFeature (*timestamp.Timestamp)(nil), // 3: google.protobuf.Timestamp } -var file_feature_message_proto_depIdxs = []int32{ +var file_users_feature_message_proto_depIdxs = []int32{ 3, // 0: wiradata.users.Feature.created_at:type_name -> google.protobuf.Timestamp 3, // 1: wiradata.users.Feature.updated_at:type_name -> google.protobuf.Timestamp 0, // 2: wiradata.users.PackageOfFeature.name:type_name -> wiradata.users.EnumPackageOfFeature @@ -295,13 +296,13 @@ var file_feature_message_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_feature_message_proto_init() } -func file_feature_message_proto_init() { - if File_feature_message_proto != nil { +func init() { file_users_feature_message_proto_init() } +func file_users_feature_message_proto_init() { + if File_users_feature_message_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_feature_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_feature_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Feature); i { case 0: return &v.state @@ -313,7 +314,7 @@ func file_feature_message_proto_init() { return nil } } - file_feature_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_feature_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PackageOfFeature); i { case 0: return &v.state @@ -330,19 +331,19 @@ func file_feature_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_feature_message_proto_rawDesc, + RawDescriptor: file_users_feature_message_proto_rawDesc, NumEnums: 1, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_feature_message_proto_goTypes, - DependencyIndexes: file_feature_message_proto_depIdxs, - EnumInfos: file_feature_message_proto_enumTypes, - MessageInfos: file_feature_message_proto_msgTypes, + GoTypes: file_users_feature_message_proto_goTypes, + DependencyIndexes: file_users_feature_message_proto_depIdxs, + EnumInfos: file_users_feature_message_proto_enumTypes, + MessageInfos: file_users_feature_message_proto_msgTypes, }.Build() - File_feature_message_proto = out.File - file_feature_message_proto_rawDesc = nil - file_feature_message_proto_goTypes = nil - file_feature_message_proto_depIdxs = nil + File_users_feature_message_proto = out.File + file_users_feature_message_proto_rawDesc = nil + file_users_feature_message_proto_goTypes = nil + file_users_feature_message_proto_depIdxs = nil } diff --git a/pb/feature_service.pb.go b/pb/users/feature_service.pb.go similarity index 72% rename from pb/feature_service.pb.go rename to pb/users/feature_service.pb.go index 3598202..e61ec6d 100644 --- a/pb/feature_service.pb.go +++ b/pb/users/feature_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: feature_service.proto +// source: users/feature_service.proto package users @@ -40,7 +40,7 @@ type ListFeatureResponse struct { func (x *ListFeatureResponse) Reset() { *x = ListFeatureResponse{} if protoimpl.UnsafeEnabled { - mi := &file_feature_service_proto_msgTypes[0] + mi := &file_users_feature_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -53,7 +53,7 @@ func (x *ListFeatureResponse) String() string { func (*ListFeatureResponse) ProtoMessage() {} func (x *ListFeatureResponse) ProtoReflect() protoreflect.Message { - mi := &file_feature_service_proto_msgTypes[0] + mi := &file_users_feature_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -66,7 +66,7 @@ func (x *ListFeatureResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListFeatureResponse.ProtoReflect.Descriptor instead. func (*ListFeatureResponse) Descriptor() ([]byte, []int) { - return file_feature_service_proto_rawDescGZIP(), []int{0} + return file_users_feature_service_proto_rawDescGZIP(), []int{0} } func (x *ListFeatureResponse) GetFeature() *Feature { @@ -87,7 +87,7 @@ type ListPackageFeatureResponse struct { func (x *ListPackageFeatureResponse) Reset() { *x = ListPackageFeatureResponse{} if protoimpl.UnsafeEnabled { - mi := &file_feature_service_proto_msgTypes[1] + mi := &file_users_feature_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -100,7 +100,7 @@ func (x *ListPackageFeatureResponse) String() string { func (*ListPackageFeatureResponse) ProtoMessage() {} func (x *ListPackageFeatureResponse) ProtoReflect() protoreflect.Message { - mi := &file_feature_service_proto_msgTypes[1] + mi := &file_users_feature_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -113,7 +113,7 @@ func (x *ListPackageFeatureResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPackageFeatureResponse.ProtoReflect.Descriptor instead. func (*ListPackageFeatureResponse) Descriptor() ([]byte, []int) { - return file_feature_service_proto_rawDescGZIP(), []int{1} + return file_users_feature_service_proto_rawDescGZIP(), []int{1} } func (x *ListPackageFeatureResponse) GetPackageOfFeature() *PackageOfFeature { @@ -123,60 +123,61 @@ func (x *ListPackageFeatureResponse) GetPackageOfFeature() *PackageOfFeature { return nil } -var File_feature_service_proto protoreflect.FileDescriptor - -var file_feature_service_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x15, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, - 0x6c, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, - 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x10, 0x70, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x32, 0x58, 0x0a, - 0x0e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x46, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x23, - 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0xa6, 0x01, 0x0a, 0x15, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x20, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, - 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, +var File_users_feature_service_proto protoreflect.FileDescriptor + +var file_users_feature_service_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1b, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x46, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, + 0x0a, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x07, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x22, 0x6c, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4e, 0x0a, 0x12, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x10, 0x70, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x32, + 0x58, 0x0a, 0x0e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x46, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x2a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, - 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x1a, 0x23, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0xa6, 0x01, 0x0a, 0x15, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, + 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4f, 0x66, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x1a, 0x2a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x46, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x30, 0x01, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_feature_service_proto_rawDescOnce sync.Once - file_feature_service_proto_rawDescData = file_feature_service_proto_rawDesc + file_users_feature_service_proto_rawDescOnce sync.Once + file_users_feature_service_proto_rawDescData = file_users_feature_service_proto_rawDesc ) -func file_feature_service_proto_rawDescGZIP() []byte { - file_feature_service_proto_rawDescOnce.Do(func() { - file_feature_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_feature_service_proto_rawDescData) +func file_users_feature_service_proto_rawDescGZIP() []byte { + file_users_feature_service_proto_rawDescOnce.Do(func() { + file_users_feature_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_feature_service_proto_rawDescData) }) - return file_feature_service_proto_rawDescData + return file_users_feature_service_proto_rawDescData } -var file_feature_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_feature_service_proto_goTypes = []interface{}{ +var file_users_feature_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_users_feature_service_proto_goTypes = []interface{}{ (*ListFeatureResponse)(nil), // 0: wiradata.users.ListFeatureResponse (*ListPackageFeatureResponse)(nil), // 1: wiradata.users.ListPackageFeatureResponse (*Feature)(nil), // 2: wiradata.users.Feature @@ -184,7 +185,7 @@ var file_feature_service_proto_goTypes = []interface{}{ (*Empty)(nil), // 4: wiradata.users.Empty (*Id)(nil), // 5: wiradata.users.Id } -var file_feature_service_proto_depIdxs = []int32{ +var file_users_feature_service_proto_depIdxs = []int32{ 2, // 0: wiradata.users.ListFeatureResponse.feature:type_name -> wiradata.users.Feature 3, // 1: wiradata.users.ListPackageFeatureResponse.package_of_feature:type_name -> wiradata.users.PackageOfFeature 4, // 2: wiradata.users.FeatureService.List:input_type -> wiradata.users.Empty @@ -200,15 +201,15 @@ var file_feature_service_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_feature_service_proto_init() } -func file_feature_service_proto_init() { - if File_feature_service_proto != nil { +func init() { file_users_feature_service_proto_init() } +func file_users_feature_service_proto_init() { + if File_users_feature_service_proto != nil { return } - file_feature_message_proto_init() - file_generic_message_proto_init() + file_users_feature_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_feature_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_feature_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListFeatureResponse); i { case 0: return &v.state @@ -220,7 +221,7 @@ func file_feature_service_proto_init() { return nil } } - file_feature_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_feature_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListPackageFeatureResponse); i { case 0: return &v.state @@ -237,20 +238,20 @@ func file_feature_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_feature_service_proto_rawDesc, + RawDescriptor: file_users_feature_service_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 2, }, - GoTypes: file_feature_service_proto_goTypes, - DependencyIndexes: file_feature_service_proto_depIdxs, - MessageInfos: file_feature_service_proto_msgTypes, + GoTypes: file_users_feature_service_proto_goTypes, + DependencyIndexes: file_users_feature_service_proto_depIdxs, + MessageInfos: file_users_feature_service_proto_msgTypes, }.Build() - File_feature_service_proto = out.File - file_feature_service_proto_rawDesc = nil - file_feature_service_proto_goTypes = nil - file_feature_service_proto_depIdxs = nil + File_users_feature_service_proto = out.File + file_users_feature_service_proto_rawDesc = nil + file_users_feature_service_proto_goTypes = nil + file_users_feature_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -357,7 +358,7 @@ var _FeatureService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "feature_service.proto", + Metadata: "users/feature_service.proto", } // PackageFeatureServiceClient is the client API for PackageFeatureService service. @@ -493,5 +494,5 @@ var _PackageFeatureService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "feature_service.proto", + Metadata: "users/feature_service.proto", } diff --git a/pb/generic_message.pb.go b/pb/users/generic_message.pb.go similarity index 62% rename from pb/generic_message.pb.go rename to pb/users/generic_message.pb.go index 33299b4..b71101e 100644 --- a/pb/generic_message.pb.go +++ b/pb/users/generic_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: generic_message.proto +// source: users/generic_message.proto package users @@ -55,11 +55,11 @@ func (x Pagination_Sort) String() string { } func (Pagination_Sort) Descriptor() protoreflect.EnumDescriptor { - return file_generic_message_proto_enumTypes[0].Descriptor() + return file_users_generic_message_proto_enumTypes[0].Descriptor() } func (Pagination_Sort) Type() protoreflect.EnumType { - return &file_generic_message_proto_enumTypes[0] + return &file_users_generic_message_proto_enumTypes[0] } func (x Pagination_Sort) Number() protoreflect.EnumNumber { @@ -68,7 +68,7 @@ func (x Pagination_Sort) Number() protoreflect.EnumNumber { // Deprecated: Use Pagination_Sort.Descriptor instead. func (Pagination_Sort) EnumDescriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{4, 0} + return file_users_generic_message_proto_rawDescGZIP(), []int{5, 0} } type Empty struct { @@ -80,7 +80,7 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[0] + mi := &file_users_generic_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -93,7 +93,7 @@ func (x *Empty) String() string { func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[0] + mi := &file_users_generic_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -106,7 +106,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message { // Deprecated: Use Empty.ProtoReflect.Descriptor instead. func (*Empty) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{0} + return file_users_generic_message_proto_rawDescGZIP(), []int{0} } type Id struct { @@ -120,7 +120,7 @@ type Id struct { func (x *Id) Reset() { *x = Id{} if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[1] + mi := &file_users_generic_message_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -133,7 +133,7 @@ func (x *Id) String() string { func (*Id) ProtoMessage() {} func (x *Id) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[1] + mi := &file_users_generic_message_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -146,7 +146,7 @@ func (x *Id) ProtoReflect() protoreflect.Message { // Deprecated: Use Id.ProtoReflect.Descriptor instead. func (*Id) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{1} + return file_users_generic_message_proto_rawDescGZIP(), []int{1} } func (x *Id) GetId() string { @@ -167,7 +167,7 @@ type String struct { func (x *String) Reset() { *x = String{} if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[2] + mi := &file_users_generic_message_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -180,7 +180,7 @@ func (x *String) String() string { func (*String) ProtoMessage() {} func (x *String) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[2] + mi := &file_users_generic_message_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -193,7 +193,7 @@ func (x *String) ProtoReflect() protoreflect.Message { // Deprecated: Use String.ProtoReflect.Descriptor instead. func (*String) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{2} + return file_users_generic_message_proto_rawDescGZIP(), []int{2} } func (x *String) GetString_() string { @@ -214,7 +214,7 @@ type Message struct { func (x *Message) Reset() { *x = Message{} if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[3] + mi := &file_users_generic_message_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -227,7 +227,7 @@ func (x *Message) String() string { func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[3] + mi := &file_users_generic_message_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -240,7 +240,7 @@ func (x *Message) ProtoReflect() protoreflect.Message { // Deprecated: Use Message.ProtoReflect.Descriptor instead. func (*Message) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{3} + return file_users_generic_message_proto_rawDescGZIP(), []int{3} } func (x *Message) GetMessage() string { @@ -250,6 +250,53 @@ func (x *Message) GetMessage() string { return "" } +type Boolean struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3" json:"boolean,omitempty"` +} + +func (x *Boolean) Reset() { + *x = Boolean{} + if protoimpl.UnsafeEnabled { + mi := &file_users_generic_message_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Boolean) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Boolean) ProtoMessage() {} + +func (x *Boolean) ProtoReflect() protoreflect.Message { + mi := &file_users_generic_message_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Boolean.ProtoReflect.Descriptor instead. +func (*Boolean) Descriptor() ([]byte, []int) { + return file_users_generic_message_proto_rawDescGZIP(), []int{4} +} + +func (x *Boolean) GetBoolean() bool { + if x != nil { + return x.Boolean + } + return false +} + type Pagination struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -266,7 +313,7 @@ type Pagination struct { func (x *Pagination) Reset() { *x = Pagination{} if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[4] + mi := &file_users_generic_message_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -279,7 +326,7 @@ func (x *Pagination) String() string { func (*Pagination) ProtoMessage() {} func (x *Pagination) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[4] + mi := &file_users_generic_message_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -292,7 +339,7 @@ func (x *Pagination) ProtoReflect() protoreflect.Message { // Deprecated: Use Pagination.ProtoReflect.Descriptor instead. func (*Pagination) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{4} + return file_users_generic_message_proto_rawDescGZIP(), []int{5} } func (x *Pagination) GetPage() uint32 { @@ -337,108 +384,62 @@ func (x *Pagination) GetSort() Pagination_Sort { return Pagination_ASC } -type Boolean struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3" json:"boolean,omitempty"` -} - -func (x *Boolean) Reset() { - *x = Boolean{} - if protoimpl.UnsafeEnabled { - mi := &file_generic_message_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Boolean) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Boolean) ProtoMessage() {} - -func (x *Boolean) ProtoReflect() protoreflect.Message { - mi := &file_generic_message_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Boolean.ProtoReflect.Descriptor instead. -func (*Boolean) Descriptor() ([]byte, []int) { - return file_generic_message_proto_rawDescGZIP(), []int{5} -} - -func (x *Boolean) GetBoolean() bool { - if x != nil { - return x.Boolean - } - return false -} - -var File_generic_message_proto protoreflect.FileDescriptor - -var file_generic_message_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x14, 0x0a, 0x02, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x20, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x23, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xd1, 0x01, - 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, - 0x79, 0x12, 0x33, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1f, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, - 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x22, 0x19, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x07, - 0x0a, 0x03, 0x41, 0x53, 0x43, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x53, 0x43, 0x10, - 0x01, 0x22, 0x23, 0x0a, 0x07, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x18, 0x0a, 0x07, - 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, - 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_generic_message_proto protoreflect.FileDescriptor + +var file_users_generic_message_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x07, 0x0a, + 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x0a, 0x02, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x20, 0x0a, 0x06, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x23, + 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x22, 0x23, 0x0a, 0x07, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0xd1, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x33, 0x0a, 0x04, + 0x73, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x73, 0x6f, 0x72, + 0x74, 0x22, 0x19, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x53, 0x43, + 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x53, 0x43, 0x10, 0x01, 0x42, 0x10, 0x5a, 0x0e, + 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_generic_message_proto_rawDescOnce sync.Once - file_generic_message_proto_rawDescData = file_generic_message_proto_rawDesc + file_users_generic_message_proto_rawDescOnce sync.Once + file_users_generic_message_proto_rawDescData = file_users_generic_message_proto_rawDesc ) -func file_generic_message_proto_rawDescGZIP() []byte { - file_generic_message_proto_rawDescOnce.Do(func() { - file_generic_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_generic_message_proto_rawDescData) +func file_users_generic_message_proto_rawDescGZIP() []byte { + file_users_generic_message_proto_rawDescOnce.Do(func() { + file_users_generic_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_generic_message_proto_rawDescData) }) - return file_generic_message_proto_rawDescData + return file_users_generic_message_proto_rawDescData } -var file_generic_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_generic_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_generic_message_proto_goTypes = []interface{}{ +var file_users_generic_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_users_generic_message_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_users_generic_message_proto_goTypes = []interface{}{ (Pagination_Sort)(0), // 0: wiradata.users.Pagination.Sort (*Empty)(nil), // 1: wiradata.users.Empty (*Id)(nil), // 2: wiradata.users.Id (*String)(nil), // 3: wiradata.users.String (*Message)(nil), // 4: wiradata.users.Message - (*Pagination)(nil), // 5: wiradata.users.Pagination - (*Boolean)(nil), // 6: wiradata.users.Boolean + (*Boolean)(nil), // 5: wiradata.users.Boolean + (*Pagination)(nil), // 6: wiradata.users.Pagination } -var file_generic_message_proto_depIdxs = []int32{ +var file_users_generic_message_proto_depIdxs = []int32{ 0, // 0: wiradata.users.Pagination.sort:type_name -> wiradata.users.Pagination.Sort 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type @@ -447,13 +448,13 @@ var file_generic_message_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_generic_message_proto_init() } -func file_generic_message_proto_init() { - if File_generic_message_proto != nil { +func init() { file_users_generic_message_proto_init() } +func file_users_generic_message_proto_init() { + if File_users_generic_message_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_generic_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_generic_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Empty); i { case 0: return &v.state @@ -465,7 +466,7 @@ func file_generic_message_proto_init() { return nil } } - file_generic_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_generic_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Id); i { case 0: return &v.state @@ -477,7 +478,7 @@ func file_generic_message_proto_init() { return nil } } - file_generic_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_generic_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*String); i { case 0: return &v.state @@ -489,7 +490,7 @@ func file_generic_message_proto_init() { return nil } } - file_generic_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_users_generic_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Message); i { case 0: return &v.state @@ -501,8 +502,8 @@ func file_generic_message_proto_init() { return nil } } - file_generic_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Pagination); i { + file_users_generic_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Boolean); i { case 0: return &v.state case 1: @@ -513,8 +514,8 @@ func file_generic_message_proto_init() { return nil } } - file_generic_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Boolean); i { + file_users_generic_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Pagination); i { case 0: return &v.state case 1: @@ -530,19 +531,19 @@ func file_generic_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_generic_message_proto_rawDesc, + RawDescriptor: file_users_generic_message_proto_rawDesc, NumEnums: 1, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_generic_message_proto_goTypes, - DependencyIndexes: file_generic_message_proto_depIdxs, - EnumInfos: file_generic_message_proto_enumTypes, - MessageInfos: file_generic_message_proto_msgTypes, + GoTypes: file_users_generic_message_proto_goTypes, + DependencyIndexes: file_users_generic_message_proto_depIdxs, + EnumInfos: file_users_generic_message_proto_enumTypes, + MessageInfos: file_users_generic_message_proto_msgTypes, }.Build() - File_generic_message_proto = out.File - file_generic_message_proto_rawDesc = nil - file_generic_message_proto_goTypes = nil - file_generic_message_proto_depIdxs = nil + File_users_generic_message_proto = out.File + file_users_generic_message_proto_rawDesc = nil + file_users_generic_message_proto_goTypes = nil + file_users_generic_message_proto_depIdxs = nil } diff --git a/pb/group_message.pb.go b/pb/users/group_message.pb.go similarity index 51% rename from pb/group_message.pb.go rename to pb/users/group_message.pb.go index 7f3e49d..edf1836 100644 --- a/pb/group_message.pb.go +++ b/pb/users/group_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: group_message.proto +// source: users/group_message.proto package users @@ -45,7 +45,7 @@ type Group struct { func (x *Group) Reset() { *x = Group{} if protoimpl.UnsafeEnabled { - mi := &file_group_message_proto_msgTypes[0] + mi := &file_users_group_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -58,7 +58,7 @@ func (x *Group) String() string { func (*Group) ProtoMessage() {} func (x *Group) ProtoReflect() protoreflect.Message { - mi := &file_group_message_proto_msgTypes[0] + mi := &file_users_group_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -71,7 +71,7 @@ func (x *Group) ProtoReflect() protoreflect.Message { // Deprecated: Use Group.ProtoReflect.Descriptor instead. func (*Group) Descriptor() ([]byte, []int) { - return file_group_message_proto_rawDescGZIP(), []int{0} + return file_users_group_message_proto_rawDescGZIP(), []int{0} } func (x *Group) GetId() string { @@ -137,58 +137,60 @@ func (x *Group) GetUpdatedBy() string { return "" } -var File_group_message_proto protoreflect.FileDescriptor - -var file_group_message_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x02, 0x0a, - 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, - 0x6d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, - 0x73, 0x4d, 0x75, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, 0x08, - 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_group_message_proto protoreflect.FileDescriptor + +var file_users_group_message_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x02, 0x0a, 0x05, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x6d, 0x75, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x4d, 0x75, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, + 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_group_message_proto_rawDescOnce sync.Once - file_group_message_proto_rawDescData = file_group_message_proto_rawDesc + file_users_group_message_proto_rawDescOnce sync.Once + file_users_group_message_proto_rawDescData = file_users_group_message_proto_rawDesc ) -func file_group_message_proto_rawDescGZIP() []byte { - file_group_message_proto_rawDescOnce.Do(func() { - file_group_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_message_proto_rawDescData) +func file_users_group_message_proto_rawDescGZIP() []byte { + file_users_group_message_proto_rawDescOnce.Do(func() { + file_users_group_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_group_message_proto_rawDescData) }) - return file_group_message_proto_rawDescData + return file_users_group_message_proto_rawDescData } -var file_group_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_group_message_proto_goTypes = []interface{}{ +var file_users_group_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_group_message_proto_goTypes = []interface{}{ (*Group)(nil), // 0: wiradata.users.Group (*Access)(nil), // 1: wiradata.users.Access (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } -var file_group_message_proto_depIdxs = []int32{ +var file_users_group_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.Group.access:type_name -> wiradata.users.Access 2, // 1: wiradata.users.Group.created_at:type_name -> google.protobuf.Timestamp 2, // 2: wiradata.users.Group.updated_at:type_name -> google.protobuf.Timestamp @@ -199,14 +201,14 @@ var file_group_message_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_group_message_proto_init() } -func file_group_message_proto_init() { - if File_group_message_proto != nil { +func init() { file_users_group_message_proto_init() } +func file_users_group_message_proto_init() { + if File_users_group_message_proto != nil { return } - file_access_message_proto_init() + file_users_access_message_proto_init() if !protoimpl.UnsafeEnabled { - file_group_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_group_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Group); i { case 0: return &v.state @@ -223,18 +225,18 @@ func file_group_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_group_message_proto_rawDesc, + RawDescriptor: file_users_group_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_group_message_proto_goTypes, - DependencyIndexes: file_group_message_proto_depIdxs, - MessageInfos: file_group_message_proto_msgTypes, + GoTypes: file_users_group_message_proto_goTypes, + DependencyIndexes: file_users_group_message_proto_depIdxs, + MessageInfos: file_users_group_message_proto_msgTypes, }.Build() - File_group_message_proto = out.File - file_group_message_proto_rawDesc = nil - file_group_message_proto_goTypes = nil - file_group_message_proto_depIdxs = nil + File_users_group_message_proto = out.File + file_users_group_message_proto_rawDesc = nil + file_users_group_message_proto_goTypes = nil + file_users_group_message_proto_depIdxs = nil } diff --git a/pb/group_service.pb.go b/pb/users/group_service.pb.go similarity index 73% rename from pb/group_service.pb.go rename to pb/users/group_service.pb.go index 1e28d7a..f49b429 100644 --- a/pb/group_service.pb.go +++ b/pb/users/group_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: group_service.proto +// source: users/group_service.proto package users @@ -41,7 +41,7 @@ type ListGroupRequest struct { func (x *ListGroupRequest) Reset() { *x = ListGroupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_group_service_proto_msgTypes[0] + mi := &file_users_group_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -54,7 +54,7 @@ func (x *ListGroupRequest) String() string { func (*ListGroupRequest) ProtoMessage() {} func (x *ListGroupRequest) ProtoReflect() protoreflect.Message { - mi := &file_group_service_proto_msgTypes[0] + mi := &file_users_group_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -67,7 +67,7 @@ func (x *ListGroupRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListGroupRequest.ProtoReflect.Descriptor instead. func (*ListGroupRequest) Descriptor() ([]byte, []int) { - return file_group_service_proto_rawDescGZIP(), []int{0} + return file_users_group_service_proto_rawDescGZIP(), []int{0} } func (x *ListGroupRequest) GetPagination() *Pagination { @@ -96,7 +96,7 @@ type GroupPaginationResponse struct { func (x *GroupPaginationResponse) Reset() { *x = GroupPaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_group_service_proto_msgTypes[1] + mi := &file_users_group_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -109,7 +109,7 @@ func (x *GroupPaginationResponse) String() string { func (*GroupPaginationResponse) ProtoMessage() {} func (x *GroupPaginationResponse) ProtoReflect() protoreflect.Message { - mi := &file_group_service_proto_msgTypes[1] + mi := &file_users_group_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -122,7 +122,7 @@ func (x *GroupPaginationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GroupPaginationResponse.ProtoReflect.Descriptor instead. func (*GroupPaginationResponse) Descriptor() ([]byte, []int) { - return file_group_service_proto_rawDescGZIP(), []int{1} + return file_users_group_service_proto_rawDescGZIP(), []int{1} } func (x *GroupPaginationResponse) GetPagination() *Pagination { @@ -151,7 +151,7 @@ type ListGroupResponse struct { func (x *ListGroupResponse) Reset() { *x = ListGroupResponse{} if protoimpl.UnsafeEnabled { - mi := &file_group_service_proto_msgTypes[2] + mi := &file_users_group_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -164,7 +164,7 @@ func (x *ListGroupResponse) String() string { func (*ListGroupResponse) ProtoMessage() {} func (x *ListGroupResponse) ProtoReflect() protoreflect.Message { - mi := &file_group_service_proto_msgTypes[2] + mi := &file_users_group_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,7 +177,7 @@ func (x *ListGroupResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListGroupResponse.ProtoReflect.Descriptor instead. func (*ListGroupResponse) Descriptor() ([]byte, []int) { - return file_group_service_proto_rawDescGZIP(), []int{2} + return file_users_group_service_proto_rawDescGZIP(), []int{2} } func (x *ListGroupResponse) GetPagination() *GroupPaginationResponse { @@ -206,7 +206,7 @@ type GrantAccessRequest struct { func (x *GrantAccessRequest) Reset() { *x = GrantAccessRequest{} if protoimpl.UnsafeEnabled { - mi := &file_group_service_proto_msgTypes[3] + mi := &file_users_group_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -219,7 +219,7 @@ func (x *GrantAccessRequest) String() string { func (*GrantAccessRequest) ProtoMessage() {} func (x *GrantAccessRequest) ProtoReflect() protoreflect.Message { - mi := &file_group_service_proto_msgTypes[3] + mi := &file_users_group_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -232,7 +232,7 @@ func (x *GrantAccessRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GrantAccessRequest.ProtoReflect.Descriptor instead. func (*GrantAccessRequest) Descriptor() ([]byte, []int) { - return file_group_service_proto_rawDescGZIP(), []int{3} + return file_users_group_service_proto_rawDescGZIP(), []int{3} } func (x *GrantAccessRequest) GetGroupId() string { @@ -249,89 +249,91 @@ func (x *GrantAccessRequest) GetAccessId() string { return "" } -var File_group_service_proto protoreflect.FileDescriptor - -var file_group_service_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x6d, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, - 0x22, 0x6b, 0x0a, 0x17, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x89, 0x01, - 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x05, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x69, - 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x4c, 0x0a, 0x12, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x64, 0x32, 0xde, 0x03, 0x0a, 0x0c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, +var File_users_group_service_proto protoreflect.FileDescriptor + +var file_users_group_service_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x19, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x6d, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, + 0x49, 0x64, 0x22, 0x6b, 0x0a, 0x17, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x89, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x22, 0x00, 0x12, 0x38, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x77, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, + 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x4c, 0x0a, 0x12, 0x47, + 0x72, 0x61, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x64, 0x32, 0xde, 0x03, 0x0a, 0x0c, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x00, 0x12, 0x33, + 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x15, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, + 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x04, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x4c, 0x0a, + 0x0b, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x04, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, - 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, - 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, + 0x61, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, + 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x61, + 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x04, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x4c, 0x0a, 0x0b, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x69, 0x72, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, - 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x0c, 0x52, 0x65, 0x76, - 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_group_service_proto_rawDescOnce sync.Once - file_group_service_proto_rawDescData = file_group_service_proto_rawDesc + file_users_group_service_proto_rawDescOnce sync.Once + file_users_group_service_proto_rawDescData = file_users_group_service_proto_rawDesc ) -func file_group_service_proto_rawDescGZIP() []byte { - file_group_service_proto_rawDescOnce.Do(func() { - file_group_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_group_service_proto_rawDescData) +func file_users_group_service_proto_rawDescGZIP() []byte { + file_users_group_service_proto_rawDescOnce.Do(func() { + file_users_group_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_group_service_proto_rawDescData) }) - return file_group_service_proto_rawDescData + return file_users_group_service_proto_rawDescData } -var file_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_group_service_proto_goTypes = []interface{}{ +var file_users_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_users_group_service_proto_goTypes = []interface{}{ (*ListGroupRequest)(nil), // 0: wiradata.users.ListGroupRequest (*GroupPaginationResponse)(nil), // 1: wiradata.users.GroupPaginationResponse (*ListGroupResponse)(nil), // 2: wiradata.users.ListGroupResponse @@ -342,7 +344,7 @@ var file_group_service_proto_goTypes = []interface{}{ (*Boolean)(nil), // 7: wiradata.users.Boolean (*Message)(nil), // 8: wiradata.users.Message } -var file_group_service_proto_depIdxs = []int32{ +var file_users_group_service_proto_depIdxs = []int32{ 4, // 0: wiradata.users.ListGroupRequest.pagination:type_name -> wiradata.users.Pagination 4, // 1: wiradata.users.GroupPaginationResponse.pagination:type_name -> wiradata.users.Pagination 1, // 2: wiradata.users.ListGroupResponse.pagination:type_name -> wiradata.users.GroupPaginationResponse @@ -368,15 +370,15 @@ var file_group_service_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_group_service_proto_init() } -func file_group_service_proto_init() { - if File_group_service_proto != nil { +func init() { file_users_group_service_proto_init() } +func file_users_group_service_proto_init() { + if File_users_group_service_proto != nil { return } - file_group_message_proto_init() - file_generic_message_proto_init() + file_users_group_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGroupRequest); i { case 0: return &v.state @@ -388,7 +390,7 @@ func file_group_service_proto_init() { return nil } } - file_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GroupPaginationResponse); i { case 0: return &v.state @@ -400,7 +402,7 @@ func file_group_service_proto_init() { return nil } } - file_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGroupResponse); i { case 0: return &v.state @@ -412,7 +414,7 @@ func file_group_service_proto_init() { return nil } } - file_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_users_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GrantAccessRequest); i { case 0: return &v.state @@ -429,20 +431,20 @@ func file_group_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_group_service_proto_rawDesc, + RawDescriptor: file_users_group_service_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_group_service_proto_goTypes, - DependencyIndexes: file_group_service_proto_depIdxs, - MessageInfos: file_group_service_proto_msgTypes, + GoTypes: file_users_group_service_proto_goTypes, + DependencyIndexes: file_users_group_service_proto_depIdxs, + MessageInfos: file_users_group_service_proto_msgTypes, }.Build() - File_group_service_proto = out.File - file_group_service_proto_rawDesc = nil - file_group_service_proto_goTypes = nil - file_group_service_proto_depIdxs = nil + File_users_group_service_proto = out.File + file_users_group_service_proto_rawDesc = nil + file_users_group_service_proto_goTypes = nil + file_users_group_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -766,5 +768,5 @@ var _GroupService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "group_service.proto", + Metadata: "users/group_service.proto", } diff --git a/pb/region_message.pb.go b/pb/users/region_message.pb.go similarity index 50% rename from pb/region_message.pb.go rename to pb/users/region_message.pb.go index fe4dbaa..5fd66df 100644 --- a/pb/region_message.pb.go +++ b/pb/users/region_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: region_message.proto +// source: users/region_message.proto package users @@ -45,7 +45,7 @@ type Region struct { func (x *Region) Reset() { *x = Region{} if protoimpl.UnsafeEnabled { - mi := &file_region_message_proto_msgTypes[0] + mi := &file_users_region_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -58,7 +58,7 @@ func (x *Region) String() string { func (*Region) ProtoMessage() {} func (x *Region) ProtoReflect() protoreflect.Message { - mi := &file_region_message_proto_msgTypes[0] + mi := &file_users_region_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -71,7 +71,7 @@ func (x *Region) ProtoReflect() protoreflect.Message { // Deprecated: Use Region.ProtoReflect.Descriptor instead. func (*Region) Descriptor() ([]byte, []int) { - return file_region_message_proto_rawDescGZIP(), []int{0} + return file_users_region_message_proto_rawDescGZIP(), []int{0} } func (x *Region) GetId() string { @@ -137,58 +137,59 @@ func (x *Region) GetUpdatedBy() string { return "" } -var File_region_message_proto protoreflect.FileDescriptor - -var file_region_message_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, - 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, - 0x32, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, - 0x68, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_region_message_proto protoreflect.FileDescriptor + +var file_users_region_message_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x02, 0x0a, 0x06, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, + 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x73, 0x12, + 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x62, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x42, 0x79, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_region_message_proto_rawDescOnce sync.Once - file_region_message_proto_rawDescData = file_region_message_proto_rawDesc + file_users_region_message_proto_rawDescOnce sync.Once + file_users_region_message_proto_rawDescData = file_users_region_message_proto_rawDesc ) -func file_region_message_proto_rawDescGZIP() []byte { - file_region_message_proto_rawDescOnce.Do(func() { - file_region_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_region_message_proto_rawDescData) +func file_users_region_message_proto_rawDescGZIP() []byte { + file_users_region_message_proto_rawDescOnce.Do(func() { + file_users_region_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_region_message_proto_rawDescData) }) - return file_region_message_proto_rawDescData + return file_users_region_message_proto_rawDescData } -var file_region_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_region_message_proto_goTypes = []interface{}{ +var file_users_region_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_region_message_proto_goTypes = []interface{}{ (*Region)(nil), // 0: wiradata.users.Region (*Branch)(nil), // 1: wiradata.users.Branch (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } -var file_region_message_proto_depIdxs = []int32{ +var file_users_region_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.Region.branches:type_name -> wiradata.users.Branch 2, // 1: wiradata.users.Region.created_at:type_name -> google.protobuf.Timestamp 2, // 2: wiradata.users.Region.updated_at:type_name -> google.protobuf.Timestamp @@ -199,14 +200,14 @@ var file_region_message_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_region_message_proto_init() } -func file_region_message_proto_init() { - if File_region_message_proto != nil { +func init() { file_users_region_message_proto_init() } +func file_users_region_message_proto_init() { + if File_users_region_message_proto != nil { return } - file_branch_message_proto_init() + file_users_branch_message_proto_init() if !protoimpl.UnsafeEnabled { - file_region_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_region_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Region); i { case 0: return &v.state @@ -223,18 +224,18 @@ func file_region_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_region_message_proto_rawDesc, + RawDescriptor: file_users_region_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_region_message_proto_goTypes, - DependencyIndexes: file_region_message_proto_depIdxs, - MessageInfos: file_region_message_proto_msgTypes, + GoTypes: file_users_region_message_proto_goTypes, + DependencyIndexes: file_users_region_message_proto_depIdxs, + MessageInfos: file_users_region_message_proto_msgTypes, }.Build() - File_region_message_proto = out.File - file_region_message_proto_rawDesc = nil - file_region_message_proto_goTypes = nil - file_region_message_proto_depIdxs = nil + File_users_region_message_proto = out.File + file_users_region_message_proto_rawDesc = nil + file_users_region_message_proto_goTypes = nil + file_users_region_message_proto_depIdxs = nil } diff --git a/pb/region_service.pb.go b/pb/users/region_service.pb.go similarity index 72% rename from pb/region_service.pb.go rename to pb/users/region_service.pb.go index 81e6053..271b100 100644 --- a/pb/region_service.pb.go +++ b/pb/users/region_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: region_service.proto +// source: users/region_service.proto package users @@ -41,7 +41,7 @@ type ListRegionRequest struct { func (x *ListRegionRequest) Reset() { *x = ListRegionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_region_service_proto_msgTypes[0] + mi := &file_users_region_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -54,7 +54,7 @@ func (x *ListRegionRequest) String() string { func (*ListRegionRequest) ProtoMessage() {} func (x *ListRegionRequest) ProtoReflect() protoreflect.Message { - mi := &file_region_service_proto_msgTypes[0] + mi := &file_users_region_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -67,7 +67,7 @@ func (x *ListRegionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRegionRequest.ProtoReflect.Descriptor instead. func (*ListRegionRequest) Descriptor() ([]byte, []int) { - return file_region_service_proto_rawDescGZIP(), []int{0} + return file_users_region_service_proto_rawDescGZIP(), []int{0} } func (x *ListRegionRequest) GetPagination() *Pagination { @@ -97,7 +97,7 @@ type RegionPaginationResponse struct { func (x *RegionPaginationResponse) Reset() { *x = RegionPaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_region_service_proto_msgTypes[1] + mi := &file_users_region_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -110,7 +110,7 @@ func (x *RegionPaginationResponse) String() string { func (*RegionPaginationResponse) ProtoMessage() {} func (x *RegionPaginationResponse) ProtoReflect() protoreflect.Message { - mi := &file_region_service_proto_msgTypes[1] + mi := &file_users_region_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -123,7 +123,7 @@ func (x *RegionPaginationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RegionPaginationResponse.ProtoReflect.Descriptor instead. func (*RegionPaginationResponse) Descriptor() ([]byte, []int) { - return file_region_service_proto_rawDescGZIP(), []int{1} + return file_users_region_service_proto_rawDescGZIP(), []int{1} } func (x *RegionPaginationResponse) GetPagination() *Pagination { @@ -159,7 +159,7 @@ type ListRegionResponse struct { func (x *ListRegionResponse) Reset() { *x = ListRegionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_region_service_proto_msgTypes[2] + mi := &file_users_region_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -172,7 +172,7 @@ func (x *ListRegionResponse) String() string { func (*ListRegionResponse) ProtoMessage() {} func (x *ListRegionResponse) ProtoReflect() protoreflect.Message { - mi := &file_region_service_proto_msgTypes[2] + mi := &file_users_region_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -185,7 +185,7 @@ func (x *ListRegionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRegionResponse.ProtoReflect.Descriptor instead. func (*ListRegionResponse) Descriptor() ([]byte, []int) { - return file_region_service_proto_rawDescGZIP(), []int{2} + return file_users_region_service_proto_rawDescGZIP(), []int{2} } func (x *ListRegionResponse) GetPagination() *RegionPaginationResponse { @@ -202,78 +202,79 @@ func (x *ListRegionResponse) GetRegion() *Region { return nil } -var File_region_service_proto protoreflect.FileDescriptor - -var file_region_service_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x14, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, - 0x79, 0x49, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x32, 0xc9, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, +var File_users_region_service_proto protoreflect.FileDescriptor + +var file_users_region_service_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1a, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, - 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x00, - 0x12, 0x3a, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x04, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, + 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, + 0x61, 0x6e, 0x79, 0x49, 0x64, 0x22, 0x8b, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, + 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x32, 0xc9, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x12, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, - 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x04, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x0a, - 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x34, + 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x16, 0x2e, 0x77, 0x69, 0x72, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x49, 0x64, 0x1a, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x51, 0x0a, + 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, + 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_region_service_proto_rawDescOnce sync.Once - file_region_service_proto_rawDescData = file_region_service_proto_rawDesc + file_users_region_service_proto_rawDescOnce sync.Once + file_users_region_service_proto_rawDescData = file_users_region_service_proto_rawDesc ) -func file_region_service_proto_rawDescGZIP() []byte { - file_region_service_proto_rawDescOnce.Do(func() { - file_region_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_region_service_proto_rawDescData) +func file_users_region_service_proto_rawDescGZIP() []byte { + file_users_region_service_proto_rawDescOnce.Do(func() { + file_users_region_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_region_service_proto_rawDescData) }) - return file_region_service_proto_rawDescData + return file_users_region_service_proto_rawDescData } -var file_region_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_region_service_proto_goTypes = []interface{}{ +var file_users_region_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_users_region_service_proto_goTypes = []interface{}{ (*ListRegionRequest)(nil), // 0: wiradata.users.ListRegionRequest (*RegionPaginationResponse)(nil), // 1: wiradata.users.RegionPaginationResponse (*ListRegionResponse)(nil), // 2: wiradata.users.ListRegionResponse @@ -282,7 +283,7 @@ var file_region_service_proto_goTypes = []interface{}{ (*Id)(nil), // 5: wiradata.users.Id (*Boolean)(nil), // 6: wiradata.users.Boolean } -var file_region_service_proto_depIdxs = []int32{ +var file_users_region_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListRegionRequest.pagination:type_name -> wiradata.users.Pagination 3, // 1: wiradata.users.RegionPaginationResponse.pagination:type_name -> wiradata.users.Pagination 1, // 2: wiradata.users.ListRegionResponse.pagination:type_name -> wiradata.users.RegionPaginationResponse @@ -304,15 +305,15 @@ var file_region_service_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_region_service_proto_init() } -func file_region_service_proto_init() { - if File_region_service_proto != nil { +func init() { file_users_region_service_proto_init() } +func file_users_region_service_proto_init() { + if File_users_region_service_proto != nil { return } - file_region_message_proto_init() - file_generic_message_proto_init() + file_users_region_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_region_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_region_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListRegionRequest); i { case 0: return &v.state @@ -324,7 +325,7 @@ func file_region_service_proto_init() { return nil } } - file_region_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_region_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RegionPaginationResponse); i { case 0: return &v.state @@ -336,7 +337,7 @@ func file_region_service_proto_init() { return nil } } - file_region_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_region_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListRegionResponse); i { case 0: return &v.state @@ -353,20 +354,20 @@ func file_region_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_region_service_proto_rawDesc, + RawDescriptor: file_users_region_service_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_region_service_proto_goTypes, - DependencyIndexes: file_region_service_proto_depIdxs, - MessageInfos: file_region_service_proto_msgTypes, + GoTypes: file_users_region_service_proto_goTypes, + DependencyIndexes: file_users_region_service_proto_depIdxs, + MessageInfos: file_users_region_service_proto_msgTypes, }.Build() - File_region_service_proto = out.File - file_region_service_proto_rawDesc = nil - file_region_service_proto_goTypes = nil - file_region_service_proto_depIdxs = nil + File_users_region_service_proto = out.File + file_users_region_service_proto_rawDesc = nil + file_users_region_service_proto_goTypes = nil + file_users_region_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -618,5 +619,5 @@ var _RegionService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "region_service.proto", + Metadata: "users/region_service.proto", } diff --git a/pb/request_password_message.pb.go b/pb/users/request_password_message.pb.go similarity index 50% rename from pb/request_password_message.pb.go rename to pb/users/request_password_message.pb.go index f10959e..c5b3ba2 100644 --- a/pb/request_password_message.pb.go +++ b/pb/users/request_password_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: request_password_message.proto +// source: users/request_password_message.proto package users @@ -40,7 +40,7 @@ type RequestPassword struct { func (x *RequestPassword) Reset() { *x = RequestPassword{} if protoimpl.UnsafeEnabled { - mi := &file_request_password_message_proto_msgTypes[0] + mi := &file_users_request_password_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -53,7 +53,7 @@ func (x *RequestPassword) String() string { func (*RequestPassword) ProtoMessage() {} func (x *RequestPassword) ProtoReflect() protoreflect.Message { - mi := &file_request_password_message_proto_msgTypes[0] + mi := &file_users_request_password_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -66,7 +66,7 @@ func (x *RequestPassword) ProtoReflect() protoreflect.Message { // Deprecated: Use RequestPassword.ProtoReflect.Descriptor instead. func (*RequestPassword) Descriptor() ([]byte, []int) { - return file_request_password_message_proto_rawDescGZIP(), []int{0} + return file_users_request_password_message_proto_rawDescGZIP(), []int{0} } func (x *RequestPassword) GetId() string { @@ -97,45 +97,46 @@ func (x *RequestPassword) GetCreatedAt() *timestamp.Timestamp { return nil } -var File_request_password_message_proto protoreflect.FileDescriptor - -var file_request_password_message_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, - 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x69, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_users_request_password_message_proto protoreflect.FileDescriptor + +var file_users_request_password_message_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x55, 0x73, 0x65, 0x64, 0x12, 0x39, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_request_password_message_proto_rawDescOnce sync.Once - file_request_password_message_proto_rawDescData = file_request_password_message_proto_rawDesc + file_users_request_password_message_proto_rawDescOnce sync.Once + file_users_request_password_message_proto_rawDescData = file_users_request_password_message_proto_rawDesc ) -func file_request_password_message_proto_rawDescGZIP() []byte { - file_request_password_message_proto_rawDescOnce.Do(func() { - file_request_password_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_request_password_message_proto_rawDescData) +func file_users_request_password_message_proto_rawDescGZIP() []byte { + file_users_request_password_message_proto_rawDescOnce.Do(func() { + file_users_request_password_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_request_password_message_proto_rawDescData) }) - return file_request_password_message_proto_rawDescData + return file_users_request_password_message_proto_rawDescData } -var file_request_password_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_request_password_message_proto_goTypes = []interface{}{ +var file_users_request_password_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_request_password_message_proto_goTypes = []interface{}{ (*RequestPassword)(nil), // 0: wiradata.users.RequestPassword (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp } -var file_request_password_message_proto_depIdxs = []int32{ +var file_users_request_password_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.RequestPassword.created_at:type_name -> google.protobuf.Timestamp 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type @@ -144,13 +145,13 @@ var file_request_password_message_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_request_password_message_proto_init() } -func file_request_password_message_proto_init() { - if File_request_password_message_proto != nil { +func init() { file_users_request_password_message_proto_init() } +func file_users_request_password_message_proto_init() { + if File_users_request_password_message_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_request_password_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_request_password_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RequestPassword); i { case 0: return &v.state @@ -167,18 +168,18 @@ func file_request_password_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_request_password_message_proto_rawDesc, + RawDescriptor: file_users_request_password_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_request_password_message_proto_goTypes, - DependencyIndexes: file_request_password_message_proto_depIdxs, - MessageInfos: file_request_password_message_proto_msgTypes, + GoTypes: file_users_request_password_message_proto_goTypes, + DependencyIndexes: file_users_request_password_message_proto_depIdxs, + MessageInfos: file_users_request_password_message_proto_msgTypes, }.Build() - File_request_password_message_proto = out.File - file_request_password_message_proto_rawDesc = nil - file_request_password_message_proto_goTypes = nil - file_request_password_message_proto_depIdxs = nil + File_users_request_password_message_proto = out.File + file_users_request_password_message_proto_rawDesc = nil + file_users_request_password_message_proto_goTypes = nil + file_users_request_password_message_proto_depIdxs = nil } diff --git a/pb/user_message.pb.go b/pb/users/user_message.pb.go similarity index 51% rename from pb/user_message.pb.go rename to pb/users/user_message.pb.go index f92737d..7456bbd 100644 --- a/pb/user_message.pb.go +++ b/pb/users/user_message.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: user_message.proto +// source: users/user_message.proto package users @@ -47,7 +47,7 @@ type User struct { func (x *User) Reset() { *x = User{} if protoimpl.UnsafeEnabled { - mi := &file_user_message_proto_msgTypes[0] + mi := &file_users_user_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -60,7 +60,7 @@ func (x *User) String() string { func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_user_message_proto_msgTypes[0] + mi := &file_users_user_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -73,7 +73,7 @@ func (x *User) ProtoReflect() protoreflect.Message { // Deprecated: Use User.ProtoReflect.Descriptor instead. func (*User) Descriptor() ([]byte, []int) { - return file_user_message_proto_rawDescGZIP(), []int{0} + return file_users_user_message_proto_rawDescGZIP(), []int{0} } func (x *User) GetId() string { @@ -153,61 +153,62 @@ func (x *User) GetUpdatedBy() string { return "" } -var File_user_message_proto protoreflect.FileDescriptor +var File_users_user_message_proto protoreflect.FileDescriptor -var file_user_message_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x02, 0x0a, 0x04, 0x55, - 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, - 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x2b, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, - 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x62, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x42, 0x79, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var file_users_user_message_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, + 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2b, + 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x39, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, + 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_user_message_proto_rawDescOnce sync.Once - file_user_message_proto_rawDescData = file_user_message_proto_rawDesc + file_users_user_message_proto_rawDescOnce sync.Once + file_users_user_message_proto_rawDescData = file_users_user_message_proto_rawDesc ) -func file_user_message_proto_rawDescGZIP() []byte { - file_user_message_proto_rawDescOnce.Do(func() { - file_user_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_message_proto_rawDescData) +func file_users_user_message_proto_rawDescGZIP() []byte { + file_users_user_message_proto_rawDescOnce.Do(func() { + file_users_user_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_user_message_proto_rawDescData) }) - return file_user_message_proto_rawDescData + return file_users_user_message_proto_rawDescData } -var file_user_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_user_message_proto_goTypes = []interface{}{ +var file_users_user_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_users_user_message_proto_goTypes = []interface{}{ (*User)(nil), // 0: wiradata.users.User (*Group)(nil), // 1: wiradata.users.Group (*timestamp.Timestamp)(nil), // 2: google.protobuf.Timestamp } -var file_user_message_proto_depIdxs = []int32{ +var file_users_user_message_proto_depIdxs = []int32{ 1, // 0: wiradata.users.User.group:type_name -> wiradata.users.Group 2, // 1: wiradata.users.User.created_at:type_name -> google.protobuf.Timestamp 2, // 2: wiradata.users.User.updated_at:type_name -> google.protobuf.Timestamp @@ -218,14 +219,14 @@ var file_user_message_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_user_message_proto_init() } -func file_user_message_proto_init() { - if File_user_message_proto != nil { +func init() { file_users_user_message_proto_init() } +func file_users_user_message_proto_init() { + if File_users_user_message_proto != nil { return } - file_group_message_proto_init() + file_users_group_message_proto_init() if !protoimpl.UnsafeEnabled { - file_user_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_user_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*User); i { case 0: return &v.state @@ -242,18 +243,18 @@ func file_user_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_user_message_proto_rawDesc, + RawDescriptor: file_users_user_message_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_user_message_proto_goTypes, - DependencyIndexes: file_user_message_proto_depIdxs, - MessageInfos: file_user_message_proto_msgTypes, + GoTypes: file_users_user_message_proto_goTypes, + DependencyIndexes: file_users_user_message_proto_depIdxs, + MessageInfos: file_users_user_message_proto_msgTypes, }.Build() - File_user_message_proto = out.File - file_user_message_proto_rawDesc = nil - file_user_message_proto_goTypes = nil - file_user_message_proto_depIdxs = nil + File_users_user_message_proto = out.File + file_users_user_message_proto_rawDesc = nil + file_users_user_message_proto_goTypes = nil + file_users_user_message_proto_depIdxs = nil } diff --git a/pb/user_service.pb.go b/pb/users/user_service.pb.go similarity index 72% rename from pb/user_service.pb.go rename to pb/users/user_service.pb.go index c498951..e451482 100644 --- a/pb/user_service.pb.go +++ b/pb/users/user_service.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 -// source: user_service.proto +// source: users/user_service.proto package users @@ -42,7 +42,7 @@ type ListUserRequest struct { func (x *ListUserRequest) Reset() { *x = ListUserRequest{} if protoimpl.UnsafeEnabled { - mi := &file_user_service_proto_msgTypes[0] + mi := &file_users_user_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -55,7 +55,7 @@ func (x *ListUserRequest) String() string { func (*ListUserRequest) ProtoMessage() {} func (x *ListUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_user_service_proto_msgTypes[0] + mi := &file_users_user_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -68,7 +68,7 @@ func (x *ListUserRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead. func (*ListUserRequest) Descriptor() ([]byte, []int) { - return file_user_service_proto_rawDescGZIP(), []int{0} + return file_users_user_service_proto_rawDescGZIP(), []int{0} } func (x *ListUserRequest) GetPagination() *Pagination { @@ -106,7 +106,7 @@ type UserPaginationResponse struct { func (x *UserPaginationResponse) Reset() { *x = UserPaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_user_service_proto_msgTypes[1] + mi := &file_users_user_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -119,7 +119,7 @@ func (x *UserPaginationResponse) String() string { func (*UserPaginationResponse) ProtoMessage() {} func (x *UserPaginationResponse) ProtoReflect() protoreflect.Message { - mi := &file_user_service_proto_msgTypes[1] + mi := &file_users_user_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -132,7 +132,7 @@ func (x *UserPaginationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UserPaginationResponse.ProtoReflect.Descriptor instead. func (*UserPaginationResponse) Descriptor() ([]byte, []int) { - return file_user_service_proto_rawDescGZIP(), []int{1} + return file_users_user_service_proto_rawDescGZIP(), []int{1} } func (x *UserPaginationResponse) GetPagination() *Pagination { @@ -175,7 +175,7 @@ type ListUserResponse struct { func (x *ListUserResponse) Reset() { *x = ListUserResponse{} if protoimpl.UnsafeEnabled { - mi := &file_user_service_proto_msgTypes[2] + mi := &file_users_user_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -188,7 +188,7 @@ func (x *ListUserResponse) String() string { func (*ListUserResponse) ProtoMessage() {} func (x *ListUserResponse) ProtoReflect() protoreflect.Message { - mi := &file_user_service_proto_msgTypes[2] + mi := &file_users_user_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -201,7 +201,7 @@ func (x *ListUserResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead. func (*ListUserResponse) Descriptor() ([]byte, []int) { - return file_user_service_proto_rawDescGZIP(), []int{2} + return file_users_user_service_proto_rawDescGZIP(), []int{2} } func (x *ListUserResponse) GetPagination() *UserPaginationResponse { @@ -218,83 +218,84 @@ func (x *ListUserResponse) GetUser() *User { return nil } -var File_user_service_proto protoreflect.FileDescriptor - -var file_user_service_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x89, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x1b, - 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0xa6, 0x01, 0x0a, 0x16, - 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, +var File_users_user_service_proto protoreflect.FileDescriptor + +var file_users_user_service_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x18, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, + 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, 0x22, 0xa6, 0x01, + 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x50, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, + 0x79, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xf6, 0x02, + 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x1a, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x73, 0x65, 0x72, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xf6, 0x02, 0x0a, 0x0b, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x1a, 0x14, 0x2e, 0x77, 0x69, - 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x1a, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x04, 0x56, - 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x00, 0x12, - 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x17, 0x2e, - 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, - 0x12, 0x1f, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x79, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x77, - 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x70, 0x62, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x1a, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x00, 0x12, 0x32, 0x0a, + 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x12, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x14, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, + 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, + 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x0a, 0x47, 0x65, 0x74, + 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x15, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x22, 0x00, 0x42, 0x10, 0x5a, 0x0e, 0x70, 0x62, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_user_service_proto_rawDescOnce sync.Once - file_user_service_proto_rawDescData = file_user_service_proto_rawDesc + file_users_user_service_proto_rawDescOnce sync.Once + file_users_user_service_proto_rawDescData = file_users_user_service_proto_rawDesc ) -func file_user_service_proto_rawDescGZIP() []byte { - file_user_service_proto_rawDescOnce.Do(func() { - file_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_service_proto_rawDescData) +func file_users_user_service_proto_rawDescGZIP() []byte { + file_users_user_service_proto_rawDescOnce.Do(func() { + file_users_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_users_user_service_proto_rawDescData) }) - return file_user_service_proto_rawDescData + return file_users_user_service_proto_rawDescData } -var file_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_user_service_proto_goTypes = []interface{}{ +var file_users_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_users_user_service_proto_goTypes = []interface{}{ (*ListUserRequest)(nil), // 0: wiradata.users.ListUserRequest (*UserPaginationResponse)(nil), // 1: wiradata.users.UserPaginationResponse (*ListUserResponse)(nil), // 2: wiradata.users.ListUserResponse @@ -304,7 +305,7 @@ var file_user_service_proto_goTypes = []interface{}{ (*Empty)(nil), // 6: wiradata.users.Empty (*Boolean)(nil), // 7: wiradata.users.Boolean } -var file_user_service_proto_depIdxs = []int32{ +var file_users_user_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListUserRequest.pagination:type_name -> wiradata.users.Pagination 3, // 1: wiradata.users.UserPaginationResponse.pagination:type_name -> wiradata.users.Pagination 1, // 2: wiradata.users.ListUserResponse.pagination:type_name -> wiradata.users.UserPaginationResponse @@ -328,15 +329,15 @@ var file_user_service_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_user_service_proto_init() } -func file_user_service_proto_init() { - if File_user_service_proto != nil { +func init() { file_users_user_service_proto_init() } +func file_users_user_service_proto_init() { + if File_users_user_service_proto != nil { return } - file_user_message_proto_init() - file_generic_message_proto_init() + file_users_user_message_proto_init() + file_users_generic_message_proto_init() if !protoimpl.UnsafeEnabled { - file_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListUserRequest); i { case 0: return &v.state @@ -348,7 +349,7 @@ func file_user_service_proto_init() { return nil } } - file_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserPaginationResponse); i { case 0: return &v.state @@ -360,7 +361,7 @@ func file_user_service_proto_init() { return nil } } - file_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListUserResponse); i { case 0: return &v.state @@ -377,20 +378,20 @@ func file_user_service_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_user_service_proto_rawDesc, + RawDescriptor: file_users_user_service_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_user_service_proto_goTypes, - DependencyIndexes: file_user_service_proto_depIdxs, - MessageInfos: file_user_service_proto_msgTypes, + GoTypes: file_users_user_service_proto_goTypes, + DependencyIndexes: file_users_user_service_proto_depIdxs, + MessageInfos: file_users_user_service_proto_msgTypes, }.Build() - File_user_service_proto = out.File - file_user_service_proto_rawDesc = nil - file_user_service_proto_goTypes = nil - file_user_service_proto_depIdxs = nil + File_users_user_service_proto = out.File + file_users_user_service_proto_rawDesc = nil + file_users_user_service_proto_goTypes = nil + file_users_user_service_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. @@ -678,5 +679,5 @@ var _UserService_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "user_service.proto", + Metadata: "users/user_service.proto", } diff --git a/proto/access_service.proto b/proto/access_service.proto deleted file mode 100644 index 06b4bc4..0000000 --- a/proto/access_service.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -package wiradata.users; - -option go_package = "pb;users"; - -import "access_message.proto"; -import "generic_message.proto"; - -service AccessService { - rpc List(Empty) returns (Access) {} -} \ No newline at end of file diff --git a/proto/access_message.proto b/proto/users/access_message.proto similarity index 89% rename from proto/access_message.proto rename to proto/users/access_message.proto index 4c79454..b35485f 100644 --- a/proto/access_message.proto +++ b/proto/users/access_message.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; diff --git a/proto/users/access_service.proto b/proto/users/access_service.proto new file mode 100644 index 0000000..dec91b9 --- /dev/null +++ b/proto/users/access_service.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package wiradata.users; + +option go_package = "pb/users;users"; + +import "users/access_message.proto"; +import "users/generic_message.proto"; + +service AccessService { + rpc List(Empty) returns (Access) {} +} \ No newline at end of file diff --git a/proto/auth_service.proto b/proto/users/auth_service.proto similarity index 87% rename from proto/auth_service.proto rename to proto/users/auth_service.proto index f3c5494..d923594 100644 --- a/proto/auth_service.proto +++ b/proto/users/auth_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "user_message.proto"; -import "generic_message.proto"; +import "users/user_message.proto"; +import "users/generic_message.proto"; message LoginRequest { string username = 1; diff --git a/proto/branch_message.proto b/proto/users/branch_message.proto similarity index 92% rename from proto/branch_message.proto rename to proto/users/branch_message.proto index 900c488..9ce99fe 100644 --- a/proto/branch_message.proto +++ b/proto/users/branch_message.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; diff --git a/proto/branch_service.proto b/proto/users/branch_service.proto similarity index 83% rename from proto/branch_service.proto rename to proto/users/branch_service.proto index e99a44f..a90c6d7 100644 --- a/proto/branch_service.proto +++ b/proto/users/branch_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "branch_message.proto"; -import "generic_message.proto"; +import "users/branch_message.proto"; +import "users/generic_message.proto"; message ListBranchRequest { Pagination pagination = 1; diff --git a/proto/company_message.proto b/proto/users/company_message.proto similarity index 87% rename from proto/company_message.proto rename to proto/users/company_message.proto index 003b55f..bd1cda2 100644 --- a/proto/company_message.proto +++ b/proto/users/company_message.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; -import "feature_message.proto"; +import "users/feature_message.proto"; message Company { string id = 1; diff --git a/proto/company_service.proto b/proto/users/company_service.proto similarity index 66% rename from proto/company_service.proto rename to proto/users/company_service.proto index 122d408..6084b97 100644 --- a/proto/company_service.proto +++ b/proto/users/company_service.proto @@ -1,11 +1,11 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "company_message.proto"; -import "generic_message.proto"; -import "user_message.proto"; +import "users/company_message.proto"; +import "users/generic_message.proto"; +import "users/user_message.proto"; message CompanyRegistration { Company company = 1; diff --git a/proto/employee_message.proto b/proto/users/employee_message.proto similarity index 84% rename from proto/employee_message.proto rename to proto/users/employee_message.proto index b423630..561fc25 100644 --- a/proto/employee_message.proto +++ b/proto/users/employee_message.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; -import "user_message.proto"; +import "users/user_message.proto"; message Employee { string id = 1; diff --git a/proto/employee_service.proto b/proto/users/employee_service.proto similarity index 85% rename from proto/employee_service.proto rename to proto/users/employee_service.proto index 0af8c89..73de66a 100644 --- a/proto/employee_service.proto +++ b/proto/users/employee_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "employee_message.proto"; -import "generic_message.proto"; +import "users/employee_message.proto"; +import "users/generic_message.proto"; message ListEmployeeRequest { Pagination pagination = 1; diff --git a/proto/feature_message.proto b/proto/users/feature_message.proto similarity index 92% rename from proto/feature_message.proto rename to proto/users/feature_message.proto index 9bb0df0..1d08c0d 100644 --- a/proto/feature_message.proto +++ b/proto/users/feature_message.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; diff --git a/proto/feature_service.proto b/proto/users/feature_service.proto similarity index 78% rename from proto/feature_service.proto rename to proto/users/feature_service.proto index 429b984..fe80411 100644 --- a/proto/feature_service.proto +++ b/proto/users/feature_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "feature_message.proto"; -import "generic_message.proto"; +import "users/feature_message.proto"; +import "users/generic_message.proto"; message ListFeatureResponse {Feature feature = 1;} message ListPackageFeatureResponse {PackageOfFeature package_of_feature = 1;} diff --git a/proto/generic_message.proto b/proto/users/generic_message.proto similarity index 82% rename from proto/generic_message.proto rename to proto/users/generic_message.proto index 6d71a67..9794463 100644 --- a/proto/generic_message.proto +++ b/proto/users/generic_message.proto @@ -1,14 +1,13 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; message Empty {} - message Id { string id = 1; } message String { string string = 1; } - message Message { string message = 1; } +message Boolean { bool boolean = 1; } message Pagination { enum Sort { @@ -21,6 +20,4 @@ message Pagination { string search = 4; string order_by = 5; Sort sort = 6; -} - -message Boolean { bool boolean = 1; } \ No newline at end of file +} \ No newline at end of file diff --git a/proto/group_message.proto b/proto/users/group_message.proto similarity index 82% rename from proto/group_message.proto rename to proto/users/group_message.proto index 3ceb667..9d9fafb 100644 --- a/proto/group_message.proto +++ b/proto/users/group_message.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; -import "access_message.proto"; +import "users/access_message.proto"; message Group { string id = 1; diff --git a/proto/group_service.proto b/proto/users/group_service.proto similarity index 86% rename from proto/group_service.proto rename to proto/users/group_service.proto index 4ab5383..d5bafe9 100644 --- a/proto/group_service.proto +++ b/proto/users/group_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "group_message.proto"; -import "generic_message.proto"; +import "users/group_message.proto"; +import "users/generic_message.proto"; message ListGroupRequest { Pagination pagination = 1; diff --git a/proto/region_message.proto b/proto/users/region_message.proto similarity index 82% rename from proto/region_message.proto rename to proto/users/region_message.proto index f2bf3cb..8cee114 100644 --- a/proto/region_message.proto +++ b/proto/users/region_message.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; -import "branch_message.proto"; +import "users/branch_message.proto"; message Region { string id = 1; diff --git a/proto/region_service.proto b/proto/users/region_service.proto similarity index 83% rename from proto/region_service.proto rename to proto/users/region_service.proto index 6996194..16c24e4 100644 --- a/proto/region_service.proto +++ b/proto/users/region_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "region_message.proto"; -import "generic_message.proto"; +import "users/region_message.proto"; +import "users/generic_message.proto"; message ListRegionRequest { Pagination pagination = 1; diff --git a/proto/request_password_message.proto b/proto/users/request_password_message.proto similarity index 85% rename from proto/request_password_message.proto rename to proto/users/request_password_message.proto index 27469c4..5fd57de 100644 --- a/proto/request_password_message.proto +++ b/proto/users/request_password_message.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; diff --git a/proto/user_message.proto b/proto/users/user_message.proto similarity index 84% rename from proto/user_message.proto rename to proto/users/user_message.proto index 9e69064..bbe2d2a 100644 --- a/proto/user_message.proto +++ b/proto/users/user_message.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; import "google/protobuf/timestamp.proto"; -import "group_message.proto"; +import "users/group_message.proto"; message User { string id = 1; diff --git a/proto/user_service.proto b/proto/users/user_service.proto similarity index 85% rename from proto/user_service.proto rename to proto/users/user_service.proto index e2252d9..c6b76f7 100644 --- a/proto/user_service.proto +++ b/proto/users/user_service.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package wiradata.users; -option go_package = "pb;users"; +option go_package = "pb/users;users"; -import "user_message.proto"; -import "generic_message.proto"; +import "users/user_message.proto"; +import "users/generic_message.proto"; message ListUserRequest { Pagination pagination = 1;