Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPermissionRpcServer(s grpc.ServiceRegistrar, srv PermissionRpcServer)
- type ApiDetails
- func (*ApiDetails) Descriptor() ([]byte, []int)deprecated
- func (x *ApiDetails) GetChildren() []*ApiDetails
- func (x *ApiDetails) GetCreatedAt() int64
- func (x *ApiDetails) GetId() int64
- func (x *ApiDetails) GetIsDisable() int64
- func (x *ApiDetails) GetMethod() string
- func (x *ApiDetails) GetName() string
- func (x *ApiDetails) GetParentId() int64
- func (x *ApiDetails) GetPath() string
- func (x *ApiDetails) GetTraceable() int64
- func (x *ApiDetails) GetUpdatedAt() int64
- func (*ApiDetails) ProtoMessage()
- func (x *ApiDetails) ProtoReflect() protoreflect.Message
- func (x *ApiDetails) Reset()
- func (x *ApiDetails) String() string
- type ApiNewReq
- func (*ApiNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *ApiNewReq) GetChildren() []*ApiNewReq
- func (x *ApiNewReq) GetId() int64
- func (x *ApiNewReq) GetIsDisable() int64
- func (x *ApiNewReq) GetMethod() string
- func (x *ApiNewReq) GetName() string
- func (x *ApiNewReq) GetParentId() int64
- func (x *ApiNewReq) GetPath() string
- func (x *ApiNewReq) GetTraceable() int64
- func (*ApiNewReq) ProtoMessage()
- func (x *ApiNewReq) ProtoReflect() protoreflect.Message
- func (x *ApiNewReq) Reset()
- func (x *ApiNewReq) String() string
- type BatchResp
- type CountResp
- type EmptyReq
- type EmptyResp
- type FindApiListReq
- func (*FindApiListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindApiListReq) GetMethod() string
- func (x *FindApiListReq) GetName() string
- func (x *FindApiListReq) GetPage() int64
- func (x *FindApiListReq) GetPageSize() int64
- func (x *FindApiListReq) GetPath() string
- func (x *FindApiListReq) GetSorts() []string
- func (*FindApiListReq) ProtoMessage()
- func (x *FindApiListReq) ProtoReflect() protoreflect.Message
- func (x *FindApiListReq) Reset()
- func (x *FindApiListReq) String() string
- type FindApiListResp
- type FindMenuListReq
- func (*FindMenuListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindMenuListReq) GetName() string
- func (x *FindMenuListReq) GetPage() int64
- func (x *FindMenuListReq) GetPageSize() int64
- func (x *FindMenuListReq) GetSorts() []string
- func (x *FindMenuListReq) GetTitle() string
- func (*FindMenuListReq) ProtoMessage()
- func (x *FindMenuListReq) ProtoReflect() protoreflect.Message
- func (x *FindMenuListReq) Reset()
- func (x *FindMenuListReq) String() string
- type FindMenuListResp
- type FindRoleListReq
- func (*FindRoleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindRoleListReq) GetIsDisable() int64
- func (x *FindRoleListReq) GetPage() int64
- func (x *FindRoleListReq) GetPageSize() int64
- func (x *FindRoleListReq) GetRoleLabel() string
- func (x *FindRoleListReq) GetRoleName() string
- func (x *FindRoleListReq) GetSorts() []string
- func (*FindRoleListReq) ProtoMessage()
- func (x *FindRoleListReq) ProtoReflect() protoreflect.Message
- func (x *FindRoleListReq) Reset()
- func (x *FindRoleListReq) String() string
- type FindRoleListResp
- func (*FindRoleListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FindRoleListResp) GetList() []*RoleDetails
- func (x *FindRoleListResp) GetTotal() int64
- func (*FindRoleListResp) ProtoMessage()
- func (x *FindRoleListResp) ProtoReflect() protoreflect.Message
- func (x *FindRoleListResp) Reset()
- func (x *FindRoleListResp) String() string
- type IdReq
- type IdsReq
- type MenuDetails
- func (*MenuDetails) Descriptor() ([]byte, []int)deprecated
- func (x *MenuDetails) GetChildren() []*MenuDetails
- func (x *MenuDetails) GetComponent() string
- func (x *MenuDetails) GetCreatedAt() int64
- func (x *MenuDetails) GetId() int64
- func (x *MenuDetails) GetMeta() *MenuMeta
- func (x *MenuDetails) GetName() string
- func (x *MenuDetails) GetParentId() int64
- func (x *MenuDetails) GetPath() string
- func (x *MenuDetails) GetRedirect() string
- func (x *MenuDetails) GetUpdatedAt() int64
- func (*MenuDetails) ProtoMessage()
- func (x *MenuDetails) ProtoReflect() protoreflect.Message
- func (x *MenuDetails) Reset()
- func (x *MenuDetails) String() string
- type MenuMeta
- func (*MenuMeta) Descriptor() ([]byte, []int)deprecated
- func (x *MenuMeta) GetAlwaysShow() int64
- func (x *MenuMeta) GetIcon() string
- func (x *MenuMeta) GetIsDisable() int64
- func (x *MenuMeta) GetIsHidden() int64
- func (x *MenuMeta) GetKeepAlive() int64
- func (x *MenuMeta) GetParams() string
- func (x *MenuMeta) GetPerm() string
- func (x *MenuMeta) GetRank() int64
- func (x *MenuMeta) GetTitle() string
- func (x *MenuMeta) GetType() int64
- func (*MenuMeta) ProtoMessage()
- func (x *MenuMeta) ProtoReflect() protoreflect.Message
- func (x *MenuMeta) Reset()
- func (x *MenuMeta) String() string
- type MenuNewReq
- func (*MenuNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuNewReq) GetChildren() []*MenuNewReq
- func (x *MenuNewReq) GetComponent() string
- func (x *MenuNewReq) GetId() int64
- func (x *MenuNewReq) GetMeta() *MenuMeta
- func (x *MenuNewReq) GetName() string
- func (x *MenuNewReq) GetParentId() int64
- func (x *MenuNewReq) GetPath() string
- func (x *MenuNewReq) GetRedirect() string
- func (*MenuNewReq) ProtoMessage()
- func (x *MenuNewReq) ProtoReflect() protoreflect.Message
- func (x *MenuNewReq) Reset()
- func (x *MenuNewReq) String() string
- type PermissionRpcClient
- type PermissionRpcServer
- type RoleDetails
- func (*RoleDetails) Descriptor() ([]byte, []int)deprecated
- func (x *RoleDetails) GetChildren() []*RoleDetails
- func (x *RoleDetails) GetCreatedAt() int64
- func (x *RoleDetails) GetId() int64
- func (x *RoleDetails) GetIsDefault() int64
- func (x *RoleDetails) GetIsDisable() int64
- func (x *RoleDetails) GetParentId() int64
- func (x *RoleDetails) GetRoleComment() string
- func (x *RoleDetails) GetRoleLabel() string
- func (x *RoleDetails) GetRoleName() string
- func (x *RoleDetails) GetUpdatedAt() int64
- func (*RoleDetails) ProtoMessage()
- func (x *RoleDetails) ProtoReflect() protoreflect.Message
- func (x *RoleDetails) Reset()
- func (x *RoleDetails) String() string
- type RoleNewReq
- func (*RoleNewReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleNewReq) GetId() int64
- func (x *RoleNewReq) GetIsDefault() int64
- func (x *RoleNewReq) GetIsDisable() int64
- func (x *RoleNewReq) GetParentId() int64
- func (x *RoleNewReq) GetRoleComment() string
- func (x *RoleNewReq) GetRoleLabel() string
- func (x *RoleNewReq) GetRoleName() string
- func (*RoleNewReq) ProtoMessage()
- func (x *RoleNewReq) ProtoReflect() protoreflect.Message
- func (x *RoleNewReq) Reset()
- func (x *RoleNewReq) String() string
- type RoleResourcesResp
- func (*RoleResourcesResp) Descriptor() ([]byte, []int)deprecated
- func (x *RoleResourcesResp) GetApiIds() []int64
- func (x *RoleResourcesResp) GetMenuIds() []int64
- func (x *RoleResourcesResp) GetRoleId() int64
- func (*RoleResourcesResp) ProtoMessage()
- func (x *RoleResourcesResp) ProtoReflect() protoreflect.Message
- func (x *RoleResourcesResp) Reset()
- func (x *RoleResourcesResp) String() string
- type SyncApiReq
- type SyncMenuReq
- type UnimplementedPermissionRpcServer
- func (UnimplementedPermissionRpcServer) AddApi(context.Context, *ApiNewReq) (*ApiDetails, error)
- func (UnimplementedPermissionRpcServer) AddMenu(context.Context, *MenuNewReq) (*MenuDetails, error)
- func (UnimplementedPermissionRpcServer) AddRole(context.Context, *RoleNewReq) (*RoleDetails, error)
- func (UnimplementedPermissionRpcServer) CleanApiList(context.Context, *EmptyReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) CleanMenuList(context.Context, *EmptyReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) DeleteApi(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) DeleteMenu(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) DeleteRole(context.Context, *IdsReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) FindApiList(context.Context, *FindApiListReq) (*FindApiListResp, error)
- func (UnimplementedPermissionRpcServer) FindMenuList(context.Context, *FindMenuListReq) (*FindMenuListResp, error)
- func (UnimplementedPermissionRpcServer) FindRoleList(context.Context, *FindRoleListReq) (*FindRoleListResp, error)
- func (UnimplementedPermissionRpcServer) FindRoleResources(context.Context, *IdReq) (*RoleResourcesResp, error)
- func (UnimplementedPermissionRpcServer) FindUserApis(context.Context, *UserIdReq) (*FindApiListResp, error)
- func (UnimplementedPermissionRpcServer) FindUserMenus(context.Context, *UserIdReq) (*FindMenuListResp, error)
- func (UnimplementedPermissionRpcServer) FindUserRoles(context.Context, *UserIdReq) (*FindRoleListResp, error)
- func (UnimplementedPermissionRpcServer) SyncApiList(context.Context, *SyncApiReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) SyncMenuList(context.Context, *SyncMenuReq) (*BatchResp, error)
- func (UnimplementedPermissionRpcServer) UpdateApi(context.Context, *ApiNewReq) (*ApiDetails, error)
- func (UnimplementedPermissionRpcServer) UpdateMenu(context.Context, *MenuNewReq) (*MenuDetails, error)
- func (UnimplementedPermissionRpcServer) UpdateRole(context.Context, *RoleNewReq) (*RoleDetails, error)
- func (UnimplementedPermissionRpcServer) UpdateRoleApis(context.Context, *UpdateRoleApisReq) (*EmptyResp, error)
- func (UnimplementedPermissionRpcServer) UpdateRoleMenus(context.Context, *UpdateRoleMenusReq) (*EmptyResp, error)
- func (UnimplementedPermissionRpcServer) UpdateUserRole(context.Context, *UpdateUserRoleReq) (*EmptyResp, error)
- type UnsafePermissionRpcServer
- type UpdateRoleApisReq
- func (*UpdateRoleApisReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleApisReq) GetApiIds() []int64
- func (x *UpdateRoleApisReq) GetRoleId() int64
- func (*UpdateRoleApisReq) ProtoMessage()
- func (x *UpdateRoleApisReq) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleApisReq) Reset()
- func (x *UpdateRoleApisReq) String() string
- type UpdateRoleMenusReq
- func (*UpdateRoleMenusReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleMenusReq) GetMenuIds() []int64
- func (x *UpdateRoleMenusReq) GetRoleId() int64
- func (*UpdateRoleMenusReq) ProtoMessage()
- func (x *UpdateRoleMenusReq) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleMenusReq) Reset()
- func (x *UpdateRoleMenusReq) String() string
- type UpdateUserRoleReq
- func (*UpdateUserRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRoleReq) GetRoleIds() []int64
- func (x *UpdateUserRoleReq) GetUserId() string
- func (*UpdateUserRoleReq) ProtoMessage()
- func (x *UpdateUserRoleReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRoleReq) Reset()
- func (x *UpdateUserRoleReq) String() string
- type UserIdReq
Constants ¶
const ( PermissionRpc_AddApi_FullMethodName = "/permissionrpc.PermissionRpc/AddApi" PermissionRpc_UpdateApi_FullMethodName = "/permissionrpc.PermissionRpc/UpdateApi" PermissionRpc_DeleteApi_FullMethodName = "/permissionrpc.PermissionRpc/DeleteApi" PermissionRpc_FindApiList_FullMethodName = "/permissionrpc.PermissionRpc/FindApiList" PermissionRpc_SyncApiList_FullMethodName = "/permissionrpc.PermissionRpc/SyncApiList" PermissionRpc_CleanApiList_FullMethodName = "/permissionrpc.PermissionRpc/CleanApiList" PermissionRpc_AddMenu_FullMethodName = "/permissionrpc.PermissionRpc/AddMenu" PermissionRpc_UpdateMenu_FullMethodName = "/permissionrpc.PermissionRpc/UpdateMenu" PermissionRpc_DeleteMenu_FullMethodName = "/permissionrpc.PermissionRpc/DeleteMenu" PermissionRpc_FindMenuList_FullMethodName = "/permissionrpc.PermissionRpc/FindMenuList" PermissionRpc_SyncMenuList_FullMethodName = "/permissionrpc.PermissionRpc/SyncMenuList" PermissionRpc_CleanMenuList_FullMethodName = "/permissionrpc.PermissionRpc/CleanMenuList" PermissionRpc_AddRole_FullMethodName = "/permissionrpc.PermissionRpc/AddRole" PermissionRpc_UpdateRole_FullMethodName = "/permissionrpc.PermissionRpc/UpdateRole" PermissionRpc_DeleteRole_FullMethodName = "/permissionrpc.PermissionRpc/DeleteRole" PermissionRpc_FindRoleList_FullMethodName = "/permissionrpc.PermissionRpc/FindRoleList" PermissionRpc_UpdateRoleMenus_FullMethodName = "/permissionrpc.PermissionRpc/UpdateRoleMenus" PermissionRpc_UpdateRoleApis_FullMethodName = "/permissionrpc.PermissionRpc/UpdateRoleApis" PermissionRpc_FindRoleResources_FullMethodName = "/permissionrpc.PermissionRpc/FindRoleResources" PermissionRpc_UpdateUserRole_FullMethodName = "/permissionrpc.PermissionRpc/UpdateUserRole" PermissionRpc_FindUserApis_FullMethodName = "/permissionrpc.PermissionRpc/FindUserApis" PermissionRpc_FindUserMenus_FullMethodName = "/permissionrpc.PermissionRpc/FindUserMenus" PermissionRpc_FindUserRoles_FullMethodName = "/permissionrpc.PermissionRpc/FindUserRoles" )
Variables ¶
var File_permission_proto protoreflect.FileDescriptor
var PermissionRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "permissionrpc.PermissionRpc", HandlerType: (*PermissionRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddApi", Handler: _PermissionRpc_AddApi_Handler, }, { MethodName: "UpdateApi", Handler: _PermissionRpc_UpdateApi_Handler, }, { MethodName: "DeleteApi", Handler: _PermissionRpc_DeleteApi_Handler, }, { MethodName: "FindApiList", Handler: _PermissionRpc_FindApiList_Handler, }, { MethodName: "SyncApiList", Handler: _PermissionRpc_SyncApiList_Handler, }, { MethodName: "CleanApiList", Handler: _PermissionRpc_CleanApiList_Handler, }, { MethodName: "AddMenu", Handler: _PermissionRpc_AddMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _PermissionRpc_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _PermissionRpc_DeleteMenu_Handler, }, { MethodName: "FindMenuList", Handler: _PermissionRpc_FindMenuList_Handler, }, { MethodName: "SyncMenuList", Handler: _PermissionRpc_SyncMenuList_Handler, }, { MethodName: "CleanMenuList", Handler: _PermissionRpc_CleanMenuList_Handler, }, { MethodName: "AddRole", Handler: _PermissionRpc_AddRole_Handler, }, { MethodName: "UpdateRole", Handler: _PermissionRpc_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _PermissionRpc_DeleteRole_Handler, }, { MethodName: "FindRoleList", Handler: _PermissionRpc_FindRoleList_Handler, }, { MethodName: "UpdateRoleMenus", Handler: _PermissionRpc_UpdateRoleMenus_Handler, }, { MethodName: "UpdateRoleApis", Handler: _PermissionRpc_UpdateRoleApis_Handler, }, { MethodName: "FindRoleResources", Handler: _PermissionRpc_FindRoleResources_Handler, }, { MethodName: "UpdateUserRole", Handler: _PermissionRpc_UpdateUserRole_Handler, }, { MethodName: "FindUserApis", Handler: _PermissionRpc_FindUserApis_Handler, }, { MethodName: "FindUserMenus", Handler: _PermissionRpc_FindUserMenus_Handler, }, { MethodName: "FindUserRoles", Handler: _PermissionRpc_FindUserRoles_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "permission.proto", }
PermissionRpc_ServiceDesc is the grpc.ServiceDesc for PermissionRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPermissionRpcServer ¶
func RegisterPermissionRpcServer(s grpc.ServiceRegistrar, srv PermissionRpcServer)
Types ¶
type ApiDetails ¶
type ApiDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 分组id Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // api路径 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // api名称 Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` // api请求方法 Traceable int64 `protobuf:"varint,6,opt,name=traceable,proto3" json:"traceable,omitempty"` // 是否追溯操作记录 0需要,1是 IsDisable int64 `protobuf:"varint,7,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 Children []*ApiDetails `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ApiDetails) Descriptor
deprecated
func (*ApiDetails) Descriptor() ([]byte, []int)
Deprecated: Use ApiDetails.ProtoReflect.Descriptor instead.
func (*ApiDetails) GetChildren ¶
func (x *ApiDetails) GetChildren() []*ApiDetails
func (*ApiDetails) GetCreatedAt ¶
func (x *ApiDetails) GetCreatedAt() int64
func (*ApiDetails) GetId ¶
func (x *ApiDetails) GetId() int64
func (*ApiDetails) GetIsDisable ¶
func (x *ApiDetails) GetIsDisable() int64
func (*ApiDetails) GetMethod ¶
func (x *ApiDetails) GetMethod() string
func (*ApiDetails) GetName ¶
func (x *ApiDetails) GetName() string
func (*ApiDetails) GetParentId ¶
func (x *ApiDetails) GetParentId() int64
func (*ApiDetails) GetPath ¶
func (x *ApiDetails) GetPath() string
func (*ApiDetails) GetTraceable ¶
func (x *ApiDetails) GetTraceable() int64
func (*ApiDetails) GetUpdatedAt ¶
func (x *ApiDetails) GetUpdatedAt() int64
func (*ApiDetails) ProtoMessage ¶
func (*ApiDetails) ProtoMessage()
func (*ApiDetails) ProtoReflect ¶
func (x *ApiDetails) ProtoReflect() protoreflect.Message
func (*ApiDetails) Reset ¶
func (x *ApiDetails) Reset()
func (*ApiDetails) String ¶
func (x *ApiDetails) String() string
type ApiNewReq ¶
type ApiNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 分组id Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // api路径 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // api名称 Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` // api请求方法 Traceable int64 `protobuf:"varint,6,opt,name=traceable,proto3" json:"traceable,omitempty"` // 是否追溯操作记录 0需要,1是 IsDisable int64 `protobuf:"varint,7,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 Children []*ApiNewReq `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
************* rbac 权限相关 *************
func (*ApiNewReq) Descriptor
deprecated
func (*ApiNewReq) GetChildren ¶
func (*ApiNewReq) GetIsDisable ¶
func (*ApiNewReq) GetParentId ¶
func (*ApiNewReq) GetTraceable ¶
func (*ApiNewReq) ProtoMessage ¶
func (*ApiNewReq) ProtoMessage()
func (*ApiNewReq) ProtoReflect ¶
func (x *ApiNewReq) ProtoReflect() protoreflect.Message
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type CountResp ¶
type CountResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountResp) Descriptor
deprecated
func (*CountResp) ProtoMessage ¶
func (*CountResp) ProtoMessage()
func (*CountResp) ProtoReflect ¶
func (x *CountResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type FindApiListReq ¶
type FindApiListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // api名称 Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // api路径 Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty"` // api请求方法 // contains filtered or unexported fields }
func (*FindApiListReq) Descriptor
deprecated
func (*FindApiListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindApiListReq.ProtoReflect.Descriptor instead.
func (*FindApiListReq) GetMethod ¶
func (x *FindApiListReq) GetMethod() string
func (*FindApiListReq) GetName ¶
func (x *FindApiListReq) GetName() string
func (*FindApiListReq) GetPage ¶
func (x *FindApiListReq) GetPage() int64
func (*FindApiListReq) GetPageSize ¶
func (x *FindApiListReq) GetPageSize() int64
func (*FindApiListReq) GetPath ¶
func (x *FindApiListReq) GetPath() string
func (*FindApiListReq) GetSorts ¶
func (x *FindApiListReq) GetSorts() []string
func (*FindApiListReq) ProtoMessage ¶
func (*FindApiListReq) ProtoMessage()
func (*FindApiListReq) ProtoReflect ¶
func (x *FindApiListReq) ProtoReflect() protoreflect.Message
func (*FindApiListReq) Reset ¶
func (x *FindApiListReq) Reset()
func (*FindApiListReq) String ¶
func (x *FindApiListReq) String() string
type FindApiListResp ¶
type FindApiListResp struct { List []*ApiDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindApiListResp) Descriptor
deprecated
func (*FindApiListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindApiListResp.ProtoReflect.Descriptor instead.
func (*FindApiListResp) GetList ¶
func (x *FindApiListResp) GetList() []*ApiDetails
func (*FindApiListResp) ProtoMessage ¶
func (*FindApiListResp) ProtoMessage()
func (*FindApiListResp) ProtoReflect ¶
func (x *FindApiListResp) ProtoReflect() protoreflect.Message
func (*FindApiListResp) Reset ¶
func (x *FindApiListResp) Reset()
func (*FindApiListResp) String ¶
func (x *FindApiListResp) String() string
type FindMenuListReq ¶
type FindMenuListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // 菜单标题 Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // 路由名字 // contains filtered or unexported fields }
func (*FindMenuListReq) Descriptor
deprecated
func (*FindMenuListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindMenuListReq.ProtoReflect.Descriptor instead.
func (*FindMenuListReq) GetName ¶
func (x *FindMenuListReq) GetName() string
func (*FindMenuListReq) GetPage ¶
func (x *FindMenuListReq) GetPage() int64
func (*FindMenuListReq) GetPageSize ¶
func (x *FindMenuListReq) GetPageSize() int64
func (*FindMenuListReq) GetSorts ¶
func (x *FindMenuListReq) GetSorts() []string
func (*FindMenuListReq) GetTitle ¶
func (x *FindMenuListReq) GetTitle() string
func (*FindMenuListReq) ProtoMessage ¶
func (*FindMenuListReq) ProtoMessage()
func (*FindMenuListReq) ProtoReflect ¶
func (x *FindMenuListReq) ProtoReflect() protoreflect.Message
func (*FindMenuListReq) Reset ¶
func (x *FindMenuListReq) Reset()
func (*FindMenuListReq) String ¶
func (x *FindMenuListReq) String() string
type FindMenuListResp ¶
type FindMenuListResp struct { List []*MenuDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindMenuListResp) Descriptor
deprecated
func (*FindMenuListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindMenuListResp.ProtoReflect.Descriptor instead.
func (*FindMenuListResp) GetList ¶
func (x *FindMenuListResp) GetList() []*MenuDetails
func (*FindMenuListResp) ProtoMessage ¶
func (*FindMenuListResp) ProtoMessage()
func (*FindMenuListResp) ProtoReflect ¶
func (x *FindMenuListResp) ProtoReflect() protoreflect.Message
func (*FindMenuListResp) Reset ¶
func (x *FindMenuListResp) Reset()
func (*FindMenuListResp) String ¶
func (x *FindMenuListResp) String() string
type FindRoleListReq ¶
type FindRoleListReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Sorts []string `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` // 排序 RoleName string `protobuf:"bytes,4,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // 角色名 RoleLabel string `protobuf:"bytes,5,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` // 角色标签 IsDisable int64 `protobuf:"varint,6,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 // contains filtered or unexported fields }
func (*FindRoleListReq) Descriptor
deprecated
func (*FindRoleListReq) Descriptor() ([]byte, []int)
Deprecated: Use FindRoleListReq.ProtoReflect.Descriptor instead.
func (*FindRoleListReq) GetIsDisable ¶
func (x *FindRoleListReq) GetIsDisable() int64
func (*FindRoleListReq) GetPage ¶
func (x *FindRoleListReq) GetPage() int64
func (*FindRoleListReq) GetPageSize ¶
func (x *FindRoleListReq) GetPageSize() int64
func (*FindRoleListReq) GetRoleLabel ¶
func (x *FindRoleListReq) GetRoleLabel() string
func (*FindRoleListReq) GetRoleName ¶
func (x *FindRoleListReq) GetRoleName() string
func (*FindRoleListReq) GetSorts ¶
func (x *FindRoleListReq) GetSorts() []string
func (*FindRoleListReq) ProtoMessage ¶
func (*FindRoleListReq) ProtoMessage()
func (*FindRoleListReq) ProtoReflect ¶
func (x *FindRoleListReq) ProtoReflect() protoreflect.Message
func (*FindRoleListReq) Reset ¶
func (x *FindRoleListReq) Reset()
func (*FindRoleListReq) String ¶
func (x *FindRoleListReq) String() string
type FindRoleListResp ¶
type FindRoleListResp struct { List []*RoleDetails `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*FindRoleListResp) Descriptor
deprecated
func (*FindRoleListResp) Descriptor() ([]byte, []int)
Deprecated: Use FindRoleListResp.ProtoReflect.Descriptor instead.
func (*FindRoleListResp) GetList ¶
func (x *FindRoleListResp) GetList() []*RoleDetails
func (*FindRoleListResp) GetTotal ¶
func (x *FindRoleListResp) GetTotal() int64
func (*FindRoleListResp) ProtoMessage ¶
func (*FindRoleListResp) ProtoMessage()
func (*FindRoleListResp) ProtoReflect ¶
func (x *FindRoleListResp) ProtoReflect() protoreflect.Message
func (*FindRoleListResp) Reset ¶
func (x *FindRoleListResp) Reset()
func (*FindRoleListResp) String ¶
func (x *FindRoleListResp) String() string
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type MenuDetails ¶
type MenuDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键 ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父id Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 路由路径 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 路由名称 Component string `protobuf:"bytes,5,opt,name=component,proto3" json:"component,omitempty"` // 路由组件 Redirect string `protobuf:"bytes,6,opt,name=redirect,proto3" json:"redirect,omitempty"` // 路由重定向 CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 Children []*MenuDetails `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"` Meta *MenuMeta `protobuf:"bytes,11,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*MenuDetails) Descriptor
deprecated
func (*MenuDetails) Descriptor() ([]byte, []int)
Deprecated: Use MenuDetails.ProtoReflect.Descriptor instead.
func (*MenuDetails) GetChildren ¶
func (x *MenuDetails) GetChildren() []*MenuDetails
func (*MenuDetails) GetComponent ¶
func (x *MenuDetails) GetComponent() string
func (*MenuDetails) GetCreatedAt ¶
func (x *MenuDetails) GetCreatedAt() int64
func (*MenuDetails) GetId ¶
func (x *MenuDetails) GetId() int64
func (*MenuDetails) GetMeta ¶
func (x *MenuDetails) GetMeta() *MenuMeta
func (*MenuDetails) GetName ¶
func (x *MenuDetails) GetName() string
func (*MenuDetails) GetParentId ¶
func (x *MenuDetails) GetParentId() int64
func (*MenuDetails) GetPath ¶
func (x *MenuDetails) GetPath() string
func (*MenuDetails) GetRedirect ¶
func (x *MenuDetails) GetRedirect() string
func (*MenuDetails) GetUpdatedAt ¶
func (x *MenuDetails) GetUpdatedAt() int64
func (*MenuDetails) ProtoMessage ¶
func (*MenuDetails) ProtoMessage()
func (*MenuDetails) ProtoReflect ¶
func (x *MenuDetails) ProtoReflect() protoreflect.Message
func (*MenuDetails) Reset ¶
func (x *MenuDetails) Reset()
func (*MenuDetails) String ¶
func (x *MenuDetails) String() string
type MenuMeta ¶
type MenuMeta struct { Type int64 `protobuf:"varint,11,opt,name=type,proto3" json:"type,omitempty"` // 菜单类型(0代表目录、1代表菜单、2代表按钮、3代表外链) Title string `protobuf:"bytes,12,opt,name=title,proto3" json:"title,omitempty"` // 菜单标题 Icon string `protobuf:"bytes,13,opt,name=icon,proto3" json:"icon,omitempty"` // 菜单标题 Rank int64 `protobuf:"varint,14,opt,name=rank,proto3" json:"rank,omitempty"` // 菜单排序 Perm string `protobuf:"bytes,15,opt,name=perm,proto3" json:"perm,omitempty"` // 权限标识 Params string `protobuf:"bytes,16,opt,name=params,proto3" json:"params,omitempty"` // 路由参数(json) KeepAlive int64 `protobuf:"varint,17,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"` // 是否缓存 AlwaysShow int64 `protobuf:"varint,18,opt,name=always_show,json=alwaysShow,proto3" json:"always_show,omitempty"` // 是否一直显示菜单 IsHidden int64 `protobuf:"varint,19,opt,name=is_hidden,json=isHidden,proto3" json:"is_hidden,omitempty"` // 是否隐藏 IsDisable int64 `protobuf:"varint,20,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 // contains filtered or unexported fields }
func (*MenuMeta) Descriptor
deprecated
func (*MenuMeta) GetAlwaysShow ¶
func (*MenuMeta) GetIsDisable ¶
func (*MenuMeta) GetIsHidden ¶
func (*MenuMeta) GetKeepAlive ¶
func (*MenuMeta) ProtoMessage ¶
func (*MenuMeta) ProtoMessage()
func (*MenuMeta) ProtoReflect ¶
func (x *MenuMeta) ProtoReflect() protoreflect.Message
type MenuNewReq ¶
type MenuNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键 ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父id Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 路由路径 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 路由名称 Component string `protobuf:"bytes,5,opt,name=component,proto3" json:"component,omitempty"` // 路由组件 Redirect string `protobuf:"bytes,6,opt,name=redirect,proto3" json:"redirect,omitempty"` // 路由重定向 Children []*MenuNewReq `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"` Meta *MenuMeta `protobuf:"bytes,11,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*MenuNewReq) Descriptor
deprecated
func (*MenuNewReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuNewReq.ProtoReflect.Descriptor instead.
func (*MenuNewReq) GetChildren ¶
func (x *MenuNewReq) GetChildren() []*MenuNewReq
func (*MenuNewReq) GetComponent ¶
func (x *MenuNewReq) GetComponent() string
func (*MenuNewReq) GetId ¶
func (x *MenuNewReq) GetId() int64
func (*MenuNewReq) GetMeta ¶
func (x *MenuNewReq) GetMeta() *MenuMeta
func (*MenuNewReq) GetName ¶
func (x *MenuNewReq) GetName() string
func (*MenuNewReq) GetParentId ¶
func (x *MenuNewReq) GetParentId() int64
func (*MenuNewReq) GetPath ¶
func (x *MenuNewReq) GetPath() string
func (*MenuNewReq) GetRedirect ¶
func (x *MenuNewReq) GetRedirect() string
func (*MenuNewReq) ProtoMessage ¶
func (*MenuNewReq) ProtoMessage()
func (*MenuNewReq) ProtoReflect ¶
func (x *MenuNewReq) ProtoReflect() protoreflect.Message
func (*MenuNewReq) Reset ¶
func (x *MenuNewReq) Reset()
func (*MenuNewReq) String ¶
func (x *MenuNewReq) String() string
type PermissionRpcClient ¶
type PermissionRpcClient interface { // 创建接口 AddApi(ctx context.Context, in *ApiNewReq, opts ...grpc.CallOption) (*ApiDetails, error) // 更新接口 UpdateApi(ctx context.Context, in *ApiNewReq, opts ...grpc.CallOption) (*ApiDetails, error) // 删除接口 DeleteApi(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询接口列表 FindApiList(ctx context.Context, in *FindApiListReq, opts ...grpc.CallOption) (*FindApiListResp, error) // 同步接口列表 SyncApiList(ctx context.Context, in *SyncApiReq, opts ...grpc.CallOption) (*BatchResp, error) // 清空接口列表 CleanApiList(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*BatchResp, error) // 创建菜单 AddMenu(ctx context.Context, in *MenuNewReq, opts ...grpc.CallOption) (*MenuDetails, error) // 更新菜单 UpdateMenu(ctx context.Context, in *MenuNewReq, opts ...grpc.CallOption) (*MenuDetails, error) // 删除菜单 DeleteMenu(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询菜单列表 FindMenuList(ctx context.Context, in *FindMenuListReq, opts ...grpc.CallOption) (*FindMenuListResp, error) // 同步菜单列表 SyncMenuList(ctx context.Context, in *SyncMenuReq, opts ...grpc.CallOption) (*BatchResp, error) // 清空菜单列表 CleanMenuList(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*BatchResp, error) // 创建角色 AddRole(ctx context.Context, in *RoleNewReq, opts ...grpc.CallOption) (*RoleDetails, error) // 更新角色 UpdateRole(ctx context.Context, in *RoleNewReq, opts ...grpc.CallOption) (*RoleDetails, error) // 删除角色 DeleteRole(ctx context.Context, in *IdsReq, opts ...grpc.CallOption) (*BatchResp, error) // 查询角色列表 FindRoleList(ctx context.Context, in *FindRoleListReq, opts ...grpc.CallOption) (*FindRoleListResp, error) // 更新角色菜单 UpdateRoleMenus(ctx context.Context, in *UpdateRoleMenusReq, opts ...grpc.CallOption) (*EmptyResp, error) // 更新角色资源 UpdateRoleApis(ctx context.Context, in *UpdateRoleApisReq, opts ...grpc.CallOption) (*EmptyResp, error) // 查询角色资源权限 FindRoleResources(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*RoleResourcesResp, error) // 修改用户角色 UpdateUserRole(ctx context.Context, in *UpdateUserRoleReq, opts ...grpc.CallOption) (*EmptyResp, error) // 获取用户接口权限 FindUserApis(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindApiListResp, error) // 获取用户菜单权限 FindUserMenus(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindMenuListResp, error) // 获取用户角色信息 FindUserRoles(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*FindRoleListResp, error) }
PermissionRpcClient is the client API for PermissionRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPermissionRpcClient ¶
func NewPermissionRpcClient(cc grpc.ClientConnInterface) PermissionRpcClient
type PermissionRpcServer ¶
type PermissionRpcServer interface { // 创建接口 AddApi(context.Context, *ApiNewReq) (*ApiDetails, error) // 更新接口 UpdateApi(context.Context, *ApiNewReq) (*ApiDetails, error) // 删除接口 DeleteApi(context.Context, *IdsReq) (*BatchResp, error) // 查询接口列表 FindApiList(context.Context, *FindApiListReq) (*FindApiListResp, error) // 同步接口列表 SyncApiList(context.Context, *SyncApiReq) (*BatchResp, error) // 清空接口列表 CleanApiList(context.Context, *EmptyReq) (*BatchResp, error) // 创建菜单 AddMenu(context.Context, *MenuNewReq) (*MenuDetails, error) // 更新菜单 UpdateMenu(context.Context, *MenuNewReq) (*MenuDetails, error) // 删除菜单 DeleteMenu(context.Context, *IdsReq) (*BatchResp, error) // 查询菜单列表 FindMenuList(context.Context, *FindMenuListReq) (*FindMenuListResp, error) // 同步菜单列表 SyncMenuList(context.Context, *SyncMenuReq) (*BatchResp, error) // 清空菜单列表 CleanMenuList(context.Context, *EmptyReq) (*BatchResp, error) // 创建角色 AddRole(context.Context, *RoleNewReq) (*RoleDetails, error) // 更新角色 UpdateRole(context.Context, *RoleNewReq) (*RoleDetails, error) // 删除角色 DeleteRole(context.Context, *IdsReq) (*BatchResp, error) // 查询角色列表 FindRoleList(context.Context, *FindRoleListReq) (*FindRoleListResp, error) // 更新角色菜单 UpdateRoleMenus(context.Context, *UpdateRoleMenusReq) (*EmptyResp, error) // 更新角色资源 UpdateRoleApis(context.Context, *UpdateRoleApisReq) (*EmptyResp, error) // 查询角色资源权限 FindRoleResources(context.Context, *IdReq) (*RoleResourcesResp, error) // 修改用户角色 UpdateUserRole(context.Context, *UpdateUserRoleReq) (*EmptyResp, error) // 获取用户接口权限 FindUserApis(context.Context, *UserIdReq) (*FindApiListResp, error) // 获取用户菜单权限 FindUserMenus(context.Context, *UserIdReq) (*FindMenuListResp, error) // 获取用户角色信息 FindUserRoles(context.Context, *UserIdReq) (*FindRoleListResp, error) // contains filtered or unexported methods }
PermissionRpcServer is the server API for PermissionRpc service. All implementations must embed UnimplementedPermissionRpcServer for forward compatibility
type RoleDetails ¶
type RoleDetails struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父角色id RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // 角色名 RoleLabel string `protobuf:"bytes,4,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` // 角色标签 RoleComment string `protobuf:"bytes,5,opt,name=role_comment,json=roleComment,proto3" json:"role_comment,omitempty"` // 角色备注 IsDisable int64 `protobuf:"varint,6,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 IsDefault int64 `protobuf:"varint,7,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // 是否默认角色 0否 1是 CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间 UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 更新时间 Children []*RoleDetails `protobuf:"bytes,10,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*RoleDetails) Descriptor
deprecated
func (*RoleDetails) Descriptor() ([]byte, []int)
Deprecated: Use RoleDetails.ProtoReflect.Descriptor instead.
func (*RoleDetails) GetChildren ¶
func (x *RoleDetails) GetChildren() []*RoleDetails
func (*RoleDetails) GetCreatedAt ¶
func (x *RoleDetails) GetCreatedAt() int64
func (*RoleDetails) GetId ¶
func (x *RoleDetails) GetId() int64
func (*RoleDetails) GetIsDefault ¶
func (x *RoleDetails) GetIsDefault() int64
func (*RoleDetails) GetIsDisable ¶
func (x *RoleDetails) GetIsDisable() int64
func (*RoleDetails) GetParentId ¶
func (x *RoleDetails) GetParentId() int64
func (*RoleDetails) GetRoleComment ¶
func (x *RoleDetails) GetRoleComment() string
func (*RoleDetails) GetRoleLabel ¶
func (x *RoleDetails) GetRoleLabel() string
func (*RoleDetails) GetRoleName ¶
func (x *RoleDetails) GetRoleName() string
func (*RoleDetails) GetUpdatedAt ¶
func (x *RoleDetails) GetUpdatedAt() int64
func (*RoleDetails) ProtoMessage ¶
func (*RoleDetails) ProtoMessage()
func (*RoleDetails) ProtoReflect ¶
func (x *RoleDetails) ProtoReflect() protoreflect.Message
func (*RoleDetails) Reset ¶
func (x *RoleDetails) Reset()
func (*RoleDetails) String ¶
func (x *RoleDetails) String() string
type RoleNewReq ¶
type RoleNewReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 主键id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 父角色id RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // 角色名 RoleLabel string `protobuf:"bytes,4,opt,name=role_label,json=roleLabel,proto3" json:"role_label,omitempty"` // 角色标签 RoleComment string `protobuf:"bytes,5,opt,name=role_comment,json=roleComment,proto3" json:"role_comment,omitempty"` // 角色备注 IsDisable int64 `protobuf:"varint,6,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"` // 是否禁用 0否 1是 IsDefault int64 `protobuf:"varint,7,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // 是否默认角色 0否 1是 // contains filtered or unexported fields }
func (*RoleNewReq) Descriptor
deprecated
func (*RoleNewReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleNewReq.ProtoReflect.Descriptor instead.
func (*RoleNewReq) GetId ¶
func (x *RoleNewReq) GetId() int64
func (*RoleNewReq) GetIsDefault ¶
func (x *RoleNewReq) GetIsDefault() int64
func (*RoleNewReq) GetIsDisable ¶
func (x *RoleNewReq) GetIsDisable() int64
func (*RoleNewReq) GetParentId ¶
func (x *RoleNewReq) GetParentId() int64
func (*RoleNewReq) GetRoleComment ¶
func (x *RoleNewReq) GetRoleComment() string
func (*RoleNewReq) GetRoleLabel ¶
func (x *RoleNewReq) GetRoleLabel() string
func (*RoleNewReq) GetRoleName ¶
func (x *RoleNewReq) GetRoleName() string
func (*RoleNewReq) ProtoMessage ¶
func (*RoleNewReq) ProtoMessage()
func (*RoleNewReq) ProtoReflect ¶
func (x *RoleNewReq) ProtoReflect() protoreflect.Message
func (*RoleNewReq) Reset ¶
func (x *RoleNewReq) Reset()
func (*RoleNewReq) String ¶
func (x *RoleNewReq) String() string
type RoleResourcesResp ¶
type RoleResourcesResp struct { RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` ApiIds []int64 `protobuf:"varint,2,rep,packed,name=api_ids,json=apiIds,proto3" json:"api_ids,omitempty"` MenuIds []int64 `protobuf:"varint,3,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"` // contains filtered or unexported fields }
func (*RoleResourcesResp) Descriptor
deprecated
func (*RoleResourcesResp) Descriptor() ([]byte, []int)
Deprecated: Use RoleResourcesResp.ProtoReflect.Descriptor instead.
func (*RoleResourcesResp) GetApiIds ¶
func (x *RoleResourcesResp) GetApiIds() []int64
func (*RoleResourcesResp) GetMenuIds ¶
func (x *RoleResourcesResp) GetMenuIds() []int64
func (*RoleResourcesResp) GetRoleId ¶
func (x *RoleResourcesResp) GetRoleId() int64
func (*RoleResourcesResp) ProtoMessage ¶
func (*RoleResourcesResp) ProtoMessage()
func (*RoleResourcesResp) ProtoReflect ¶
func (x *RoleResourcesResp) ProtoReflect() protoreflect.Message
func (*RoleResourcesResp) Reset ¶
func (x *RoleResourcesResp) Reset()
func (*RoleResourcesResp) String ¶
func (x *RoleResourcesResp) String() string
type SyncApiReq ¶
type SyncApiReq struct { Apis []*ApiNewReq `protobuf:"bytes,1,rep,name=apis,proto3" json:"apis,omitempty"` // contains filtered or unexported fields }
func (*SyncApiReq) Descriptor
deprecated
func (*SyncApiReq) Descriptor() ([]byte, []int)
Deprecated: Use SyncApiReq.ProtoReflect.Descriptor instead.
func (*SyncApiReq) GetApis ¶
func (x *SyncApiReq) GetApis() []*ApiNewReq
func (*SyncApiReq) ProtoMessage ¶
func (*SyncApiReq) ProtoMessage()
func (*SyncApiReq) ProtoReflect ¶
func (x *SyncApiReq) ProtoReflect() protoreflect.Message
func (*SyncApiReq) Reset ¶
func (x *SyncApiReq) Reset()
func (*SyncApiReq) String ¶
func (x *SyncApiReq) String() string
type SyncMenuReq ¶
type SyncMenuReq struct { Menus []*MenuNewReq `protobuf:"bytes,1,rep,name=menus,proto3" json:"menus,omitempty"` // contains filtered or unexported fields }
func (*SyncMenuReq) Descriptor
deprecated
func (*SyncMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use SyncMenuReq.ProtoReflect.Descriptor instead.
func (*SyncMenuReq) GetMenus ¶
func (x *SyncMenuReq) GetMenus() []*MenuNewReq
func (*SyncMenuReq) ProtoMessage ¶
func (*SyncMenuReq) ProtoMessage()
func (*SyncMenuReq) ProtoReflect ¶
func (x *SyncMenuReq) ProtoReflect() protoreflect.Message
func (*SyncMenuReq) Reset ¶
func (x *SyncMenuReq) Reset()
func (*SyncMenuReq) String ¶
func (x *SyncMenuReq) String() string
type UnimplementedPermissionRpcServer ¶
type UnimplementedPermissionRpcServer struct { }
UnimplementedPermissionRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedPermissionRpcServer) AddApi ¶
func (UnimplementedPermissionRpcServer) AddApi(context.Context, *ApiNewReq) (*ApiDetails, error)
func (UnimplementedPermissionRpcServer) AddMenu ¶
func (UnimplementedPermissionRpcServer) AddMenu(context.Context, *MenuNewReq) (*MenuDetails, error)
func (UnimplementedPermissionRpcServer) AddRole ¶
func (UnimplementedPermissionRpcServer) AddRole(context.Context, *RoleNewReq) (*RoleDetails, error)
func (UnimplementedPermissionRpcServer) CleanApiList ¶
func (UnimplementedPermissionRpcServer) CleanMenuList ¶
func (UnimplementedPermissionRpcServer) DeleteMenu ¶
func (UnimplementedPermissionRpcServer) DeleteRole ¶
func (UnimplementedPermissionRpcServer) FindApiList ¶
func (UnimplementedPermissionRpcServer) FindApiList(context.Context, *FindApiListReq) (*FindApiListResp, error)
func (UnimplementedPermissionRpcServer) FindMenuList ¶
func (UnimplementedPermissionRpcServer) FindMenuList(context.Context, *FindMenuListReq) (*FindMenuListResp, error)
func (UnimplementedPermissionRpcServer) FindRoleList ¶
func (UnimplementedPermissionRpcServer) FindRoleList(context.Context, *FindRoleListReq) (*FindRoleListResp, error)
func (UnimplementedPermissionRpcServer) FindRoleResources ¶
func (UnimplementedPermissionRpcServer) FindRoleResources(context.Context, *IdReq) (*RoleResourcesResp, error)
func (UnimplementedPermissionRpcServer) FindUserApis ¶
func (UnimplementedPermissionRpcServer) FindUserApis(context.Context, *UserIdReq) (*FindApiListResp, error)
func (UnimplementedPermissionRpcServer) FindUserMenus ¶
func (UnimplementedPermissionRpcServer) FindUserMenus(context.Context, *UserIdReq) (*FindMenuListResp, error)
func (UnimplementedPermissionRpcServer) FindUserRoles ¶
func (UnimplementedPermissionRpcServer) FindUserRoles(context.Context, *UserIdReq) (*FindRoleListResp, error)
func (UnimplementedPermissionRpcServer) SyncApiList ¶
func (UnimplementedPermissionRpcServer) SyncApiList(context.Context, *SyncApiReq) (*BatchResp, error)
func (UnimplementedPermissionRpcServer) SyncMenuList ¶
func (UnimplementedPermissionRpcServer) SyncMenuList(context.Context, *SyncMenuReq) (*BatchResp, error)
func (UnimplementedPermissionRpcServer) UpdateApi ¶
func (UnimplementedPermissionRpcServer) UpdateApi(context.Context, *ApiNewReq) (*ApiDetails, error)
func (UnimplementedPermissionRpcServer) UpdateMenu ¶
func (UnimplementedPermissionRpcServer) UpdateMenu(context.Context, *MenuNewReq) (*MenuDetails, error)
func (UnimplementedPermissionRpcServer) UpdateRole ¶
func (UnimplementedPermissionRpcServer) UpdateRole(context.Context, *RoleNewReq) (*RoleDetails, error)
func (UnimplementedPermissionRpcServer) UpdateRoleApis ¶
func (UnimplementedPermissionRpcServer) UpdateRoleApis(context.Context, *UpdateRoleApisReq) (*EmptyResp, error)
func (UnimplementedPermissionRpcServer) UpdateRoleMenus ¶
func (UnimplementedPermissionRpcServer) UpdateRoleMenus(context.Context, *UpdateRoleMenusReq) (*EmptyResp, error)
func (UnimplementedPermissionRpcServer) UpdateUserRole ¶
func (UnimplementedPermissionRpcServer) UpdateUserRole(context.Context, *UpdateUserRoleReq) (*EmptyResp, error)
type UnsafePermissionRpcServer ¶
type UnsafePermissionRpcServer interface {
// contains filtered or unexported methods
}
UnsafePermissionRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PermissionRpcServer will result in compilation errors.
type UpdateRoleApisReq ¶
type UpdateRoleApisReq struct { RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` ApiIds []int64 `protobuf:"varint,2,rep,packed,name=api_ids,json=apiIds,proto3" json:"api_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleApisReq) Descriptor
deprecated
func (*UpdateRoleApisReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleApisReq.ProtoReflect.Descriptor instead.
func (*UpdateRoleApisReq) GetApiIds ¶
func (x *UpdateRoleApisReq) GetApiIds() []int64
func (*UpdateRoleApisReq) GetRoleId ¶
func (x *UpdateRoleApisReq) GetRoleId() int64
func (*UpdateRoleApisReq) ProtoMessage ¶
func (*UpdateRoleApisReq) ProtoMessage()
func (*UpdateRoleApisReq) ProtoReflect ¶
func (x *UpdateRoleApisReq) ProtoReflect() protoreflect.Message
func (*UpdateRoleApisReq) Reset ¶
func (x *UpdateRoleApisReq) Reset()
func (*UpdateRoleApisReq) String ¶
func (x *UpdateRoleApisReq) String() string
type UpdateRoleMenusReq ¶
type UpdateRoleMenusReq struct { RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` MenuIds []int64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleMenusReq) Descriptor
deprecated
func (*UpdateRoleMenusReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleMenusReq.ProtoReflect.Descriptor instead.
func (*UpdateRoleMenusReq) GetMenuIds ¶
func (x *UpdateRoleMenusReq) GetMenuIds() []int64
func (*UpdateRoleMenusReq) GetRoleId ¶
func (x *UpdateRoleMenusReq) GetRoleId() int64
func (*UpdateRoleMenusReq) ProtoMessage ¶
func (*UpdateRoleMenusReq) ProtoMessage()
func (*UpdateRoleMenusReq) ProtoReflect ¶
func (x *UpdateRoleMenusReq) ProtoReflect() protoreflect.Message
func (*UpdateRoleMenusReq) Reset ¶
func (x *UpdateRoleMenusReq) Reset()
func (*UpdateRoleMenusReq) String ¶
func (x *UpdateRoleMenusReq) String() string
type UpdateUserRoleReq ¶
type UpdateUserRoleReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id RoleIds []int64 `protobuf:"varint,2,rep,packed,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRoleReq) Descriptor
deprecated
func (*UpdateUserRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRoleReq.ProtoReflect.Descriptor instead.
func (*UpdateUserRoleReq) GetRoleIds ¶
func (x *UpdateUserRoleReq) GetRoleIds() []int64
func (*UpdateUserRoleReq) GetUserId ¶
func (x *UpdateUserRoleReq) GetUserId() string
func (*UpdateUserRoleReq) ProtoMessage ¶
func (*UpdateUserRoleReq) ProtoMessage()
func (*UpdateUserRoleReq) ProtoReflect ¶
func (x *UpdateUserRoleReq) ProtoReflect() protoreflect.Message
func (*UpdateUserRoleReq) Reset ¶
func (x *UpdateUserRoleReq) Reset()
func (*UpdateUserRoleReq) String ¶
func (x *UpdateUserRoleReq) String() string
type UserIdReq ¶
type UserIdReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message