diff --git a/client/service/access.go b/client/service/access.go index 572115c..3616da2 100644 --- a/client/service/access.go +++ b/client/service/access.go @@ -8,7 +8,7 @@ import ( // ViewAccessTree service client func ViewAccessTree(ctx context.Context, access users.AccessServiceClient) { - response, err := access.List(setMetadata(ctx), &users.Empty{}) + response, err := access.List(setMetadata(ctx), &users.MyEmpty{}) if err != nil { log.Fatalf("Error when calling grpc service: %s", err) } diff --git a/client/service/auth.go b/client/service/auth.go index 47749ae..c49175f 100644 --- a/client/service/auth.go +++ b/client/service/auth.go @@ -61,7 +61,7 @@ func ChangePassword(ctx context.Context, auth users.AuthServiceClient) { // IsAuth service client func IsAuth(ctx context.Context, auth users.AuthServiceClient) { - response, err := auth.IsAuth(setMetadata(ctx), &users.String{String_: "asal"}) + response, err := auth.IsAuth(setMetadata(ctx), &users.MyString{String_: "asal"}) if err != nil { log.Fatalf("Error when calling grpc service: %s", err) diff --git a/client/service/feature.go b/client/service/feature.go index fcceca6..1f27544 100644 --- a/client/service/feature.go +++ b/client/service/feature.go @@ -9,7 +9,7 @@ import ( // ListFeature service client func ListFeature(ctx context.Context, feature users.FeatureServiceClient) { - stream, err := feature.List(setMetadata(ctx), &users.Empty{}) + stream, err := feature.List(setMetadata(ctx), &users.MyEmpty{}) if err != nil { log.Fatalf("Error when calling grpc service: %s", err) } @@ -29,7 +29,7 @@ func ListFeature(ctx context.Context, feature users.FeatureServiceClient) { // ListPackageFeature service client func ListPackageFeature(ctx context.Context, packageFeature users.PackageFeatureServiceClient) { - stream, err := packageFeature.List(setMetadata(ctx), &users.Empty{}) + stream, err := packageFeature.List(setMetadata(ctx), &users.MyEmpty{}) if err != nil { log.Fatalf("Error when calling grpc service: %s", err) } diff --git a/client/service/user.go b/client/service/user.go index 3596c01..5e15eb8 100644 --- a/client/service/user.go +++ b/client/service/user.go @@ -80,7 +80,7 @@ func ListUser(ctx context.Context, user users.UserServiceClient) { // GetUserByToken service client func GetUserByToken(ctx context.Context, user users.UserServiceClient) { - response, err := user.GetByToken(setMetadataToken(ctx), &users.Empty{}) + response, err := user.GetByToken(setMetadataToken(ctx), &users.MyEmpty{}) if err != nil { log.Fatalf("Error when calling grpc service: %s", err) diff --git a/internal/model/branch.go b/internal/model/branch.go index 899a5c7..92d3d66 100644 --- a/internal/model/branch.go +++ b/internal/model/branch.go @@ -9,8 +9,6 @@ import ( "user-service/internal/pkg/app" "user-service/pb/users" - "github.com/golang/protobuf/ptypes" - "github.com/google/uuid" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -126,11 +124,7 @@ func (u *Branch) Create(ctx context.Context, db *sql.DB, tx *sql.Tx) error { return status.Errorf(codes.Internal, "Exec insert branch: %v", err) } - u.Pb.CreatedAt, err = ptypes.TimestampProto(now) - if err != nil { - return status.Errorf(codes.Internal, "convert created by: %v", err) - } - + u.Pb.CreatedAt = now.String() u.Pb.UpdatedAt = u.Pb.CreatedAt branchesRegion := BranchesRegion{RegionID: u.Pb.GetRegionId(), BranchID: u.Pb.GetId()} diff --git a/internal/model/employee.go b/internal/model/employee.go index 07b5354..558a29c 100644 --- a/internal/model/employee.go +++ b/internal/model/employee.go @@ -9,7 +9,6 @@ import ( "user-service/internal/pkg/app" "user-service/pb/users" - "github.com/golang/protobuf/ptypes" "github.com/google/uuid" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -129,11 +128,7 @@ func (u *Employee) Create(ctx context.Context, db *sql.DB) error { return status.Errorf(codes.Internal, "Exec insert employee: %v", err) } - u.Pb.CreatedAt, err = ptypes.TimestampProto(now) - if err != nil { - return status.Errorf(codes.Internal, "convert created by: %v", err) - } - + u.Pb.CreatedAt = now.String() u.Pb.UpdatedAt = u.Pb.CreatedAt return nil @@ -176,10 +171,7 @@ func (u *Employee) Update(ctx context.Context, db *sql.DB) error { return status.Errorf(codes.Internal, "Exec update employee: %v", err) } - u.Pb.UpdatedAt, err = ptypes.TimestampProto(now) - if err != nil { - return status.Errorf(codes.Internal, "convert updated by: %v", err) - } + u.Pb.UpdatedAt = now.String() return nil } diff --git a/internal/model/group.go b/internal/model/group.go index de1b65c..7dd71f0 100644 --- a/internal/model/group.go +++ b/internal/model/group.go @@ -10,8 +10,6 @@ import ( "user-service/internal/pkg/app" "user-service/pb/users" - "github.com/golang/protobuf/ptypes" - "github.com/google/uuid" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -69,11 +67,7 @@ func (u *Group) Create(ctx context.Context, db *sql.DB) error { u.Pb.CreatedBy = ctx.Value(app.Ctx("userID")).(string) u.Pb.UpdatedBy = ctx.Value(app.Ctx("userID")).(string) - u.Pb.CreatedAt, err = ptypes.TimestampProto(now) - if err != nil { - return err - } - + u.Pb.CreatedAt = now.String() u.Pb.UpdatedAt = u.Pb.CreatedAt query := ` @@ -107,11 +101,7 @@ func (u *Group) Update(ctx context.Context, db *sql.DB) error { var err error now := time.Now().UTC() u.Pb.UpdatedBy = ctx.Value(app.Ctx("userID")).(string) - - u.Pb.UpdatedAt, err = ptypes.TimestampProto(now) - if err != nil { - return err - } + u.Pb.UpdatedAt = now.String() query := ` UPDATE groups SET diff --git a/internal/model/request_password.go b/internal/model/request_password.go index 41c3d4a..d72a830 100644 --- a/internal/model/request_password.go +++ b/internal/model/request_password.go @@ -6,8 +6,6 @@ import ( "time" "user-service/pb/users" - "github.com/golang/protobuf/ptypes" - "github.com/google/uuid" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -55,10 +53,7 @@ func (u *RequestPassword) Get(ctx context.Context, db *sql.DB) error { return status.Errorf(codes.Internal, "Query Raw: %v", err) } - u.Pb.CreatedAt, err = ptypes.TimestampProto(createdAt) - if err != nil { - return status.Errorf(codes.Internal, "convert TimestampProto: %v", err) - } + u.Pb.CreatedAt = createdAt.String() return nil } diff --git a/internal/service/access.go b/internal/service/access.go index 70ce1b6..e2b229a 100644 --- a/internal/service/access.go +++ b/internal/service/access.go @@ -18,7 +18,7 @@ type Access struct { } // List access -func (u *Access) List(ctx context.Context, in *users.Empty) (*users.Access, error) { +func (u *Access) List(ctx context.Context, in *users.MyEmpty) (*users.Access, error) { var accessModel model.Access tx, err := u.Db.BeginTx(ctx, nil) diff --git a/internal/service/auth.go b/internal/service/auth.go index 984e942..e3ba72f 100644 --- a/internal/service/auth.go +++ b/internal/service/auth.go @@ -6,7 +6,6 @@ import ( "os" "time" - "github.com/golang/protobuf/ptypes" "github.com/sendgrid/sendgrid-go/helpers/mail" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -134,9 +133,9 @@ func (u *Auth) ResetPassword(ctx context.Context, in *users.ResetPasswordRequest return &output, status.Error(codes.PermissionDenied, "token has been used") } - createdAt, err := ptypes.Timestamp(requestPasswordModel.Pb.GetCreatedAt()) + createdAt, err := time.Parse("2006-01-02T15:04:05.000Z", requestPasswordModel.Pb.GetCreatedAt()) if err != nil { - return &output, status.Errorf(codes.Internal, "ptypes timestamp: %v", err) + return &output, status.Errorf(codes.Internal, "parse timestamp: %v", err) } if time.Now().UTC().After(createdAt.Add(time.Hour * 2 * 24)) { @@ -228,8 +227,8 @@ func (u *Auth) ChangePassword(ctx context.Context, in *users.ChangePasswordReque } // IsAuth service -func (u *Auth) IsAuth(ctx context.Context, in *users.String) (*users.Boolean, error) { - output := users.Boolean{Boolean: false} +func (u *Auth) IsAuth(ctx context.Context, in *users.MyString) (*users.MyBoolean, error) { + output := users.MyBoolean{Boolean: false} ctx, err := getMetadata(ctx) if err != nil { diff --git a/internal/service/branch.go b/internal/service/branch.go index c81f797..53157e7 100644 --- a/internal/service/branch.go +++ b/internal/service/branch.go @@ -307,8 +307,8 @@ func (u *Branch) View(ctx context.Context, in *users.Id) (*users.Branch, error) } // Delete branch -func (u *Branch) Delete(ctx context.Context, in *users.Id) (*users.Boolean, error) { - var output users.Boolean +func (u *Branch) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error) { + var output users.MyBoolean output.Boolean = false var err error var branchModel model.Branch diff --git a/internal/service/employee.go b/internal/service/employee.go index 3d37f34..c86a02a 100644 --- a/internal/service/employee.go +++ b/internal/service/employee.go @@ -268,8 +268,8 @@ func (u *Employee) View(ctx context.Context, in *users.Id) (*users.Employee, err } // Delete Employee -func (u *Employee) Delete(ctx context.Context, in *users.Id) (*users.Boolean, error) { - var output users.Boolean +func (u *Employee) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error) { + var output users.MyBoolean output.Boolean = false var err error var employeeModel model.Employee diff --git a/internal/service/feature.go b/internal/service/feature.go index 1613607..5a731f8 100644 --- a/internal/service/feature.go +++ b/internal/service/feature.go @@ -16,7 +16,7 @@ type Feature struct { } // List feature -func (u *Feature) List(in *users.Empty, stream users.FeatureService_ListServer) error { +func (u *Feature) List(in *users.MyEmpty, stream users.FeatureService_ListServer) error { ctx := stream.Context() rows, err := u.Db.QueryContext(ctx, `SELECT id, name from features`) if err != nil { diff --git a/internal/service/group.go b/internal/service/group.go index ed13eee..4859d59 100644 --- a/internal/service/group.go +++ b/internal/service/group.go @@ -142,8 +142,8 @@ func (u *Group) View(ctx context.Context, in *users.Id) (*users.Group, error) { } // Delete Group -func (u *Group) Delete(ctx context.Context, in *users.Id) (*users.Boolean, error) { - var output users.Boolean +func (u *Group) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error) { + var output users.MyBoolean output.Boolean = false var groupModel model.Group diff --git a/internal/service/package_feature.go b/internal/service/package_feature.go index 7ec0d77..f359d78 100644 --- a/internal/service/package_feature.go +++ b/internal/service/package_feature.go @@ -39,7 +39,7 @@ func (u *PackageFeature) View(ctx context.Context, in *users.Id) (*users.Package } // List PackageFeature -func (u *PackageFeature) List(in *users.Empty, stream users.PackageFeatureService_ListServer) error { +func (u *PackageFeature) List(in *users.MyEmpty, stream users.PackageFeatureService_ListServer) error { ctx := stream.Context() rows, err := u.Db.QueryContext(ctx, `SELECT id, name from package_features`) if err != nil { diff --git a/internal/service/region.go b/internal/service/region.go index 3a67c4d..8d5da16 100644 --- a/internal/service/region.go +++ b/internal/service/region.go @@ -232,8 +232,8 @@ func (u *Region) View(ctx context.Context, in *users.Id) (*users.Region, error) } // Delete Region -func (u *Region) Delete(ctx context.Context, in *users.Id) (*users.Boolean, error) { - var output users.Boolean +func (u *Region) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error) { + var output users.MyBoolean output.Boolean = false var err error diff --git a/internal/service/user.go b/internal/service/user.go index 31c73f0..7708ed5 100644 --- a/internal/service/user.go +++ b/internal/service/user.go @@ -393,8 +393,8 @@ func (u *User) View(ctx context.Context, in *users.Id) (*users.User, error) { } // Delete func -func (u *User) Delete(ctx context.Context, in *users.Id) (*users.Boolean, error) { - var output users.Boolean +func (u *User) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error) { + var output users.MyBoolean output.Boolean = false var err error var userModel model.User @@ -487,7 +487,7 @@ func (u *User) List(in *users.ListUserRequest, stream users.UserService_ListServ } // GetByToken func -func (u *User) GetByToken(ctx context.Context, in *users.Empty) (*users.User, error) { +func (u *User) GetByToken(ctx context.Context, in *users.MyEmpty) (*users.User, error) { var output users.User var err error var userModel model.User diff --git a/pb/users/access_message.pb.go b/pb/users/access_message.pb.go index 34e5e58..7fcf60a 100644 --- a/pb/users/access_message.pb.go +++ b/pb/users/access_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,13 +30,13 @@ type Access struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Childrens []*Access `protobuf:"bytes,3,rep,name=childrens,proto3" json:"childrens,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Childrens []*Access `protobuf:"bytes,3,rep,name=childrens,proto3" json:"childrens,omitempty"` + CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Access) Reset() { @@ -93,11 +92,11 @@ func (x *Access) GetChildrens() []*Access { return nil } -func (x *Access) GetCreatedAt() *timestamp.Timestamp { +func (x *Access) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Access) GetCreatedBy() string { @@ -107,11 +106,11 @@ func (x *Access) GetCreatedBy() string { return "" } -func (x *Access) GetUpdatedAt() *timestamp.Timestamp { +func (x *Access) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Access) GetUpdatedBy() string { @@ -126,28 +125,25 @@ 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, 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, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0xde, 0x01, 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, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 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, + 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 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, 0x35, 0x0a, + 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, + 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x50, 0x01, 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 ( @@ -164,18 +160,15 @@ func file_users_access_message_proto_rawDescGZIP() []byte { 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 + (*Access)(nil), // 0: wiradata.users.Access } 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 - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_users_access_message_proto_init() } diff --git a/pb/users/access_service.pb.go b/pb/users/access_service.pb.go index 45136d8..fa661c8 100644 --- a/pb/users/access_service.pb.go +++ b/pb/users/access_service.pb.go @@ -37,21 +37,23 @@ var file_users_access_service_proto_rawDesc = []byte{ 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, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x4a, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 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, + 0x4d, 0x79, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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_users_access_service_proto_goTypes = []interface{}{ - (*Empty)(nil), // 0: wiradata.users.Empty - (*Access)(nil), // 1: wiradata.users.Access + (*MyEmpty)(nil), // 0: wiradata.users.MyEmpty + (*Access)(nil), // 1: wiradata.users.Access } var file_users_access_service_proto_depIdxs = []int32{ - 0, // 0: wiradata.users.AccessService.List:input_type -> wiradata.users.Empty + 0, // 0: wiradata.users.AccessService.List:input_type -> wiradata.users.MyEmpty 1, // 1: wiradata.users.AccessService.List:output_type -> wiradata.users.Access 1, // [1:2] is the sub-list for method output_type 0, // [0:1] is the sub-list for method input_type @@ -98,7 +100,7 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AccessServiceClient interface { - List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Access, error) + List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (*Access, error) } type accessServiceClient struct { @@ -109,7 +111,7 @@ func NewAccessServiceClient(cc grpc.ClientConnInterface) AccessServiceClient { return &accessServiceClient{cc} } -func (c *accessServiceClient) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Access, error) { +func (c *accessServiceClient) List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (*Access, error) { out := new(Access) err := c.cc.Invoke(ctx, "/wiradata.users.AccessService/List", in, out, opts...) if err != nil { @@ -120,14 +122,14 @@ func (c *accessServiceClient) List(ctx context.Context, in *Empty, opts ...grpc. // AccessServiceServer is the server API for AccessService service. type AccessServiceServer interface { - List(context.Context, *Empty) (*Access, error) + List(context.Context, *MyEmpty) (*Access, error) } // UnimplementedAccessServiceServer can be embedded to have forward compatible implementations. type UnimplementedAccessServiceServer struct { } -func (*UnimplementedAccessServiceServer) List(context.Context, *Empty) (*Access, error) { +func (*UnimplementedAccessServiceServer) List(context.Context, *MyEmpty) (*Access, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } @@ -136,7 +138,7 @@ func RegisterAccessServiceServer(s *grpc.Server, srv AccessServiceServer) { } func _AccessService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) + in := new(MyEmpty) if err := dec(in); err != nil { return nil, err } @@ -148,7 +150,7 @@ func _AccessService_List_Handler(srv interface{}, ctx context.Context, dec func( FullMethod: "/wiradata.users.AccessService/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccessServiceServer).List(ctx, req.(*Empty)) + return srv.(AccessServiceServer).List(ctx, req.(*MyEmpty)) } return interceptor(ctx, in, info, handler) } diff --git a/pb/users/auth_service.pb.go b/pb/users/auth_service.pb.go index 66453aa..7762520 100644 --- a/pb/users/auth_service.pb.go +++ b/pb/users/auth_service.pb.go @@ -348,7 +348,7 @@ var file_users_auth_service_proto_rawDesc = []byte{ 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, + 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x90, 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, @@ -369,13 +369,15 @@ var file_users_auth_service_proto_rawDesc = []byte{ 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, + 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, + 0x06, 0x49, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x18, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x1a, 0x19, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x4d, 0x79, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x22, 0x00, 0x42, 0x35, + 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, + 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -398,9 +400,9 @@ var file_users_auth_service_proto_goTypes = []interface{}{ (*ChangePasswordRequest)(nil), // 3: wiradata.users.ChangePasswordRequest (*LoginResponse)(nil), // 4: wiradata.users.LoginResponse (*User)(nil), // 5: wiradata.users.User - (*String)(nil), // 6: wiradata.users.String + (*MyString)(nil), // 6: wiradata.users.MyString (*Message)(nil), // 7: wiradata.users.Message - (*Boolean)(nil), // 8: wiradata.users.Boolean + (*MyBoolean)(nil), // 8: wiradata.users.MyBoolean } var file_users_auth_service_proto_depIdxs = []int32{ 5, // 0: wiradata.users.LoginResponse.user:type_name -> wiradata.users.User @@ -408,12 +410,12 @@ var file_users_auth_service_proto_depIdxs = []int32{ 1, // 2: wiradata.users.AuthService.ForgotPassword:input_type -> wiradata.users.ForgotPasswordRequest 2, // 3: wiradata.users.AuthService.ResetPassword:input_type -> wiradata.users.ResetPasswordRequest 3, // 4: wiradata.users.AuthService.ChangePassword:input_type -> wiradata.users.ChangePasswordRequest - 6, // 5: wiradata.users.AuthService.IsAuth:input_type -> wiradata.users.String + 6, // 5: wiradata.users.AuthService.IsAuth:input_type -> wiradata.users.MyString 4, // 6: wiradata.users.AuthService.Login:output_type -> wiradata.users.LoginResponse 7, // 7: wiradata.users.AuthService.ForgotPassword:output_type -> wiradata.users.Message 7, // 8: wiradata.users.AuthService.ResetPassword:output_type -> wiradata.users.Message 7, // 9: wiradata.users.AuthService.ChangePassword:output_type -> wiradata.users.Message - 8, // 10: wiradata.users.AuthService.IsAuth:output_type -> wiradata.users.Boolean + 8, // 10: wiradata.users.AuthService.IsAuth:output_type -> wiradata.users.MyBoolean 6, // [6:11] is the sub-list for method output_type 1, // [1:6] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -526,7 +528,7 @@ type AuthServiceClient interface { ForgotPassword(ctx context.Context, in *ForgotPasswordRequest, opts ...grpc.CallOption) (*Message, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*Message, error) ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*Message, error) - IsAuth(ctx context.Context, in *String, opts ...grpc.CallOption) (*Boolean, error) + IsAuth(ctx context.Context, in *MyString, opts ...grpc.CallOption) (*MyBoolean, error) } type authServiceClient struct { @@ -573,8 +575,8 @@ func (c *authServiceClient) ChangePassword(ctx context.Context, in *ChangePasswo return out, nil } -func (c *authServiceClient) IsAuth(ctx context.Context, in *String, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *authServiceClient) IsAuth(ctx context.Context, in *MyString, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.AuthService/IsAuth", in, out, opts...) if err != nil { return nil, err @@ -588,7 +590,7 @@ type AuthServiceServer interface { ForgotPassword(context.Context, *ForgotPasswordRequest) (*Message, error) ResetPassword(context.Context, *ResetPasswordRequest) (*Message, error) ChangePassword(context.Context, *ChangePasswordRequest) (*Message, error) - IsAuth(context.Context, *String) (*Boolean, error) + IsAuth(context.Context, *MyString) (*MyBoolean, error) } // UnimplementedAuthServiceServer can be embedded to have forward compatible implementations. @@ -607,7 +609,7 @@ func (*UnimplementedAuthServiceServer) ResetPassword(context.Context, *ResetPass func (*UnimplementedAuthServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*Message, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") } -func (*UnimplementedAuthServiceServer) IsAuth(context.Context, *String) (*Boolean, error) { +func (*UnimplementedAuthServiceServer) IsAuth(context.Context, *MyString) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method IsAuth not implemented") } @@ -688,7 +690,7 @@ func _AuthService_ChangePassword_Handler(srv interface{}, ctx context.Context, d } func _AuthService_IsAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(String) + in := new(MyString) if err := dec(in); err != nil { return nil, err } @@ -700,7 +702,7 @@ func _AuthService_IsAuth_Handler(srv interface{}, ctx context.Context, dec func( FullMethod: "/wiradata.users.AuthService/IsAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).IsAuth(ctx, req.(*String)) + return srv.(AuthServiceServer).IsAuth(ctx, req.(*MyString)) } return interceptor(ctx, in, info, handler) } diff --git a/pb/users/branch_message.pb.go b/pb/users/branch_message.pb.go index f7d5371..ff1eb36 100644 --- a/pb/users/branch_message.pb.go +++ b/pb/users/branch_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,22 +30,22 @@ type Branch struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` - RegionId string `protobuf:"bytes,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"` - Npwp string `protobuf:"bytes,9,opt,name=npwp,proto3" json:"npwp,omitempty"` - Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"` - Pic string `protobuf:"bytes,11,opt,name=pic,proto3" json:"pic,omitempty"` - PicPhone string `protobuf:"bytes,12,opt,name=pic_phone,json=picPhone,proto3" json:"pic_phone,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,14,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,16,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` + RegionId string `protobuf:"bytes,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` + Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"` + Npwp string `protobuf:"bytes,9,opt,name=npwp,proto3" json:"npwp,omitempty"` + Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"` + Pic string `protobuf:"bytes,11,opt,name=pic,proto3" json:"pic,omitempty"` + PicPhone string `protobuf:"bytes,12,opt,name=pic_phone,json=picPhone,proto3" json:"pic_phone,omitempty"` + CreatedAt string `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,14,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,16,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Branch) Reset() { @@ -165,11 +164,11 @@ func (x *Branch) GetPicPhone() string { return "" } -func (x *Branch) GetCreatedAt() *timestamp.Timestamp { +func (x *Branch) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Branch) GetCreatedBy() string { @@ -179,11 +178,11 @@ func (x *Branch) GetCreatedBy() string { return "" } -func (x *Branch) GetUpdatedAt() *timestamp.Timestamp { +func (x *Branch) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Branch) GetUpdatedBy() string { @@ -198,40 +197,37 @@ 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, 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, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x9b, 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, 0x1d, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x09, 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, 0x1d, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, + 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, + 0x01, 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 ( @@ -248,17 +244,14 @@ func file_users_branch_message_proto_rawDescGZIP() []byte { 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 + (*Branch)(nil), // 0: wiradata.users.Branch } 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 - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_users_branch_message_proto_init() } diff --git a/pb/users/branch_service.pb.go b/pb/users/branch_service.pb.go index b7b3329..004302e 100644 --- a/pb/users/branch_service.pb.go +++ b/pb/users/branch_service.pb.go @@ -236,7 +236,7 @@ var file_users_branch_service_proto_rawDesc = []byte{ 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, + 0x32, 0xcb, 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, @@ -248,17 +248,19 @@ var file_users_branch_service_proto_rawDesc = []byte{ 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, + 0x12, 0x39, 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, 0x19, 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, 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, + 0x4d, 0x79, 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, 0x35, + 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, + 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -281,7 +283,7 @@ var file_users_branch_service_proto_goTypes = []interface{}{ (*Pagination)(nil), // 3: wiradata.users.Pagination (*Branch)(nil), // 4: wiradata.users.Branch (*Id)(nil), // 5: wiradata.users.Id - (*Boolean)(nil), // 6: wiradata.users.Boolean + (*MyBoolean)(nil), // 6: wiradata.users.MyBoolean } var file_users_branch_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListBranchRequest.pagination:type_name -> wiradata.users.Pagination @@ -296,7 +298,7 @@ var file_users_branch_service_proto_depIdxs = []int32{ 4, // 9: wiradata.users.BranchService.Create:output_type -> wiradata.users.Branch 4, // 10: wiradata.users.BranchService.Update:output_type -> wiradata.users.Branch 4, // 11: wiradata.users.BranchService.View:output_type -> wiradata.users.Branch - 6, // 12: wiradata.users.BranchService.Delete:output_type -> wiradata.users.Boolean + 6, // 12: wiradata.users.BranchService.Delete:output_type -> wiradata.users.MyBoolean 2, // 13: wiradata.users.BranchService.List:output_type -> wiradata.users.ListBranchResponse 9, // [9:14] is the sub-list for method output_type 4, // [4:9] is the sub-list for method input_type @@ -385,7 +387,7 @@ type BranchServiceClient interface { Create(ctx context.Context, in *Branch, opts ...grpc.CallOption) (*Branch, error) Update(ctx context.Context, in *Branch, opts ...grpc.CallOption) (*Branch, error) View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Branch, error) - Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) + Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) List(ctx context.Context, in *ListBranchRequest, opts ...grpc.CallOption) (BranchService_ListClient, error) } @@ -424,8 +426,8 @@ func (c *branchServiceClient) View(ctx context.Context, in *Id, opts ...grpc.Cal return out, nil } -func (c *branchServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *branchServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.BranchService/Delete", in, out, opts...) if err != nil { return nil, err @@ -470,7 +472,7 @@ type BranchServiceServer interface { Create(context.Context, *Branch) (*Branch, error) Update(context.Context, *Branch) (*Branch, error) View(context.Context, *Id) (*Branch, error) - Delete(context.Context, *Id) (*Boolean, error) + Delete(context.Context, *Id) (*MyBoolean, error) List(*ListBranchRequest, BranchService_ListServer) error } @@ -487,7 +489,7 @@ func (*UnimplementedBranchServiceServer) Update(context.Context, *Branch) (*Bran func (*UnimplementedBranchServiceServer) View(context.Context, *Id) (*Branch, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedBranchServiceServer) Delete(context.Context, *Id) (*Boolean, error) { +func (*UnimplementedBranchServiceServer) Delete(context.Context, *Id) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedBranchServiceServer) List(*ListBranchRequest, BranchService_ListServer) error { diff --git a/pb/users/company_message.pb.go b/pb/users/company_message.pb.go index c5526bd..d38d04f 100644 --- a/pb/users/company_message.pb.go +++ b/pb/users/company_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -44,8 +43,8 @@ type Company struct { Logo string `protobuf:"bytes,11,opt,name=logo,proto3" json:"logo,omitempty"` PackageOfFeature EnumPackageOfFeature `protobuf:"varint,12,opt,name=package_of_feature,json=packageOfFeature,proto3,enum=wiradata.users.EnumPackageOfFeature" json:"package_of_feature,omitempty"` Features []*Feature `protobuf:"bytes,13,rep,name=features,proto3" json:"features,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + CreatedAt string `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` UpdatedBy string `protobuf:"bytes,16,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } @@ -172,18 +171,18 @@ func (x *Company) GetFeatures() []*Feature { return nil } -func (x *Company) GetCreatedAt() *timestamp.Timestamp { +func (x *Company) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } -func (x *Company) GetUpdatedAt() *timestamp.Timestamp { +func (x *Company) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Company) GetUpdatedBy() string { @@ -198,46 +197,43 @@ 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, + 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, 0x22, 0xde, 0x03, 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, 0x1d, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x09, 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, 0x35, 0x0a, 0x21, 0x63, + 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x50, 0x01, 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 ( @@ -254,21 +250,18 @@ func file_users_company_message_proto_rawDescGZIP() []byte { 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 + (*Company)(nil), // 0: wiradata.users.Company + (EnumPackageOfFeature)(0), // 1: wiradata.users.EnumPackageOfFeature + (*Feature)(nil), // 2: wiradata.users.Feature } 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 - 3, // 3: wiradata.users.Company.updated_at:type_name -> google.protobuf.Timestamp - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_users_company_message_proto_init() } diff --git a/pb/users/company_service.pb.go b/pb/users/company_service.pb.go index 4c9b387..77c87a8 100644 --- a/pb/users/company_service.pb.go +++ b/pb/users/company_service.pb.go @@ -116,9 +116,11 @@ var file_users_company_service_proto_rawDesc = []byte{ 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, + 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x22, 0x00, 0x42, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, + 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, + 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 ( diff --git a/pb/users/employee_message.pb.go b/pb/users/employee_message.pb.go index 466627b..7f36449 100644 --- a/pb/users/employee_message.pb.go +++ b/pb/users/employee_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,18 +30,18 @@ type Employee struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` - Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` - City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` - Province string `protobuf:"bytes,7,opt,name=province,proto3" json:"province,omitempty"` - Jabatan string `protobuf:"bytes,8,opt,name=jabatan,proto3" json:"jabatan,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,12,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` + Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` + City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` + Province string `protobuf:"bytes,7,opt,name=province,proto3" json:"province,omitempty"` + Jabatan string `protobuf:"bytes,8,opt,name=jabatan,proto3" json:"jabatan,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,10,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,12,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Employee) Reset() { @@ -133,11 +132,11 @@ func (x *Employee) GetJabatan() string { return "" } -func (x *Employee) GetCreatedAt() *timestamp.Timestamp { +func (x *Employee) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Employee) GetCreatedBy() string { @@ -147,11 +146,11 @@ func (x *Employee) GetCreatedBy() string { return "" } -func (x *Employee) GetUpdatedAt() *timestamp.Timestamp { +func (x *Employee) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Employee) GetUpdatedBy() string { @@ -166,37 +165,34 @@ var File_users_employee_message_proto protoreflect.FileDescriptor 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, + 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, 0x22, 0xcc, 0x02, 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, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 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, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -213,19 +209,16 @@ func file_users_employee_message_proto_rawDescGZIP() []byte { 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 + (*Employee)(nil), // 0: wiradata.users.Employee + (*User)(nil), // 1: wiradata.users.User } 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 - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_users_employee_message_proto_init() } diff --git a/pb/users/employee_service.pb.go b/pb/users/employee_service.pb.go index 7eb3972..120b70b 100644 --- a/pb/users/employee_service.pb.go +++ b/pb/users/employee_service.pb.go @@ -256,7 +256,7 @@ var file_users_employee_service_proto_rawDesc = []byte{ 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, + 0x79, 0x65, 0x65, 0x52, 0x08, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x32, 0xdb, 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, @@ -269,18 +269,20 @@ var file_users_employee_service_proto_rawDesc = []byte{ 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, + 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x22, 0x00, 0x12, 0x39, 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, + 0x73, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x79, 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, 0x35, 0x0a, 0x21, 0x63, + 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x50, 0x01, 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 ( @@ -303,7 +305,7 @@ var file_users_employee_service_proto_goTypes = []interface{}{ (*Pagination)(nil), // 3: wiradata.users.Pagination (*Employee)(nil), // 4: wiradata.users.Employee (*Id)(nil), // 5: wiradata.users.Id - (*Boolean)(nil), // 6: wiradata.users.Boolean + (*MyBoolean)(nil), // 6: wiradata.users.MyBoolean } var file_users_employee_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListEmployeeRequest.pagination:type_name -> wiradata.users.Pagination @@ -318,7 +320,7 @@ var file_users_employee_service_proto_depIdxs = []int32{ 4, // 9: wiradata.users.EmployeeService.Create:output_type -> wiradata.users.Employee 4, // 10: wiradata.users.EmployeeService.Update:output_type -> wiradata.users.Employee 4, // 11: wiradata.users.EmployeeService.View:output_type -> wiradata.users.Employee - 6, // 12: wiradata.users.EmployeeService.Delete:output_type -> wiradata.users.Boolean + 6, // 12: wiradata.users.EmployeeService.Delete:output_type -> wiradata.users.MyBoolean 2, // 13: wiradata.users.EmployeeService.List:output_type -> wiradata.users.ListEmployeeResponse 9, // [9:14] is the sub-list for method output_type 4, // [4:9] is the sub-list for method input_type @@ -407,7 +409,7 @@ type EmployeeServiceClient interface { Create(ctx context.Context, in *Employee, opts ...grpc.CallOption) (*Employee, error) Update(ctx context.Context, in *Employee, opts ...grpc.CallOption) (*Employee, error) View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Employee, error) - Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) + Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) List(ctx context.Context, in *ListEmployeeRequest, opts ...grpc.CallOption) (EmployeeService_ListClient, error) } @@ -446,8 +448,8 @@ func (c *employeeServiceClient) View(ctx context.Context, in *Id, opts ...grpc.C return out, nil } -func (c *employeeServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *employeeServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.EmployeeService/Delete", in, out, opts...) if err != nil { return nil, err @@ -492,7 +494,7 @@ type EmployeeServiceServer interface { Create(context.Context, *Employee) (*Employee, error) Update(context.Context, *Employee) (*Employee, error) View(context.Context, *Id) (*Employee, error) - Delete(context.Context, *Id) (*Boolean, error) + Delete(context.Context, *Id) (*MyBoolean, error) List(*ListEmployeeRequest, EmployeeService_ListServer) error } @@ -509,7 +511,7 @@ func (*UnimplementedEmployeeServiceServer) Update(context.Context, *Employee) (* func (*UnimplementedEmployeeServiceServer) View(context.Context, *Id) (*Employee, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedEmployeeServiceServer) Delete(context.Context, *Id) (*Boolean, error) { +func (*UnimplementedEmployeeServiceServer) Delete(context.Context, *Id) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedEmployeeServiceServer) List(*ListEmployeeRequest, EmployeeService_ListServer) error { diff --git a/pb/users/feature_message.pb.go b/pb/users/feature_message.pb.go index f4c9771..fc4a7f7 100644 --- a/pb/users/feature_message.pb.go +++ b/pb/users/feature_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -80,12 +79,12 @@ type Feature struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,6,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,6,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Feature) Reset() { @@ -134,11 +133,11 @@ func (x *Feature) GetName() string { return "" } -func (x *Feature) GetCreatedAt() *timestamp.Timestamp { +func (x *Feature) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Feature) GetCreatedBy() string { @@ -148,11 +147,11 @@ func (x *Feature) GetCreatedBy() string { return "" } -func (x *Feature) GetUpdatedAt() *timestamp.Timestamp { +func (x *Feature) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Feature) GetUpdatedBy() string { @@ -230,38 +229,35 @@ 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, 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, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0xa9, 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, 0x1d, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 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, 0x1d, 0x0a, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -279,21 +275,18 @@ func file_users_feature_message_proto_rawDescGZIP() []byte { 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 + (EnumPackageOfFeature)(0), // 0: wiradata.users.EnumPackageOfFeature + (*Feature)(nil), // 1: wiradata.users.Feature + (*PackageOfFeature)(nil), // 2: wiradata.users.PackageOfFeature } 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 - 1, // 3: wiradata.users.PackageOfFeature.features:type_name -> wiradata.users.Feature - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 0, // 0: wiradata.users.PackageOfFeature.name:type_name -> wiradata.users.EnumPackageOfFeature + 1, // 1: wiradata.users.PackageOfFeature.features:type_name -> wiradata.users.Feature + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_users_feature_message_proto_init() } diff --git a/pb/users/feature_service.pb.go b/pb/users/feature_service.pb.go index e61ec6d..7865bd1 100644 --- a/pb/users/feature_service.pb.go +++ b/pb/users/feature_service.pb.go @@ -144,24 +144,27 @@ var file_users_feature_service_proto_rawDesc = []byte{ 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, 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, + 0x5a, 0x0a, 0x0e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x48, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x79, 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, 0xa8, 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, 0x4f, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x17, 0x2e, + 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, + 0x79, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, + 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -182,15 +185,15 @@ var file_users_feature_service_proto_goTypes = []interface{}{ (*ListPackageFeatureResponse)(nil), // 1: wiradata.users.ListPackageFeatureResponse (*Feature)(nil), // 2: wiradata.users.Feature (*PackageOfFeature)(nil), // 3: wiradata.users.PackageOfFeature - (*Empty)(nil), // 4: wiradata.users.Empty + (*MyEmpty)(nil), // 4: wiradata.users.MyEmpty (*Id)(nil), // 5: wiradata.users.Id } 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 + 4, // 2: wiradata.users.FeatureService.List:input_type -> wiradata.users.MyEmpty 5, // 3: wiradata.users.PackageFeatureService.View:input_type -> wiradata.users.Id - 4, // 4: wiradata.users.PackageFeatureService.List:input_type -> wiradata.users.Empty + 4, // 4: wiradata.users.PackageFeatureService.List:input_type -> wiradata.users.MyEmpty 0, // 5: wiradata.users.FeatureService.List:output_type -> wiradata.users.ListFeatureResponse 3, // 6: wiradata.users.PackageFeatureService.View:output_type -> wiradata.users.PackageOfFeature 1, // 7: wiradata.users.PackageFeatureService.List:output_type -> wiradata.users.ListPackageFeatureResponse @@ -266,7 +269,7 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type FeatureServiceClient interface { - List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (FeatureService_ListClient, error) + List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (FeatureService_ListClient, error) } type featureServiceClient struct { @@ -277,7 +280,7 @@ func NewFeatureServiceClient(cc grpc.ClientConnInterface) FeatureServiceClient { return &featureServiceClient{cc} } -func (c *featureServiceClient) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (FeatureService_ListClient, error) { +func (c *featureServiceClient) List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (FeatureService_ListClient, error) { stream, err := c.cc.NewStream(ctx, &_FeatureService_serviceDesc.Streams[0], "/wiradata.users.FeatureService/List", opts...) if err != nil { return nil, err @@ -311,14 +314,14 @@ func (x *featureServiceListClient) Recv() (*ListFeatureResponse, error) { // FeatureServiceServer is the server API for FeatureService service. type FeatureServiceServer interface { - List(*Empty, FeatureService_ListServer) error + List(*MyEmpty, FeatureService_ListServer) error } // UnimplementedFeatureServiceServer can be embedded to have forward compatible implementations. type UnimplementedFeatureServiceServer struct { } -func (*UnimplementedFeatureServiceServer) List(*Empty, FeatureService_ListServer) error { +func (*UnimplementedFeatureServiceServer) List(*MyEmpty, FeatureService_ListServer) error { return status.Errorf(codes.Unimplemented, "method List not implemented") } @@ -327,7 +330,7 @@ func RegisterFeatureServiceServer(s *grpc.Server, srv FeatureServiceServer) { } func _FeatureService_List_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(Empty) + m := new(MyEmpty) if err := stream.RecvMsg(m); err != nil { return err } @@ -366,7 +369,7 @@ var _FeatureService_serviceDesc = grpc.ServiceDesc{ // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type PackageFeatureServiceClient interface { View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PackageOfFeature, error) - List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (PackageFeatureService_ListClient, error) + List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (PackageFeatureService_ListClient, error) } type packageFeatureServiceClient struct { @@ -386,7 +389,7 @@ func (c *packageFeatureServiceClient) View(ctx context.Context, in *Id, opts ... return out, nil } -func (c *packageFeatureServiceClient) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (PackageFeatureService_ListClient, error) { +func (c *packageFeatureServiceClient) List(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (PackageFeatureService_ListClient, error) { stream, err := c.cc.NewStream(ctx, &_PackageFeatureService_serviceDesc.Streams[0], "/wiradata.users.PackageFeatureService/List", opts...) if err != nil { return nil, err @@ -421,7 +424,7 @@ func (x *packageFeatureServiceListClient) Recv() (*ListPackageFeatureResponse, e // PackageFeatureServiceServer is the server API for PackageFeatureService service. type PackageFeatureServiceServer interface { View(context.Context, *Id) (*PackageOfFeature, error) - List(*Empty, PackageFeatureService_ListServer) error + List(*MyEmpty, PackageFeatureService_ListServer) error } // UnimplementedPackageFeatureServiceServer can be embedded to have forward compatible implementations. @@ -431,7 +434,7 @@ type UnimplementedPackageFeatureServiceServer struct { func (*UnimplementedPackageFeatureServiceServer) View(context.Context, *Id) (*PackageOfFeature, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedPackageFeatureServiceServer) List(*Empty, PackageFeatureService_ListServer) error { +func (*UnimplementedPackageFeatureServiceServer) List(*MyEmpty, PackageFeatureService_ListServer) error { return status.Errorf(codes.Unimplemented, "method List not implemented") } @@ -458,7 +461,7 @@ func _PackageFeatureService_View_Handler(srv interface{}, ctx context.Context, d } func _PackageFeatureService_List_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(Empty) + m := new(MyEmpty) if err := stream.RecvMsg(m); err != nil { return err } diff --git a/pb/users/generic_message.pb.go b/pb/users/generic_message.pb.go index b71101e..bba6ae2 100644 --- a/pb/users/generic_message.pb.go +++ b/pb/users/generic_message.pb.go @@ -71,14 +71,14 @@ func (Pagination_Sort) EnumDescriptor() ([]byte, []int) { return file_users_generic_message_proto_rawDescGZIP(), []int{5, 0} } -type Empty struct { +type MyEmpty struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *Empty) Reset() { - *x = Empty{} +func (x *MyEmpty) Reset() { + *x = MyEmpty{} if protoimpl.UnsafeEnabled { mi := &file_users_generic_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -86,13 +86,13 @@ func (x *Empty) Reset() { } } -func (x *Empty) String() string { +func (x *MyEmpty) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Empty) ProtoMessage() {} +func (*MyEmpty) ProtoMessage() {} -func (x *Empty) ProtoReflect() protoreflect.Message { +func (x *MyEmpty) ProtoReflect() protoreflect.Message { mi := &file_users_generic_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -104,8 +104,8 @@ func (x *Empty) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { +// Deprecated: Use MyEmpty.ProtoReflect.Descriptor instead. +func (*MyEmpty) Descriptor() ([]byte, []int) { return file_users_generic_message_proto_rawDescGZIP(), []int{0} } @@ -156,7 +156,7 @@ func (x *Id) GetId() string { return "" } -type String struct { +type MyString struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -164,8 +164,8 @@ type String struct { String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"` } -func (x *String) Reset() { - *x = String{} +func (x *MyString) Reset() { + *x = MyString{} if protoimpl.UnsafeEnabled { mi := &file_users_generic_message_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -173,13 +173,13 @@ func (x *String) Reset() { } } -func (x *String) String() string { +func (x *MyString) String() string { return protoimpl.X.MessageStringOf(x) } -func (*String) ProtoMessage() {} +func (*MyString) ProtoMessage() {} -func (x *String) ProtoReflect() protoreflect.Message { +func (x *MyString) ProtoReflect() protoreflect.Message { mi := &file_users_generic_message_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -191,12 +191,12 @@ func (x *String) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use String.ProtoReflect.Descriptor instead. -func (*String) Descriptor() ([]byte, []int) { +// Deprecated: Use MyString.ProtoReflect.Descriptor instead. +func (*MyString) Descriptor() ([]byte, []int) { return file_users_generic_message_proto_rawDescGZIP(), []int{2} } -func (x *String) GetString_() string { +func (x *MyString) GetString_() string { if x != nil { return x.String_ } @@ -250,7 +250,7 @@ func (x *Message) GetMessage() string { return "" } -type Boolean struct { +type MyBoolean struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -258,8 +258,8 @@ type Boolean struct { Boolean bool `protobuf:"varint,1,opt,name=boolean,proto3" json:"boolean,omitempty"` } -func (x *Boolean) Reset() { - *x = Boolean{} +func (x *MyBoolean) Reset() { + *x = MyBoolean{} if protoimpl.UnsafeEnabled { mi := &file_users_generic_message_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -267,13 +267,13 @@ func (x *Boolean) Reset() { } } -func (x *Boolean) String() string { +func (x *MyBoolean) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Boolean) ProtoMessage() {} +func (*MyBoolean) ProtoMessage() {} -func (x *Boolean) ProtoReflect() protoreflect.Message { +func (x *MyBoolean) ProtoReflect() protoreflect.Message { mi := &file_users_generic_message_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -285,12 +285,12 @@ func (x *Boolean) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Boolean.ProtoReflect.Descriptor instead. -func (*Boolean) Descriptor() ([]byte, []int) { +// Deprecated: Use MyBoolean.ProtoReflect.Descriptor instead. +func (*MyBoolean) Descriptor() ([]byte, []int) { return file_users_generic_message_proto_rawDescGZIP(), []int{4} } -func (x *Boolean) GetBoolean() bool { +func (x *MyBoolean) GetBoolean() bool { if x != nil { return x.Boolean } @@ -389,31 +389,34 @@ 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, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x09, 0x0a, + 0x07, 0x4d, 0x79, 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, 0x22, + 0x0a, 0x08, 0x4d, 0x79, 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, 0x25, 0x0a, 0x09, 0x4d, 0x79, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -432,11 +435,11 @@ 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 + (*MyEmpty)(nil), // 1: wiradata.users.MyEmpty (*Id)(nil), // 2: wiradata.users.Id - (*String)(nil), // 3: wiradata.users.String + (*MyString)(nil), // 3: wiradata.users.MyString (*Message)(nil), // 4: wiradata.users.Message - (*Boolean)(nil), // 5: wiradata.users.Boolean + (*MyBoolean)(nil), // 5: wiradata.users.MyBoolean (*Pagination)(nil), // 6: wiradata.users.Pagination } var file_users_generic_message_proto_depIdxs = []int32{ @@ -455,7 +458,7 @@ func file_users_generic_message_proto_init() { } if !protoimpl.UnsafeEnabled { file_users_generic_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { + switch v := v.(*MyEmpty); i { case 0: return &v.state case 1: @@ -479,7 +482,7 @@ func file_users_generic_message_proto_init() { } } file_users_generic_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*String); i { + switch v := v.(*MyString); i { case 0: return &v.state case 1: @@ -503,7 +506,7 @@ func file_users_generic_message_proto_init() { } } file_users_generic_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Boolean); i { + switch v := v.(*MyBoolean); i { case 0: return &v.state case 1: diff --git a/pb/users/group_message.pb.go b/pb/users/group_message.pb.go index edf1836..672c9b3 100644 --- a/pb/users/group_message.pb.go +++ b/pb/users/group_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,15 +30,15 @@ type Group struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - IsMutable bool `protobuf:"varint,4,opt,name=is_mutable,json=isMutable,proto3" json:"is_mutable,omitempty"` - Access []*Access `protobuf:"bytes,5,rep,name=access,proto3" json:"access,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + IsMutable bool `protobuf:"varint,4,opt,name=is_mutable,json=isMutable,proto3" json:"is_mutable,omitempty"` + Access []*Access `protobuf:"bytes,5,rep,name=access,proto3" json:"access,omitempty"` + CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Group) Reset() { @@ -109,11 +108,11 @@ func (x *Group) GetAccess() []*Access { return nil } -func (x *Group) GetCreatedAt() *timestamp.Timestamp { +func (x *Group) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Group) GetCreatedBy() string { @@ -123,11 +122,11 @@ func (x *Group) GetCreatedBy() string { return "" } -func (x *Group) GetUpdatedAt() *timestamp.Timestamp { +func (x *Group) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Group) GetUpdatedBy() string { @@ -142,34 +141,30 @@ 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, + 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, 0x22, 0x95, 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, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 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, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 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, + 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -186,19 +181,16 @@ func file_users_group_message_proto_rawDescGZIP() []byte { 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 + (*Group)(nil), // 0: wiradata.users.Group + (*Access)(nil), // 1: wiradata.users.Access } 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 - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_users_group_message_proto_init() } diff --git a/pb/users/group_service.pb.go b/pb/users/group_service.pb.go index f49b429..e5fb556 100644 --- a/pb/users/group_service.pb.go +++ b/pb/users/group_service.pb.go @@ -285,7 +285,7 @@ var file_users_group_service_proto_rawDesc = []byte{ 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, + 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x49, 0x64, 0x32, 0xe0, 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, @@ -297,27 +297,29 @@ var file_users_group_service_proto_rawDesc = []byte{ 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, + 0x70, 0x22, 0x00, 0x12, 0x39, 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, + 0x64, 0x1a, 0x19, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x73, 0x2e, 0x4d, 0x79, 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, 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, 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, + 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, 0x35, 0x0a, 0x21, + 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x73, 0x50, 0x01, 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 ( @@ -341,7 +343,7 @@ var file_users_group_service_proto_goTypes = []interface{}{ (*Pagination)(nil), // 4: wiradata.users.Pagination (*Group)(nil), // 5: wiradata.users.Group (*Id)(nil), // 6: wiradata.users.Id - (*Boolean)(nil), // 7: wiradata.users.Boolean + (*MyBoolean)(nil), // 7: wiradata.users.MyBoolean (*Message)(nil), // 8: wiradata.users.Message } var file_users_group_service_proto_depIdxs = []int32{ @@ -359,7 +361,7 @@ var file_users_group_service_proto_depIdxs = []int32{ 5, // 11: wiradata.users.GroupService.Create:output_type -> wiradata.users.Group 5, // 12: wiradata.users.GroupService.Update:output_type -> wiradata.users.Group 5, // 13: wiradata.users.GroupService.View:output_type -> wiradata.users.Group - 7, // 14: wiradata.users.GroupService.Delete:output_type -> wiradata.users.Boolean + 7, // 14: wiradata.users.GroupService.Delete:output_type -> wiradata.users.MyBoolean 2, // 15: wiradata.users.GroupService.List:output_type -> wiradata.users.ListGroupResponse 8, // 16: wiradata.users.GroupService.GrantAccess:output_type -> wiradata.users.Message 8, // 17: wiradata.users.GroupService.RevokeAccess:output_type -> wiradata.users.Message @@ -462,7 +464,7 @@ type GroupServiceClient interface { Create(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Group, error) Update(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Group, error) View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Group, error) - Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) + Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) List(ctx context.Context, in *ListGroupRequest, opts ...grpc.CallOption) (GroupService_ListClient, error) GrantAccess(ctx context.Context, in *GrantAccessRequest, opts ...grpc.CallOption) (*Message, error) RevokeAccess(ctx context.Context, in *GrantAccessRequest, opts ...grpc.CallOption) (*Message, error) @@ -503,8 +505,8 @@ func (c *groupServiceClient) View(ctx context.Context, in *Id, opts ...grpc.Call return out, nil } -func (c *groupServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *groupServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.GroupService/Delete", in, out, opts...) if err != nil { return nil, err @@ -567,7 +569,7 @@ type GroupServiceServer interface { Create(context.Context, *Group) (*Group, error) Update(context.Context, *Group) (*Group, error) View(context.Context, *Id) (*Group, error) - Delete(context.Context, *Id) (*Boolean, error) + Delete(context.Context, *Id) (*MyBoolean, error) List(*ListGroupRequest, GroupService_ListServer) error GrantAccess(context.Context, *GrantAccessRequest) (*Message, error) RevokeAccess(context.Context, *GrantAccessRequest) (*Message, error) @@ -586,7 +588,7 @@ func (*UnimplementedGroupServiceServer) Update(context.Context, *Group) (*Group, func (*UnimplementedGroupServiceServer) View(context.Context, *Id) (*Group, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedGroupServiceServer) Delete(context.Context, *Id) (*Boolean, error) { +func (*UnimplementedGroupServiceServer) Delete(context.Context, *Id) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedGroupServiceServer) List(*ListGroupRequest, GroupService_ListServer) error { diff --git a/pb/users/region_message.pb.go b/pb/users/region_message.pb.go index 5fd66df..0e3dd6a 100644 --- a/pb/users/region_message.pb.go +++ b/pb/users/region_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,15 +30,15 @@ type Region struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` - Branches []*Branch `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` + Branches []*Branch `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"` + CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + CreatedBy string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` + UpdatedAt string `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,9,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *Region) Reset() { @@ -109,11 +108,11 @@ func (x *Region) GetBranches() []*Branch { return nil } -func (x *Region) GetCreatedAt() *timestamp.Timestamp { +func (x *Region) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } func (x *Region) GetCreatedBy() string { @@ -123,11 +122,11 @@ func (x *Region) GetCreatedBy() string { return "" } -func (x *Region) GetUpdatedAt() *timestamp.Timestamp { +func (x *Region) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *Region) GetUpdatedBy() string { @@ -142,33 +141,30 @@ 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, + 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, 0x22, 0x8f, 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, 0x1d, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 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, 0x1d, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, + 0x01, 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 ( @@ -185,19 +181,16 @@ func file_users_region_message_proto_rawDescGZIP() []byte { 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 + (*Region)(nil), // 0: wiradata.users.Region + (*Branch)(nil), // 1: wiradata.users.Branch } 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 - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_users_region_message_proto_init() } diff --git a/pb/users/region_service.pb.go b/pb/users/region_service.pb.go index 271b100..fa7292b 100644 --- a/pb/users/region_service.pb.go +++ b/pb/users/region_service.pb.go @@ -236,7 +236,7 @@ var file_users_region_service_proto_rawDesc = []byte{ 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, + 0x67, 0x69, 0x6f, 0x6e, 0x32, 0xcb, 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, @@ -248,17 +248,20 @@ var file_users_region_service_proto_rawDesc = []byte{ 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, + 0x6f, 0x6e, 0x22, 0x00, 0x12, 0x39, 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, + 0x49, 0x64, 0x1a, 0x19, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x79, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -281,7 +284,7 @@ var file_users_region_service_proto_goTypes = []interface{}{ (*Pagination)(nil), // 3: wiradata.users.Pagination (*Region)(nil), // 4: wiradata.users.Region (*Id)(nil), // 5: wiradata.users.Id - (*Boolean)(nil), // 6: wiradata.users.Boolean + (*MyBoolean)(nil), // 6: wiradata.users.MyBoolean } var file_users_region_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListRegionRequest.pagination:type_name -> wiradata.users.Pagination @@ -296,7 +299,7 @@ var file_users_region_service_proto_depIdxs = []int32{ 4, // 9: wiradata.users.RegionService.Create:output_type -> wiradata.users.Region 4, // 10: wiradata.users.RegionService.Update:output_type -> wiradata.users.Region 4, // 11: wiradata.users.RegionService.View:output_type -> wiradata.users.Region - 6, // 12: wiradata.users.RegionService.Delete:output_type -> wiradata.users.Boolean + 6, // 12: wiradata.users.RegionService.Delete:output_type -> wiradata.users.MyBoolean 2, // 13: wiradata.users.RegionService.List:output_type -> wiradata.users.ListRegionResponse 9, // [9:14] is the sub-list for method output_type 4, // [4:9] is the sub-list for method input_type @@ -385,7 +388,7 @@ type RegionServiceClient interface { Create(ctx context.Context, in *Region, opts ...grpc.CallOption) (*Region, error) Update(ctx context.Context, in *Region, opts ...grpc.CallOption) (*Region, error) View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Region, error) - Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) + Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) List(ctx context.Context, in *ListRegionRequest, opts ...grpc.CallOption) (RegionService_ListClient, error) } @@ -424,8 +427,8 @@ func (c *regionServiceClient) View(ctx context.Context, in *Id, opts ...grpc.Cal return out, nil } -func (c *regionServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *regionServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.RegionService/Delete", in, out, opts...) if err != nil { return nil, err @@ -470,7 +473,7 @@ type RegionServiceServer interface { Create(context.Context, *Region) (*Region, error) Update(context.Context, *Region) (*Region, error) View(context.Context, *Id) (*Region, error) - Delete(context.Context, *Id) (*Boolean, error) + Delete(context.Context, *Id) (*MyBoolean, error) List(*ListRegionRequest, RegionService_ListServer) error } @@ -487,7 +490,7 @@ func (*UnimplementedRegionServiceServer) Update(context.Context, *Region) (*Regi func (*UnimplementedRegionServiceServer) View(context.Context, *Id) (*Region, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedRegionServiceServer) Delete(context.Context, *Id) (*Boolean, error) { +func (*UnimplementedRegionServiceServer) Delete(context.Context, *Id) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedRegionServiceServer) List(*ListRegionRequest, RegionService_ListServer) error { diff --git a/pb/users/request_password_message.pb.go b/pb/users/request_password_message.pb.go index c5b3ba2..0b79d33 100644 --- a/pb/users/request_password_message.pb.go +++ b/pb/users/request_password_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,10 +30,10 @@ type RequestPassword struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - IsUsed bool `protobuf:"varint,3,opt,name=is_used,json=isUsed,proto3" json:"is_used,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + IsUsed bool `protobuf:"varint,3,opt,name=is_used,json=isUsed,proto3" json:"is_used,omitempty"` + CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } func (x *RequestPassword) Reset() { @@ -90,11 +89,11 @@ func (x *RequestPassword) GetIsUsed() bool { return false } -func (x *RequestPassword) GetCreatedAt() *timestamp.Timestamp { +func (x *RequestPassword) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } var File_users_request_password_message_proto protoreflect.FileDescriptor @@ -103,20 +102,18 @@ 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, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x72, 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, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x35, 0x0a, 0x21, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, + 0x01, 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 ( @@ -133,16 +130,14 @@ func file_users_request_password_message_proto_rawDescGZIP() []byte { 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 + (*RequestPassword)(nil), // 0: wiradata.users.RequestPassword } 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 - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } func init() { file_users_request_password_message_proto_init() } diff --git a/pb/users/user_message.pb.go b/pb/users/user_message.pb.go index 7456bbd..def0963 100644 --- a/pb/users/user_message.pb.go +++ b/pb/users/user_message.pb.go @@ -8,7 +8,6 @@ package users import ( proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -31,17 +30,17 @@ type User struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` - RegionId string `protobuf:"bytes,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - BranchId string `protobuf:"bytes,4,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` - Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - Group *Group `protobuf:"bytes,8,opt,name=group,proto3" json:"group,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - UpdatedBy string `protobuf:"bytes,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CompanyId string `protobuf:"bytes,2,opt,name=company_id,json=companyId,proto3" json:"company_id,omitempty"` + RegionId string `protobuf:"bytes,3,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + BranchId string `protobuf:"bytes,4,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"` + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` + Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + Group *Group `protobuf:"bytes,8,opt,name=group,proto3" json:"group,omitempty"` + CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + UpdatedBy string `protobuf:"bytes,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` } func (x *User) Reset() { @@ -132,18 +131,18 @@ func (x *User) GetGroup() *Group { return nil } -func (x *User) GetCreatedAt() *timestamp.Timestamp { +func (x *User) GetCreatedAt() string { if x != nil { return x.CreatedAt } - return nil + return "" } -func (x *User) GetUpdatedAt() *timestamp.Timestamp { +func (x *User) GetUpdatedAt() string { if x != nil { return x.UpdatedAt } - return nil + return "" } func (x *User) GetUpdatedBy() string { @@ -158,36 +157,33 @@ var File_users_user_message_proto protoreflect.FileDescriptor 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, + 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, 0x22, 0xbf, 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, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x77, + 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, 0x01, 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 ( @@ -204,19 +200,16 @@ func file_users_user_message_proto_rawDescGZIP() []byte { 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 + (*User)(nil), // 0: wiradata.users.User + (*Group)(nil), // 1: wiradata.users.Group } 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 - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_users_user_message_proto_init() } diff --git a/pb/users/user_service.pb.go b/pb/users/user_service.pb.go index e451482..464f0f9 100644 --- a/pb/users/user_service.pb.go +++ b/pb/users/user_service.pb.go @@ -254,7 +254,7 @@ var file_users_user_service_proto_rawDesc = []byte{ 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, + 0x72, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0xfa, 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, @@ -266,20 +266,23 @@ var file_users_user_service_proto_rawDesc = []byte{ 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, + 0x00, 0x12, 0x39, 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, + 0x19, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, + 0x2e, 0x4d, 0x79, 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, 0x3d, 0x0a, 0x0a, 0x47, + 0x65, 0x74, 0x42, 0x79, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x2e, 0x77, 0x69, 0x72, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x4d, 0x79, 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, 0x35, 0x0a, 0x21, 0x63, 0x6f, + 0x6d, 0x2e, 0x77, 0x69, 0x72, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x72, 0x70, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x73, 0x50, + 0x01, 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 ( @@ -302,8 +305,8 @@ var file_users_user_service_proto_goTypes = []interface{}{ (*Pagination)(nil), // 3: wiradata.users.Pagination (*User)(nil), // 4: wiradata.users.User (*Id)(nil), // 5: wiradata.users.Id - (*Empty)(nil), // 6: wiradata.users.Empty - (*Boolean)(nil), // 7: wiradata.users.Boolean + (*MyEmpty)(nil), // 6: wiradata.users.MyEmpty + (*MyBoolean)(nil), // 7: wiradata.users.MyBoolean } var file_users_user_service_proto_depIdxs = []int32{ 3, // 0: wiradata.users.ListUserRequest.pagination:type_name -> wiradata.users.Pagination @@ -315,11 +318,11 @@ var file_users_user_service_proto_depIdxs = []int32{ 5, // 6: wiradata.users.UserService.View:input_type -> wiradata.users.Id 5, // 7: wiradata.users.UserService.Delete:input_type -> wiradata.users.Id 0, // 8: wiradata.users.UserService.List:input_type -> wiradata.users.ListUserRequest - 6, // 9: wiradata.users.UserService.GetByToken:input_type -> wiradata.users.Empty + 6, // 9: wiradata.users.UserService.GetByToken:input_type -> wiradata.users.MyEmpty 4, // 10: wiradata.users.UserService.Create:output_type -> wiradata.users.User 4, // 11: wiradata.users.UserService.Update:output_type -> wiradata.users.User 4, // 12: wiradata.users.UserService.View:output_type -> wiradata.users.User - 7, // 13: wiradata.users.UserService.Delete:output_type -> wiradata.users.Boolean + 7, // 13: wiradata.users.UserService.Delete:output_type -> wiradata.users.MyBoolean 2, // 14: wiradata.users.UserService.List:output_type -> wiradata.users.ListUserResponse 4, // 15: wiradata.users.UserService.GetByToken:output_type -> wiradata.users.User 10, // [10:16] is the sub-list for method output_type @@ -409,9 +412,9 @@ type UserServiceClient interface { Create(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) Update(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) View(ctx context.Context, in *Id, opts ...grpc.CallOption) (*User, error) - Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) + Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) List(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (UserService_ListClient, error) - GetByToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*User, error) + GetByToken(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (*User, error) } type userServiceClient struct { @@ -449,8 +452,8 @@ func (c *userServiceClient) View(ctx context.Context, in *Id, opts ...grpc.CallO return out, nil } -func (c *userServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Boolean, error) { - out := new(Boolean) +func (c *userServiceClient) Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*MyBoolean, error) { + out := new(MyBoolean) err := c.cc.Invoke(ctx, "/wiradata.users.UserService/Delete", in, out, opts...) if err != nil { return nil, err @@ -490,7 +493,7 @@ func (x *userServiceListClient) Recv() (*ListUserResponse, error) { return m, nil } -func (c *userServiceClient) GetByToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*User, error) { +func (c *userServiceClient) GetByToken(ctx context.Context, in *MyEmpty, opts ...grpc.CallOption) (*User, error) { out := new(User) err := c.cc.Invoke(ctx, "/wiradata.users.UserService/GetByToken", in, out, opts...) if err != nil { @@ -504,9 +507,9 @@ type UserServiceServer interface { Create(context.Context, *User) (*User, error) Update(context.Context, *User) (*User, error) View(context.Context, *Id) (*User, error) - Delete(context.Context, *Id) (*Boolean, error) + Delete(context.Context, *Id) (*MyBoolean, error) List(*ListUserRequest, UserService_ListServer) error - GetByToken(context.Context, *Empty) (*User, error) + GetByToken(context.Context, *MyEmpty) (*User, error) } // UnimplementedUserServiceServer can be embedded to have forward compatible implementations. @@ -522,13 +525,13 @@ func (*UnimplementedUserServiceServer) Update(context.Context, *User) (*User, er func (*UnimplementedUserServiceServer) View(context.Context, *Id) (*User, error) { return nil, status.Errorf(codes.Unimplemented, "method View not implemented") } -func (*UnimplementedUserServiceServer) Delete(context.Context, *Id) (*Boolean, error) { +func (*UnimplementedUserServiceServer) Delete(context.Context, *Id) (*MyBoolean, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (*UnimplementedUserServiceServer) List(*ListUserRequest, UserService_ListServer) error { return status.Errorf(codes.Unimplemented, "method List not implemented") } -func (*UnimplementedUserServiceServer) GetByToken(context.Context, *Empty) (*User, error) { +func (*UnimplementedUserServiceServer) GetByToken(context.Context, *MyEmpty) (*User, error) { return nil, status.Errorf(codes.Unimplemented, "method GetByToken not implemented") } @@ -630,7 +633,7 @@ func (x *userServiceListServer) Send(m *ListUserResponse) error { } func _UserService_GetByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) + in := new(MyEmpty) if err := dec(in); err != nil { return nil, err } @@ -642,7 +645,7 @@ func _UserService_GetByToken_Handler(srv interface{}, ctx context.Context, dec f FullMethod: "/wiradata.users.UserService/GetByToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserServiceServer).GetByToken(ctx, req.(*Empty)) + return srv.(UserServiceServer).GetByToken(ctx, req.(*MyEmpty)) } return interceptor(ctx, in, info, handler) } diff --git a/proto/users/access_message.proto b/proto/users/access_message.proto index b35485f..f90e1ab 100644 --- a/proto/users/access_message.proto +++ b/proto/users/access_message.proto @@ -2,15 +2,15 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; - -import "google/protobuf/timestamp.proto"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; message Access { string id = 1; string name = 2; repeated Access childrens = 3; - google.protobuf.Timestamp created_at = 4; + string created_at = 4; string created_by = 5; - google.protobuf.Timestamp updated_at = 6; + string updated_at = 6; string updated_by = 7; } \ No newline at end of file diff --git a/proto/users/access_service.proto b/proto/users/access_service.proto index dec91b9..7b6fedf 100644 --- a/proto/users/access_service.proto +++ b/proto/users/access_service.proto @@ -2,10 +2,12 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/access_message.proto"; import "users/generic_message.proto"; service AccessService { - rpc List(Empty) returns (Access) {} + rpc List(MyEmpty) returns (Access) {} } \ No newline at end of file diff --git a/proto/users/auth_service.proto b/proto/users/auth_service.proto index d923594..a366695 100644 --- a/proto/users/auth_service.proto +++ b/proto/users/auth_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/user_message.proto"; import "users/generic_message.proto"; @@ -37,5 +39,5 @@ service AuthService { rpc ForgotPassword(ForgotPasswordRequest) returns (Message) {} rpc ResetPassword(ResetPasswordRequest) returns (Message) {} rpc ChangePassword(ChangePasswordRequest) returns (Message) {} - rpc IsAuth(String) returns (Boolean) {} + rpc IsAuth(MyString) returns (MyBoolean) {} } \ No newline at end of file diff --git a/proto/users/branch_message.proto b/proto/users/branch_message.proto index 9ce99fe..147164d 100644 --- a/proto/users/branch_message.proto +++ b/proto/users/branch_message.proto @@ -2,8 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; - -import "google/protobuf/timestamp.proto"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; message Branch { string id = 1; @@ -18,8 +18,8 @@ message Branch { string phone = 10; string pic = 11; string pic_phone = 12; - google.protobuf.Timestamp created_at = 13; + string created_at = 13; string created_by = 14; - google.protobuf.Timestamp updated_at = 15; + string updated_at = 15; string updated_by = 16; } \ No newline at end of file diff --git a/proto/users/branch_service.proto b/proto/users/branch_service.proto index a90c6d7..6443148 100644 --- a/proto/users/branch_service.proto +++ b/proto/users/branch_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/branch_message.proto"; import "users/generic_message.proto"; @@ -26,6 +28,6 @@ service BranchService { rpc Create(Branch) returns (Branch) {} rpc Update(Branch) returns (Branch) {} rpc View(Id) returns (Branch) {} - rpc Delete(Id) returns (Boolean) {} + rpc Delete(Id) returns (MyBoolean) {} rpc List(ListBranchRequest) returns (stream ListBranchResponse) {} } \ No newline at end of file diff --git a/proto/users/company_message.proto b/proto/users/company_message.proto index bd1cda2..6c19aee 100644 --- a/proto/users/company_message.proto +++ b/proto/users/company_message.proto @@ -2,8 +2,9 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -import "google/protobuf/timestamp.proto"; import "users/feature_message.proto"; message Company { @@ -20,7 +21,7 @@ message Company { string logo = 11; EnumPackageOfFeature package_of_feature = 12; repeated Feature features = 13; - google.protobuf.Timestamp created_at = 14; - google.protobuf.Timestamp updated_at = 15; + string created_at = 14; + string updated_at = 15; string updated_by = 16; } \ No newline at end of file diff --git a/proto/users/company_service.proto b/proto/users/company_service.proto index 6084b97..dcd545e 100644 --- a/proto/users/company_service.proto +++ b/proto/users/company_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/company_message.proto"; import "users/generic_message.proto"; diff --git a/proto/users/employee_message.proto b/proto/users/employee_message.proto index 561fc25..e34eb06 100644 --- a/proto/users/employee_message.proto +++ b/proto/users/employee_message.proto @@ -2,8 +2,9 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -import "google/protobuf/timestamp.proto"; import "users/user_message.proto"; message Employee { @@ -15,8 +16,8 @@ message Employee { string city = 6; string province = 7; string jabatan = 8; - google.protobuf.Timestamp created_at = 9; + string created_at = 9; string created_by = 10; - google.protobuf.Timestamp updated_at = 11; + string updated_at = 11; string updated_by = 12; } \ No newline at end of file diff --git a/proto/users/employee_service.proto b/proto/users/employee_service.proto index 73de66a..c1cbd58 100644 --- a/proto/users/employee_service.proto +++ b/proto/users/employee_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/employee_message.proto"; import "users/generic_message.proto"; @@ -28,6 +30,6 @@ service EmployeeService { rpc Create(Employee) returns (Employee) {} rpc Update(Employee) returns (Employee) {} rpc View(Id) returns (Employee) {} - rpc Delete(Id) returns (Boolean) {} + rpc Delete(Id) returns (MyBoolean) {} rpc List(ListEmployeeRequest) returns (stream ListEmployeeResponse) {} } \ No newline at end of file diff --git a/proto/users/feature_message.proto b/proto/users/feature_message.proto index 1d08c0d..328fa66 100644 --- a/proto/users/feature_message.proto +++ b/proto/users/feature_message.proto @@ -2,15 +2,15 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; - -import "google/protobuf/timestamp.proto"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; message Feature { string id = 1; string name = 2; - google.protobuf.Timestamp created_at = 3; + string created_at = 3; string created_by = 4; - google.protobuf.Timestamp updated_at = 5; + string updated_at = 5; string updated_by = 6; } diff --git a/proto/users/feature_service.proto b/proto/users/feature_service.proto index fe80411..15e6419 100644 --- a/proto/users/feature_service.proto +++ b/proto/users/feature_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/feature_message.proto"; import "users/generic_message.proto"; @@ -10,10 +12,10 @@ message ListFeatureResponse {Feature feature = 1;} message ListPackageFeatureResponse {PackageOfFeature package_of_feature = 1;} service FeatureService { - rpc List(Empty) returns (stream ListFeatureResponse) {} + rpc List(MyEmpty) returns (stream ListFeatureResponse) {} } service PackageFeatureService { rpc View(Id) returns (PackageOfFeature) {} - rpc List(Empty) returns (stream ListPackageFeatureResponse) {} + rpc List(MyEmpty) returns (stream ListPackageFeatureResponse) {} } \ No newline at end of file diff --git a/proto/users/generic_message.proto b/proto/users/generic_message.proto index 9794463..0479608 100644 --- a/proto/users/generic_message.proto +++ b/proto/users/generic_message.proto @@ -2,12 +2,14 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -message Empty {} +message MyEmpty {} message Id { string id = 1; } -message String { string string = 1; } +message MyString { string string = 1; } message Message { string message = 1; } -message Boolean { bool boolean = 1; } +message MyBoolean { bool boolean = 1; } message Pagination { enum Sort { diff --git a/proto/users/group_message.proto b/proto/users/group_message.proto index 9d9fafb..b878e84 100644 --- a/proto/users/group_message.proto +++ b/proto/users/group_message.proto @@ -2,8 +2,9 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -import "google/protobuf/timestamp.proto"; import "users/access_message.proto"; message Group { @@ -12,8 +13,8 @@ message Group { string name = 3; bool is_mutable = 4; repeated Access access = 5; - google.protobuf.Timestamp created_at = 6; + string created_at = 6; string created_by = 7; - google.protobuf.Timestamp updated_at = 8; + string updated_at = 8; string updated_by = 9; } \ No newline at end of file diff --git a/proto/users/group_service.proto b/proto/users/group_service.proto index d5bafe9..5aef200 100644 --- a/proto/users/group_service.proto +++ b/proto/users/group_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/group_message.proto"; import "users/generic_message.proto"; @@ -30,7 +32,7 @@ service GroupService { rpc Create(Group) returns (Group) {} rpc Update(Group) returns (Group) {} rpc View(Id) returns (Group) {} - rpc Delete(Id) returns (Boolean) {} + rpc Delete(Id) returns (MyBoolean) {} rpc List(ListGroupRequest) returns (stream ListGroupResponse) {} rpc GrantAccess(GrantAccessRequest) returns (Message) {} rpc RevokeAccess(GrantAccessRequest) returns (Message) {} diff --git a/proto/users/region_message.proto b/proto/users/region_message.proto index 8cee114..4a80637 100644 --- a/proto/users/region_message.proto +++ b/proto/users/region_message.proto @@ -2,8 +2,9 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -import "google/protobuf/timestamp.proto"; import "users/branch_message.proto"; message Region { @@ -12,8 +13,8 @@ message Region { string name = 3; string code = 4; repeated Branch branches = 5; - google.protobuf.Timestamp created_at = 6; + string created_at = 6; string created_by = 7; - google.protobuf.Timestamp updated_at = 8; + string updated_at = 8; string updated_by = 9; } \ No newline at end of file diff --git a/proto/users/region_service.proto b/proto/users/region_service.proto index 16c24e4..5ab6fd6 100644 --- a/proto/users/region_service.proto +++ b/proto/users/region_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/region_message.proto"; import "users/generic_message.proto"; @@ -26,6 +28,6 @@ service RegionService { rpc Create(Region) returns (Region) {} rpc Update(Region) returns (Region) {} rpc View(Id) returns (Region) {} - rpc Delete(Id) returns (Boolean) {} + rpc Delete(Id) returns (MyBoolean) {} rpc List(ListRegionRequest) returns (stream ListRegionResponse) {} } \ No newline at end of file diff --git a/proto/users/request_password_message.proto b/proto/users/request_password_message.proto index 5fd57de..6e3fb1d 100644 --- a/proto/users/request_password_message.proto +++ b/proto/users/request_password_message.proto @@ -2,12 +2,12 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; - -import "google/protobuf/timestamp.proto"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; message RequestPassword { string id = 1; string user_id = 2; bool is_used = 3; - google.protobuf.Timestamp created_at = 4; + string created_at = 4; } \ No newline at end of file diff --git a/proto/users/user_message.proto b/proto/users/user_message.proto index bbe2d2a..1bd158d 100644 --- a/proto/users/user_message.proto +++ b/proto/users/user_message.proto @@ -2,8 +2,9 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; -import "google/protobuf/timestamp.proto"; import "users/group_message.proto"; message User { @@ -15,7 +16,7 @@ message User { string name = 6; string email = 7; Group group = 8; - google.protobuf.Timestamp created_at = 9; - google.protobuf.Timestamp updated_at = 10; + string created_at = 9; + string updated_at = 10; string updated_by = 11; } \ No newline at end of file diff --git a/proto/users/user_service.proto b/proto/users/user_service.proto index c6b76f7..57ad744 100644 --- a/proto/users/user_service.proto +++ b/proto/users/user_service.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package wiradata.users; option go_package = "pb/users;users"; +option java_package = "com.wiradata.erpapplication.users"; +option java_multiple_files = true; import "users/user_message.proto"; import "users/generic_message.proto"; @@ -28,7 +30,7 @@ service UserService { rpc Create(User) returns (User) {} rpc Update(User) returns (User) {} rpc View(Id) returns (User) {} - rpc Delete(Id) returns (Boolean) {} + rpc Delete(Id) returns (MyBoolean) {} rpc List(ListUserRequest) returns (stream ListUserResponse) {} - rpc GetByToken(Empty) returns (User) {} + rpc GetByToken(MyEmpty) returns (User) {} } \ No newline at end of file