permissionrpc

package
v0.0.0-...-6d7266f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiDetails

type ApiDetails = permissionrpc.ApiDetails

type ApiNewReq

type ApiNewReq = permissionrpc.ApiNewReq

type BatchResp

type BatchResp = permissionrpc.BatchResp

type CountResp

type CountResp = permissionrpc.CountResp

type EmptyReq

type EmptyReq = permissionrpc.EmptyReq

type EmptyResp

type EmptyResp = permissionrpc.EmptyResp

type FindApiListReq

type FindApiListReq = permissionrpc.FindApiListReq

type FindApiListResp

type FindApiListResp = permissionrpc.FindApiListResp

type FindMenuListReq

type FindMenuListReq = permissionrpc.FindMenuListReq

type FindMenuListResp

type FindMenuListResp = permissionrpc.FindMenuListResp

type FindRoleListReq

type FindRoleListReq = permissionrpc.FindRoleListReq

type FindRoleListResp

type FindRoleListResp = permissionrpc.FindRoleListResp

type IdReq

type IdReq = permissionrpc.IdReq

type IdsReq

type IdsReq = permissionrpc.IdsReq
type MenuDetails = permissionrpc.MenuDetails
type MenuMeta = permissionrpc.MenuMeta
type MenuNewReq = permissionrpc.MenuNewReq

type PermissionRpc

type PermissionRpc 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)
}

func NewPermissionRpc

func NewPermissionRpc(cli zrpc.Client) PermissionRpc

type RoleDetails

type RoleDetails = permissionrpc.RoleDetails

type RoleNewReq

type RoleNewReq = permissionrpc.RoleNewReq

type RoleResourcesResp

type RoleResourcesResp = permissionrpc.RoleResourcesResp

type SyncApiReq

type SyncApiReq = permissionrpc.SyncApiReq

type SyncMenuReq

type SyncMenuReq = permissionrpc.SyncMenuReq

type UpdateRoleApisReq

type UpdateRoleApisReq = permissionrpc.UpdateRoleApisReq

type UpdateRoleMenusReq

type UpdateRoleMenusReq = permissionrpc.UpdateRoleMenusReq

type UpdateUserRoleReq

type UpdateUserRoleReq = permissionrpc.UpdateUserRoleReq

type UserIdReq

type UserIdReq = permissionrpc.UserIdReq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL