diff --git a/gen/go/rbac.pb.go b/gen/go/rbac.pb.go index a83da2d..f3a7ccf 100644 --- a/gen/go/rbac.pb.go +++ b/gen/go/rbac.pb.go @@ -75,7 +75,7 @@ func (x *GetAllPermissionsRequest) GetSessionId() string { type GetAllPermissionsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` - Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` + Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -110,9 +110,9 @@ func (*GetAllPermissionsResponse) Descriptor() ([]byte, []int) { return file_rbac_proto_rawDescGZIP(), []int{1} } -func (x *GetAllPermissionsResponse) GetPermission() *Permission { +func (x *GetAllPermissionsResponse) GetPermissions() []*Permission { if x != nil { - return x.Permission + return x.Permissions } return nil } @@ -247,7 +247,7 @@ func (x *GetAllRolesRequest) GetSessionId() string { type GetAllRolesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` - Roles *Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"` + Roles []*Roles `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -282,7 +282,7 @@ func (*GetAllRolesResponse) Descriptor() ([]byte, []int) { return file_rbac_proto_rawDescGZIP(), []int{4} } -func (x *GetAllRolesResponse) GetRoles() *Roles { +func (x *GetAllRolesResponse) GetRoles() []*Roles { if x != nil { return x.Roles } @@ -382,11 +382,9 @@ const file_rbac_proto_rawDesc = "" + "\x18GetAllPermissionsRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" + "\n" + - "session_id\x18\x02 \x01(\tR\tsessionId\"P\n" + - "\x19GetAllPermissionsResponse\x123\n" + - "\n" + - "permission\x18\x01 \x01(\v2\x13.rbac.v1.PermissionR\n" + - "permission\"\x80\x01\n" + + "session_id\x18\x02 \x01(\tR\tsessionId\"R\n" + + "\x19GetAllPermissionsResponse\x125\n" + + "\vpermissions\x18\x01 \x03(\v2\x13.rbac.v1.PermissionR\vpermissions\"\x80\x01\n" + "\n" + "Permission\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + @@ -399,7 +397,7 @@ const file_rbac_proto_rawDesc = "" + "\n" + "session_id\x18\x02 \x01(\tR\tsessionId\";\n" + "\x13GetAllRolesResponse\x12$\n" + - "\x05roles\x18\x01 \x01(\v2\x0e.rbac.v1.RolesR\x05roles\"\xa2\x01\n" + + "\x05roles\x18\x01 \x03(\v2\x0e.rbac.v1.RolesR\x05roles\"\xa2\x01\n" + "\x05Roles\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + @@ -433,7 +431,7 @@ var file_rbac_proto_goTypes = []any{ (*Roles)(nil), // 5: rbac.v1.Roles } var file_rbac_proto_depIdxs = []int32{ - 2, // 0: rbac.v1.GetAllPermissionsResponse.permission:type_name -> rbac.v1.Permission + 2, // 0: rbac.v1.GetAllPermissionsResponse.permissions:type_name -> rbac.v1.Permission 5, // 1: rbac.v1.GetAllRolesResponse.roles:type_name -> rbac.v1.Roles 0, // 2: rbac.v1.RbacService.GetAllPermissions:input_type -> rbac.v1.GetAllPermissionsRequest 3, // 3: rbac.v1.RbacService.GetAllRoles:input_type -> rbac.v1.GetAllRolesRequest diff --git a/gen/rbac.ts b/gen/rbac.ts index 7156d84..1afae2a 100644 --- a/gen/rbac.ts +++ b/gen/rbac.ts @@ -17,7 +17,7 @@ export interface GetAllPermissionsRequest { } export interface GetAllPermissionsResponse { - permission: Permission | undefined; + permissions: Permission[]; } export interface Permission { @@ -34,7 +34,7 @@ export interface GetAllRolesRequest { } export interface GetAllRolesResponse { - roles: Roles | undefined; + roles: Roles[]; } export interface Roles {