chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -75,7 +75,7 @@ func (x *GetAllPermissionsRequest) GetSessionId() string {
|
|||||||
|
|
||||||
type GetAllPermissionsResponse struct {
|
type GetAllPermissionsResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
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
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -110,9 +110,9 @@ func (*GetAllPermissionsResponse) Descriptor() ([]byte, []int) {
|
|||||||
return file_rbac_proto_rawDescGZIP(), []int{1}
|
return file_rbac_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetAllPermissionsResponse) GetPermission() *Permission {
|
func (x *GetAllPermissionsResponse) GetPermissions() []*Permission {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Permission
|
return x.Permissions
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -247,7 +247,7 @@ func (x *GetAllRolesRequest) GetSessionId() string {
|
|||||||
|
|
||||||
type GetAllRolesResponse struct {
|
type GetAllRolesResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
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
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -282,7 +282,7 @@ func (*GetAllRolesResponse) Descriptor() ([]byte, []int) {
|
|||||||
return file_rbac_proto_rawDescGZIP(), []int{4}
|
return file_rbac_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetAllRolesResponse) GetRoles() *Roles {
|
func (x *GetAllRolesResponse) GetRoles() []*Roles {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Roles
|
return x.Roles
|
||||||
}
|
}
|
||||||
@@ -382,11 +382,9 @@ const file_rbac_proto_rawDesc = "" +
|
|||||||
"\x18GetAllPermissionsRequest\x12\x17\n" +
|
"\x18GetAllPermissionsRequest\x12\x17\n" +
|
||||||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"session_id\x18\x02 \x01(\tR\tsessionId\"P\n" +
|
"session_id\x18\x02 \x01(\tR\tsessionId\"R\n" +
|
||||||
"\x19GetAllPermissionsResponse\x123\n" +
|
"\x19GetAllPermissionsResponse\x125\n" +
|
||||||
"\n" +
|
"\vpermissions\x18\x01 \x03(\v2\x13.rbac.v1.PermissionR\vpermissions\"\x80\x01\n" +
|
||||||
"permission\x18\x01 \x01(\v2\x13.rbac.v1.PermissionR\n" +
|
|
||||||
"permission\"\x80\x01\n" +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
"Permission\x12\x0e\n" +
|
"Permission\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||||||
@@ -399,7 +397,7 @@ const file_rbac_proto_rawDesc = "" +
|
|||||||
"\n" +
|
"\n" +
|
||||||
"session_id\x18\x02 \x01(\tR\tsessionId\";\n" +
|
"session_id\x18\x02 \x01(\tR\tsessionId\";\n" +
|
||||||
"\x13GetAllRolesResponse\x12$\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" +
|
"\x05Roles\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||||||
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\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
|
(*Roles)(nil), // 5: rbac.v1.Roles
|
||||||
}
|
}
|
||||||
var file_rbac_proto_depIdxs = []int32{
|
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
|
5, // 1: rbac.v1.GetAllRolesResponse.roles:type_name -> rbac.v1.Roles
|
||||||
0, // 2: rbac.v1.RbacService.GetAllPermissions:input_type -> rbac.v1.GetAllPermissionsRequest
|
0, // 2: rbac.v1.RbacService.GetAllPermissions:input_type -> rbac.v1.GetAllPermissionsRequest
|
||||||
3, // 3: rbac.v1.RbacService.GetAllRoles:input_type -> rbac.v1.GetAllRolesRequest
|
3, // 3: rbac.v1.RbacService.GetAllRoles:input_type -> rbac.v1.GetAllRolesRequest
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export interface GetAllPermissionsRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface GetAllPermissionsResponse {
|
export interface GetAllPermissionsResponse {
|
||||||
permission: Permission | undefined;
|
permissions: Permission[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Permission {
|
export interface Permission {
|
||||||
@@ -34,7 +34,7 @@ export interface GetAllRolesRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface GetAllRolesResponse {
|
export interface GetAllRolesResponse {
|
||||||
roles: Roles | undefined;
|
roles: Roles[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Roles {
|
export interface Roles {
|
||||||
|
|||||||
Reference in New Issue
Block a user