auth

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationService_CheckAuthorization_FullMethodName = "/auth.v1.AuthorizationService/CheckAuthorization"
	AuthorizationService_GetRoleAll_FullMethodName         = "/auth.v1.AuthorizationService/GetRoleAll"
	AuthorizationService_CreateRole_FullMethodName         = "/auth.v1.AuthorizationService/CreateRole"
	AuthorizationService_UpdateRole_FullMethodName         = "/auth.v1.AuthorizationService/UpdateRole"
	AuthorizationService_DeleteRole_FullMethodName         = "/auth.v1.AuthorizationService/DeleteRole"
	AuthorizationService_GetRolesForUser_FullMethodName    = "/auth.v1.AuthorizationService/GetRolesForUser"
	AuthorizationService_GetUsersForRole_FullMethodName    = "/auth.v1.AuthorizationService/GetUsersForRole"
	AuthorizationService_SetRolesForUser_FullMethodName    = "/auth.v1.AuthorizationService/SetRolesForUser"
	AuthorizationService_DeleteRoleForUser_FullMethodName  = "/auth.v1.AuthorizationService/DeleteRoleForUser"
	AuthorizationService_DeleteRolesForUser_FullMethodName = "/auth.v1.AuthorizationService/DeleteRolesForUser"
	AuthorizationService_GetPolicies_FullMethodName        = "/auth.v1.AuthorizationService/GetPolicies"
	AuthorizationService_UpdatePolicies_FullMethodName     = "/auth.v1.AuthorizationService/UpdatePolicies"
	AuthorizationService_GetApiListAll_FullMethodName      = "/auth.v1.AuthorizationService/GetApiListAll"
	AuthorizationService_GetApiList_FullMethodName         = "/auth.v1.AuthorizationService/GetApiList"
	AuthorizationService_CreateApi_FullMethodName          = "/auth.v1.AuthorizationService/CreateApi"
	AuthorizationService_UpdateApi_FullMethodName          = "/auth.v1.AuthorizationService/UpdateApi"
	AuthorizationService_DeleteApi_FullMethodName          = "/auth.v1.AuthorizationService/DeleteApi"
	AuthorizationService_GetMenuAll_FullMethodName         = "/auth.v1.AuthorizationService/GetMenuAll"
	AuthorizationService_GetMenuTree_FullMethodName        = "/auth.v1.AuthorizationService/GetMenuTree"
	AuthorizationService_CreateMenu_FullMethodName         = "/auth.v1.AuthorizationService/CreateMenu"
	AuthorizationService_UpdateMenu_FullMethodName         = "/auth.v1.AuthorizationService/UpdateMenu"
	AuthorizationService_DeleteMenu_FullMethodName         = "/auth.v1.AuthorizationService/DeleteMenu"
	AuthorizationService_GetRoleMenuTree_FullMethodName    = "/auth.v1.AuthorizationService/GetRoleMenuTree"
	AuthorizationService_GetRoleMenu_FullMethodName        = "/auth.v1.AuthorizationService/GetRoleMenu"
	AuthorizationService_SaveRoleMenu_FullMethodName       = "/auth.v1.AuthorizationService/SaveRoleMenu"
	AuthorizationService_GetRoleMenuBtn_FullMethodName     = "/auth.v1.AuthorizationService/GetRoleMenuBtn"
	AuthorizationService_SaveRoleMenuBtn_FullMethodName    = "/auth.v1.AuthorizationService/SaveRoleMenuBtn"
)
View Source
const OperationAuthorizationServiceCheckAuthorization = "/auth.v1.AuthorizationService/CheckAuthorization"
View Source
const OperationAuthorizationServiceCreateApi = "/auth.v1.AuthorizationService/CreateApi"
View Source
const OperationAuthorizationServiceCreateMenu = "/auth.v1.AuthorizationService/CreateMenu"
View Source
const OperationAuthorizationServiceCreateRole = "/auth.v1.AuthorizationService/CreateRole"
View Source
const OperationAuthorizationServiceDeleteApi = "/auth.v1.AuthorizationService/DeleteApi"
View Source
const OperationAuthorizationServiceDeleteMenu = "/auth.v1.AuthorizationService/DeleteMenu"
View Source
const OperationAuthorizationServiceDeleteRole = "/auth.v1.AuthorizationService/DeleteRole"
View Source
const OperationAuthorizationServiceDeleteRoleForUser = "/auth.v1.AuthorizationService/DeleteRoleForUser"
View Source
const OperationAuthorizationServiceDeleteRolesForUser = "/auth.v1.AuthorizationService/DeleteRolesForUser"
View Source
const OperationAuthorizationServiceGetApiList = "/auth.v1.AuthorizationService/GetApiList"
View Source
const OperationAuthorizationServiceGetApiListAll = "/auth.v1.AuthorizationService/GetApiListAll"
View Source
const OperationAuthorizationServiceGetMenuAll = "/auth.v1.AuthorizationService/GetMenuAll"
View Source
const OperationAuthorizationServiceGetMenuTree = "/auth.v1.AuthorizationService/GetMenuTree"
View Source
const OperationAuthorizationServiceGetPolicies = "/auth.v1.AuthorizationService/GetPolicies"
View Source
const OperationAuthorizationServiceGetRoleAll = "/auth.v1.AuthorizationService/GetRoleAll"
View Source
const OperationAuthorizationServiceGetRoleMenu = "/auth.v1.AuthorizationService/GetRoleMenu"
View Source
const OperationAuthorizationServiceGetRoleMenuBtn = "/auth.v1.AuthorizationService/GetRoleMenuBtn"
View Source
const OperationAuthorizationServiceGetRoleMenuTree = "/auth.v1.AuthorizationService/GetRoleMenuTree"
View Source
const OperationAuthorizationServiceGetRolesForUser = "/auth.v1.AuthorizationService/GetRolesForUser"
View Source
const OperationAuthorizationServiceGetUsersForRole = "/auth.v1.AuthorizationService/GetUsersForRole"
View Source
const OperationAuthorizationServiceSaveRoleMenu = "/auth.v1.AuthorizationService/SaveRoleMenu"
View Source
const OperationAuthorizationServiceSaveRoleMenuBtn = "/auth.v1.AuthorizationService/SaveRoleMenuBtn"
View Source
const OperationAuthorizationServiceSetRolesForUser = "/auth.v1.AuthorizationService/SetRolesForUser"
View Source
const OperationAuthorizationServiceUpdateApi = "/auth.v1.AuthorizationService/UpdateApi"
View Source
const OperationAuthorizationServiceUpdateMenu = "/auth.v1.AuthorizationService/UpdateMenu"
View Source
const OperationAuthorizationServiceUpdatePolicies = "/auth.v1.AuthorizationService/UpdatePolicies"
View Source
const OperationAuthorizationServiceUpdateRole = "/auth.v1.AuthorizationService/UpdateRole"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "RECORD_NOT_FOUND",
		1: "RECORD_ALREADY_EXISTS",
		2: "BAD_REQUEST",
		3: "SYSTEM_ERROR",
	}
	ErrorReason_value = map[string]int32{
		"RECORD_NOT_FOUND":      0,
		"RECORD_ALREADY_EXISTS": 1,
		"BAD_REQUEST":           2,
		"SYSTEM_ERROR":          3,
	}
)

Enum value maps for ErrorReason.

View Source
var AuthorizationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.v1.AuthorizationService",
	HandlerType: (*AuthorizationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckAuthorization",
			Handler:    _AuthorizationService_CheckAuthorization_Handler,
		},
		{
			MethodName: "GetRoleAll",
			Handler:    _AuthorizationService_GetRoleAll_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _AuthorizationService_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _AuthorizationService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _AuthorizationService_DeleteRole_Handler,
		},
		{
			MethodName: "GetRolesForUser",
			Handler:    _AuthorizationService_GetRolesForUser_Handler,
		},
		{
			MethodName: "GetUsersForRole",
			Handler:    _AuthorizationService_GetUsersForRole_Handler,
		},
		{
			MethodName: "SetRolesForUser",
			Handler:    _AuthorizationService_SetRolesForUser_Handler,
		},
		{
			MethodName: "DeleteRoleForUser",
			Handler:    _AuthorizationService_DeleteRoleForUser_Handler,
		},
		{
			MethodName: "DeleteRolesForUser",
			Handler:    _AuthorizationService_DeleteRolesForUser_Handler,
		},
		{
			MethodName: "GetPolicies",
			Handler:    _AuthorizationService_GetPolicies_Handler,
		},
		{
			MethodName: "UpdatePolicies",
			Handler:    _AuthorizationService_UpdatePolicies_Handler,
		},
		{
			MethodName: "GetApiListAll",
			Handler:    _AuthorizationService_GetApiListAll_Handler,
		},
		{
			MethodName: "GetApiList",
			Handler:    _AuthorizationService_GetApiList_Handler,
		},
		{
			MethodName: "CreateApi",
			Handler:    _AuthorizationService_CreateApi_Handler,
		},
		{
			MethodName: "UpdateApi",
			Handler:    _AuthorizationService_UpdateApi_Handler,
		},
		{
			MethodName: "DeleteApi",
			Handler:    _AuthorizationService_DeleteApi_Handler,
		},
		{
			MethodName: "GetMenuAll",
			Handler:    _AuthorizationService_GetMenuAll_Handler,
		},
		{
			MethodName: "GetMenuTree",
			Handler:    _AuthorizationService_GetMenuTree_Handler,
		},
		{
			MethodName: "CreateMenu",
			Handler:    _AuthorizationService_CreateMenu_Handler,
		},
		{
			MethodName: "UpdateMenu",
			Handler:    _AuthorizationService_UpdateMenu_Handler,
		},
		{
			MethodName: "DeleteMenu",
			Handler:    _AuthorizationService_DeleteMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuTree",
			Handler:    _AuthorizationService_GetRoleMenuTree_Handler,
		},
		{
			MethodName: "GetRoleMenu",
			Handler:    _AuthorizationService_GetRoleMenu_Handler,
		},
		{
			MethodName: "SaveRoleMenu",
			Handler:    _AuthorizationService_SaveRoleMenu_Handler,
		},
		{
			MethodName: "GetRoleMenuBtn",
			Handler:    _AuthorizationService_GetRoleMenuBtn_Handler,
		},
		{
			MethodName: "SaveRoleMenuBtn",
			Handler:    _AuthorizationService_SaveRoleMenuBtn_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/v1/authorization.proto",
}

AuthorizationService_ServiceDesc is the grpc.ServiceDesc for AuthorizationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_auth_v1_authorization_proto protoreflect.FileDescriptor
View Source
var File_auth_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func RegisterAuthorizationServiceHTTPServer

func RegisterAuthorizationServiceHTTPServer(s *http.Server, srv AuthorizationServiceHTTPServer)

func RegisterAuthorizationServiceServer

func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer)

Types

type Api

type Api struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 域
	Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

响应 - API信息

func (*Api) Descriptor deprecated

func (*Api) Descriptor() ([]byte, []int)

Deprecated: Use Api.ProtoReflect.Descriptor instead.

func (*Api) GetCreatedAt

func (x *Api) GetCreatedAt() string

func (*Api) GetDomain

func (x *Api) GetDomain() string

func (*Api) GetGroup

func (x *Api) GetGroup() string

func (*Api) GetId

func (x *Api) GetId() int64

func (*Api) GetMethod

func (x *Api) GetMethod() string

func (*Api) GetName

func (x *Api) GetName() string

func (*Api) GetPath

func (x *Api) GetPath() string

func (*Api) GetUpdatedAt

func (x *Api) GetUpdatedAt() string

func (*Api) ProtoMessage

func (*Api) ProtoMessage()

func (*Api) ProtoReflect

func (x *Api) ProtoReflect() protoreflect.Message

func (*Api) Reset

func (x *Api) Reset()

func (*Api) String

func (x *Api) String() string

type AuthorizationServiceClient

type AuthorizationServiceClient interface {
	// 检查权限
	CheckAuthorization(ctx context.Context, in *CheckAuthorizationReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 全部角色
	GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoleAllRes, error)
	// 角色创建
	CreateRole(ctx context.Context, in *CreateRoleReq, opts ...grpc.CallOption) (*Role, error)
	// 角色更新
	UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色删除
	DeleteRole(ctx context.Context, in *DeleteRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 列表
	GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRes, error)
	// 角色用户 - 列表
	GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetUsersForRoleRes, error)
	// 用户角色 - 设置
	SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 删除(单个)
	DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 用户角色 - 删除(全部)
	DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色权限策略 - 列表
	GetPolicies(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetPoliciesRes, error)
	// 角色权限策略 - 设置
	UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Api列表
	GetApiListAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiListAllRes, error)
	// Api列表
	GetApiList(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListPageRes, error)
	// Api创建
	CreateApi(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*Api, error)
	// Api更新
	UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Api删除
	DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 菜单列表 - 全部
	GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 菜单列表 - 树状结构
	GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 菜单 - 创建
	CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error)
	// 菜单 - 更新
	UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 菜单 - 删除
	DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色菜单 - 树状结构
	GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 角色菜单 - 列表
	GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error)
	// 角色菜单 - 更新
	SaveRoleMenu(ctx context.Context, in *SaveRoleMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRes, error)
	// 角色菜单按钮 - 保存
	SaveRoleMenuBtn(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthorizationServiceClient is the client API for AuthorizationService 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.

示例服务

type AuthorizationServiceHTTPClient

type AuthorizationServiceHTTPClient interface {
	CheckAuthorization(ctx context.Context, req *CheckAuthorizationReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	CreateApi(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *Api, err error)
	CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error)
	CreateRole(ctx context.Context, req *CreateRoleReq, opts ...http.CallOption) (rsp *Role, err error)
	DeleteApi(ctx context.Context, req *DeleteApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetApiList(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListPageRes, err error)
	GetApiListAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiListAllRes, err error)
	GetMenuAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetPolicies(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetPoliciesRes, err error)
	GetRoleAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetRoleAllRes, err error)
	GetRoleMenu(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRes, err error)
	GetRoleMenuTree(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error)
	GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRes, err error)
	GetUsersForRole(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetUsersForRoleRes, err error)
	SaveRoleMenu(ctx context.Context, req *SaveRoleMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SaveRoleMenuBtn(ctx context.Context, req *SaveRoleMenuBtnReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	SetRolesForUser(ctx context.Context, req *SetRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateApi(ctx context.Context, req *UpdateApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateMenu(ctx context.Context, req *UpdateMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdatePolicies(ctx context.Context, req *UpdatePoliciesReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewAuthorizationServiceHTTPClient

func NewAuthorizationServiceHTTPClient(client *http.Client) AuthorizationServiceHTTPClient

type AuthorizationServiceHTTPClientImpl

type AuthorizationServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AuthorizationServiceHTTPClientImpl) CheckAuthorization

func (*AuthorizationServiceHTTPClientImpl) CreateApi

func (*AuthorizationServiceHTTPClientImpl) CreateMenu

func (*AuthorizationServiceHTTPClientImpl) CreateRole

func (*AuthorizationServiceHTTPClientImpl) DeleteApi

func (*AuthorizationServiceHTTPClientImpl) DeleteMenu

func (*AuthorizationServiceHTTPClientImpl) DeleteRole

func (*AuthorizationServiceHTTPClientImpl) DeleteRoleForUser

func (*AuthorizationServiceHTTPClientImpl) DeleteRolesForUser

func (*AuthorizationServiceHTTPClientImpl) GetApiList

func (*AuthorizationServiceHTTPClientImpl) GetApiListAll

func (*AuthorizationServiceHTTPClientImpl) GetMenuAll

func (*AuthorizationServiceHTTPClientImpl) GetMenuTree

func (*AuthorizationServiceHTTPClientImpl) GetPolicies

func (*AuthorizationServiceHTTPClientImpl) GetRoleAll

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenu

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn

func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuTree

func (*AuthorizationServiceHTTPClientImpl) GetRolesForUser

func (*AuthorizationServiceHTTPClientImpl) GetUsersForRole

func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenu

func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn

func (*AuthorizationServiceHTTPClientImpl) SetRolesForUser

func (*AuthorizationServiceHTTPClientImpl) UpdateApi

func (*AuthorizationServiceHTTPClientImpl) UpdateMenu

func (*AuthorizationServiceHTTPClientImpl) UpdatePolicies

func (*AuthorizationServiceHTTPClientImpl) UpdateRole

type AuthorizationServiceHTTPServer

type AuthorizationServiceHTTPServer interface {
	// CheckAuthorization 检查权限
	CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
	// CreateApi Api创建
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	// CreateMenu 菜单 - 创建
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// CreateRole 角色创建
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	// DeleteApi Api删除
	DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
	// DeleteMenu 菜单 - 删除
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	// DeleteRole 角色删除
	DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
	// DeleteRoleForUser 用户角色 - 删除(单个)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	// DeleteRolesForUser 用户角色 - 删除(全部)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	// GetApiList Api列表
	GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
	// GetApiListAll Api列表
	GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
	// GetMenuAll 菜单列表 - 全部
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// GetMenuTree 菜单列表 - 树状结构
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// GetPolicies 角色权限策略 - 列表
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	// GetRoleAll 全部角色
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	// GetRoleMenu 角色菜单 - 列表
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// GetRoleMenuBtn 角色菜单按钮 - 列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	// GetRoleMenuTree 角色菜单 - 树状结构
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// GetRolesForUser 用户角色 - 列表
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	// GetUsersForRole 角色用户 - 列表
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	// SaveRoleMenu 角色菜单 - 更新
	SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
	// SaveRoleMenuBtn 角色菜单按钮 - 保存
	SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
	// SetRolesForUser 用户角色 - 设置
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	// UpdateApi Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	// UpdateMenu 菜单 - 更新
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	// UpdatePolicies 角色权限策略 - 设置
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	// UpdateRole 角色更新
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
}

type AuthorizationServiceServer

type AuthorizationServiceServer interface {
	// 检查权限
	CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
	// 全部角色
	GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
	// 角色创建
	CreateRole(context.Context, *CreateRoleReq) (*Role, error)
	// 角色更新
	UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
	// 角色删除
	DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
	// 用户角色 - 列表
	GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
	// 角色用户 - 列表
	GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
	// 用户角色 - 设置
	SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
	// 用户角色 - 删除(单个)
	DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
	// 用户角色 - 删除(全部)
	DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
	// 角色权限策略 - 列表
	GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
	// 角色权限策略 - 设置
	UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
	// Api列表
	GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
	// Api列表
	GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
	// Api创建
	CreateApi(context.Context, *CreateApiReq) (*Api, error)
	// Api更新
	UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
	// Api删除
	DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
	// 菜单列表 - 全部
	GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 菜单列表 - 树状结构
	GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
	// 菜单 - 创建
	CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
	// 菜单 - 更新
	UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
	// 菜单 - 删除
	DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
	// 角色菜单 - 树状结构
	GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 角色菜单 - 列表
	GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
	// 角色菜单 - 更新
	SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
	// 角色菜单按钮 - 列表
	GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
	// 角色菜单按钮 - 保存
	SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AuthorizationServiceServer is the server API for AuthorizationService service. All implementations must embed UnimplementedAuthorizationServiceServer for forward compatibility.

示例服务

type CheckAuthorizationReq

type CheckAuthorizationReq struct {

	// 主题
	Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"`
	// 操作对象
	Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"`
	// 操作行为
	Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"`
	// contains filtered or unexported fields
}

检查权限

func (*CheckAuthorizationReq) Descriptor deprecated

func (*CheckAuthorizationReq) Descriptor() ([]byte, []int)

Deprecated: Use CheckAuthorizationReq.ProtoReflect.Descriptor instead.

func (*CheckAuthorizationReq) GetAct

func (x *CheckAuthorizationReq) GetAct() string

func (*CheckAuthorizationReq) GetObj

func (x *CheckAuthorizationReq) GetObj() string

func (*CheckAuthorizationReq) GetSub

func (x *CheckAuthorizationReq) GetSub() string

func (*CheckAuthorizationReq) ProtoMessage

func (*CheckAuthorizationReq) ProtoMessage()

func (*CheckAuthorizationReq) ProtoReflect

func (x *CheckAuthorizationReq) ProtoReflect() protoreflect.Message

func (*CheckAuthorizationReq) Reset

func (x *CheckAuthorizationReq) Reset()

func (*CheckAuthorizationReq) String

func (x *CheckAuthorizationReq) String() string

type CreateApiReq

type CreateApiReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API创建

func (*CreateApiReq) Descriptor deprecated

func (*CreateApiReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateApiReq.ProtoReflect.Descriptor instead.

func (*CreateApiReq) GetGroup

func (x *CreateApiReq) GetGroup() string

func (*CreateApiReq) GetMethod

func (x *CreateApiReq) GetMethod() string

func (*CreateApiReq) GetName

func (x *CreateApiReq) GetName() string

func (*CreateApiReq) GetPath

func (x *CreateApiReq) GetPath() string

func (*CreateApiReq) ProtoMessage

func (*CreateApiReq) ProtoMessage()

func (*CreateApiReq) ProtoReflect

func (x *CreateApiReq) ProtoReflect() protoreflect.Message

func (*CreateApiReq) Reset

func (x *CreateApiReq) Reset()

func (*CreateApiReq) String

func (x *CreateApiReq) String() string

type CreateMenuReq

type CreateMenuReq struct {

	// 父级id
	ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单创建

func (*CreateMenuReq) Descriptor deprecated

func (*CreateMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.

func (*CreateMenuReq) GetComponent

func (x *CreateMenuReq) GetComponent() string

func (*CreateMenuReq) GetHidden

func (x *CreateMenuReq) GetHidden() bool

func (*CreateMenuReq) GetIcon

func (x *CreateMenuReq) GetIcon() string

func (*CreateMenuReq) GetMenuBtns

func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn

func (*CreateMenuReq) GetName

func (x *CreateMenuReq) GetName() string

func (*CreateMenuReq) GetParentId

func (x *CreateMenuReq) GetParentId() int64

func (*CreateMenuReq) GetParentIds

func (x *CreateMenuReq) GetParentIds() string

func (*CreateMenuReq) GetPath

func (x *CreateMenuReq) GetPath() string

func (*CreateMenuReq) GetSort

func (x *CreateMenuReq) GetSort() int64

func (*CreateMenuReq) GetTitle

func (x *CreateMenuReq) GetTitle() string

func (*CreateMenuReq) ProtoMessage

func (*CreateMenuReq) ProtoMessage()

func (*CreateMenuReq) ProtoReflect

func (x *CreateMenuReq) ProtoReflect() protoreflect.Message

func (*CreateMenuReq) Reset

func (x *CreateMenuReq) Reset()

func (*CreateMenuReq) String

func (x *CreateMenuReq) String() string

type CreateRoleReq

type CreateRoleReq struct {

	// 名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色创建

func (*CreateRoleReq) Descriptor deprecated

func (*CreateRoleReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateRoleReq.ProtoReflect.Descriptor instead.

func (*CreateRoleReq) GetName

func (x *CreateRoleReq) GetName() string

func (*CreateRoleReq) ProtoMessage

func (*CreateRoleReq) ProtoMessage()

func (*CreateRoleReq) ProtoReflect

func (x *CreateRoleReq) ProtoReflect() protoreflect.Message

func (*CreateRoleReq) Reset

func (x *CreateRoleReq) Reset()

func (*CreateRoleReq) String

func (x *CreateRoleReq) String() string

type DeleteApiReq

type DeleteApiReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - API删除

func (*DeleteApiReq) Descriptor deprecated

func (*DeleteApiReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteApiReq.ProtoReflect.Descriptor instead.

func (*DeleteApiReq) GetId

func (x *DeleteApiReq) GetId() int64

func (*DeleteApiReq) ProtoMessage

func (*DeleteApiReq) ProtoMessage()

func (*DeleteApiReq) ProtoReflect

func (x *DeleteApiReq) ProtoReflect() protoreflect.Message

func (*DeleteApiReq) Reset

func (x *DeleteApiReq) Reset()

func (*DeleteApiReq) String

func (x *DeleteApiReq) String() string

type DeleteRoleForUserReq

type DeleteRoleForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色名
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(单个)角色

func (*DeleteRoleForUserReq) Descriptor deprecated

func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRoleForUserReq) GetRole

func (x *DeleteRoleForUserReq) GetRole() string

func (*DeleteRoleForUserReq) GetUsername

func (x *DeleteRoleForUserReq) GetUsername() string

func (*DeleteRoleForUserReq) ProtoMessage

func (*DeleteRoleForUserReq) ProtoMessage()

func (*DeleteRoleForUserReq) ProtoReflect

func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message

func (*DeleteRoleForUserReq) Reset

func (x *DeleteRoleForUserReq) Reset()

func (*DeleteRoleForUserReq) String

func (x *DeleteRoleForUserReq) String() string

type DeleteRoleReq

type DeleteRoleReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色删除

func (*DeleteRoleReq) Descriptor deprecated

func (*DeleteRoleReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRoleReq.ProtoReflect.Descriptor instead.

func (*DeleteRoleReq) GetId

func (x *DeleteRoleReq) GetId() int64

func (*DeleteRoleReq) ProtoMessage

func (*DeleteRoleReq) ProtoMessage()

func (*DeleteRoleReq) ProtoReflect

func (x *DeleteRoleReq) ProtoReflect() protoreflect.Message

func (*DeleteRoleReq) Reset

func (x *DeleteRoleReq) Reset()

func (*DeleteRoleReq) String

func (x *DeleteRoleReq) String() string

type DeleteRolesForUserReq

type DeleteRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 删除用户(全部)角色

func (*DeleteRolesForUserReq) Descriptor deprecated

func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRolesForUserReq.ProtoReflect.Descriptor instead.

func (*DeleteRolesForUserReq) GetUsername

func (x *DeleteRolesForUserReq) GetUsername() string

func (*DeleteRolesForUserReq) ProtoMessage

func (*DeleteRolesForUserReq) ProtoMessage()

func (*DeleteRolesForUserReq) ProtoReflect

func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message

func (*DeleteRolesForUserReq) Reset

func (x *DeleteRolesForUserReq) Reset()

func (*DeleteRolesForUserReq) String

func (x *DeleteRolesForUserReq) String() string

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_RECORD_NOT_FOUND      ErrorReason = 0
	ErrorReason_RECORD_ALREADY_EXISTS ErrorReason = 1
	ErrorReason_BAD_REQUEST           ErrorReason = 2
	ErrorReason_SYSTEM_ERROR          ErrorReason = 3
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

func (ErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type GetApiListAllRes

type GetApiListAllRes struct {

	// 列表
	List []*Api `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - API列表(所有)

func (*GetApiListAllRes) Descriptor deprecated

func (*GetApiListAllRes) Descriptor() ([]byte, []int)

Deprecated: Use GetApiListAllRes.ProtoReflect.Descriptor instead.

func (*GetApiListAllRes) GetList

func (x *GetApiListAllRes) GetList() []*Api

func (*GetApiListAllRes) ProtoMessage

func (*GetApiListAllRes) ProtoMessage()

func (*GetApiListAllRes) ProtoReflect

func (x *GetApiListAllRes) ProtoReflect() protoreflect.Message

func (*GetApiListAllRes) Reset

func (x *GetApiListAllRes) Reset()

func (*GetApiListAllRes) String

func (x *GetApiListAllRes) String() string

type GetApiListPageRes

type GetApiListPageRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*Api `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - API分页

func (*GetApiListPageRes) Descriptor deprecated

func (*GetApiListPageRes) Descriptor() ([]byte, []int)

Deprecated: Use GetApiListPageRes.ProtoReflect.Descriptor instead.

func (*GetApiListPageRes) GetList

func (x *GetApiListPageRes) GetList() []*Api

func (*GetApiListPageRes) GetTotal

func (x *GetApiListPageRes) GetTotal() int64

func (*GetApiListPageRes) ProtoMessage

func (*GetApiListPageRes) ProtoMessage()

func (*GetApiListPageRes) ProtoReflect

func (x *GetApiListPageRes) ProtoReflect() protoreflect.Message

func (*GetApiListPageRes) Reset

func (x *GetApiListPageRes) Reset()

func (*GetApiListPageRes) String

func (x *GetApiListPageRes) String() string

type GetApiListReq

type GetApiListReq struct {

	// 主键id
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API分页列表

func (*GetApiListReq) Descriptor deprecated

func (*GetApiListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetApiListReq.ProtoReflect.Descriptor instead.

func (*GetApiListReq) GetGroup

func (x *GetApiListReq) GetGroup() string

func (*GetApiListReq) GetMethod

func (x *GetApiListReq) GetMethod() string

func (*GetApiListReq) GetName

func (x *GetApiListReq) GetName() string

func (*GetApiListReq) GetPage

func (x *GetApiListReq) GetPage() int64

func (*GetApiListReq) GetPageSize

func (x *GetApiListReq) GetPageSize() int64

func (*GetApiListReq) GetPath

func (x *GetApiListReq) GetPath() string

func (*GetApiListReq) ProtoMessage

func (*GetApiListReq) ProtoMessage()

func (*GetApiListReq) ProtoReflect

func (x *GetApiListReq) ProtoReflect() protoreflect.Message

func (*GetApiListReq) Reset

func (x *GetApiListReq) Reset()

func (*GetApiListReq) String

func (x *GetApiListReq) String() string

type GetMenuTreeRes

type GetMenuTreeRes struct {

	// 菜单列表
	List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单树列表

func (*GetMenuTreeRes) Descriptor deprecated

func (*GetMenuTreeRes) Descriptor() ([]byte, []int)

Deprecated: Use GetMenuTreeRes.ProtoReflect.Descriptor instead.

func (*GetMenuTreeRes) GetList

func (x *GetMenuTreeRes) GetList() []*Menu

func (*GetMenuTreeRes) ProtoMessage

func (*GetMenuTreeRes) ProtoMessage()

func (*GetMenuTreeRes) ProtoReflect

func (x *GetMenuTreeRes) ProtoReflect() protoreflect.Message

func (*GetMenuTreeRes) Reset

func (x *GetMenuTreeRes) Reset()

func (*GetMenuTreeRes) String

func (x *GetMenuTreeRes) String() string

type GetPoliciesRes

type GetPoliciesRes struct {
	PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略列表

func (*GetPoliciesRes) Descriptor deprecated

func (*GetPoliciesRes) Descriptor() ([]byte, []int)

Deprecated: Use GetPoliciesRes.ProtoReflect.Descriptor instead.

func (*GetPoliciesRes) GetPolicyRules

func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules

func (*GetPoliciesRes) ProtoMessage

func (*GetPoliciesRes) ProtoMessage()

func (*GetPoliciesRes) ProtoReflect

func (x *GetPoliciesRes) ProtoReflect() protoreflect.Message

func (*GetPoliciesRes) Reset

func (x *GetPoliciesRes) Reset()

func (*GetPoliciesRes) String

func (x *GetPoliciesRes) String() string

type GetRoleAllRes

type GetRoleAllRes struct {

	// 列表
	List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色列表(所有)

func (*GetRoleAllRes) Descriptor deprecated

func (*GetRoleAllRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleAllRes.ProtoReflect.Descriptor instead.

func (*GetRoleAllRes) GetList

func (x *GetRoleAllRes) GetList() []*Role

func (*GetRoleAllRes) ProtoMessage

func (*GetRoleAllRes) ProtoMessage()

func (*GetRoleAllRes) ProtoReflect

func (x *GetRoleAllRes) ProtoReflect() protoreflect.Message

func (*GetRoleAllRes) Reset

func (x *GetRoleAllRes) Reset()

func (*GetRoleAllRes) String

func (x *GetRoleAllRes) String() string

type GetRoleListPageRes

type GetRoleListPageRes struct {

	// 总数
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// 列表
	List []*Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色分页

func (*GetRoleListPageRes) Descriptor deprecated

func (*GetRoleListPageRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleListPageRes.ProtoReflect.Descriptor instead.

func (*GetRoleListPageRes) GetList

func (x *GetRoleListPageRes) GetList() []*Role

func (*GetRoleListPageRes) GetTotal

func (x *GetRoleListPageRes) GetTotal() int64

func (*GetRoleListPageRes) ProtoMessage

func (*GetRoleListPageRes) ProtoMessage()

func (*GetRoleListPageRes) ProtoReflect

func (x *GetRoleListPageRes) ProtoReflect() protoreflect.Message

func (*GetRoleListPageRes) Reset

func (x *GetRoleListPageRes) Reset()

func (*GetRoleListPageRes) String

func (x *GetRoleListPageRes) String() string

type GetRoleListReq

type GetRoleListReq struct {

	// 主键id
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	// 页记录数
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// 名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色分页列表

func (*GetRoleListReq) Descriptor deprecated

func (*GetRoleListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleListReq.ProtoReflect.Descriptor instead.

func (*GetRoleListReq) GetName

func (x *GetRoleListReq) GetName() string

func (*GetRoleListReq) GetPage

func (x *GetRoleListReq) GetPage() int64

func (*GetRoleListReq) GetPageSize

func (x *GetRoleListReq) GetPageSize() int64

func (*GetRoleListReq) ProtoMessage

func (*GetRoleListReq) ProtoMessage()

func (*GetRoleListReq) ProtoReflect

func (x *GetRoleListReq) ProtoReflect() protoreflect.Message

func (*GetRoleListReq) Reset

func (x *GetRoleListReq) Reset()

func (*GetRoleListReq) String

func (x *GetRoleListReq) String() string

type GetRoleMenuBtnReq

type GetRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 角色名称
	RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,3,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取角色菜单按钮

func (*GetRoleMenuBtnReq) Descriptor deprecated

func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnReq) GetMenuId

func (x *GetRoleMenuBtnReq) GetMenuId() int64

func (*GetRoleMenuBtnReq) GetRoleId

func (x *GetRoleMenuBtnReq) GetRoleId() int64

func (*GetRoleMenuBtnReq) GetRoleName

func (x *GetRoleMenuBtnReq) GetRoleName() string

func (*GetRoleMenuBtnReq) ProtoMessage

func (*GetRoleMenuBtnReq) ProtoMessage()

func (*GetRoleMenuBtnReq) ProtoReflect

func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message

func (*GetRoleMenuBtnReq) Reset

func (x *GetRoleMenuBtnReq) Reset()

func (*GetRoleMenuBtnReq) String

func (x *GetRoleMenuBtnReq) String() string

type GetRoleMenuBtnRes

type GetRoleMenuBtnRes struct {

	// 菜单按钮列表
	List []*MenuBtn `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色菜单按钮列表

func (*GetRoleMenuBtnRes) Descriptor deprecated

func (*GetRoleMenuBtnRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleMenuBtnRes.ProtoReflect.Descriptor instead.

func (*GetRoleMenuBtnRes) GetList

func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn

func (*GetRoleMenuBtnRes) ProtoMessage

func (*GetRoleMenuBtnRes) ProtoMessage()

func (*GetRoleMenuBtnRes) ProtoReflect

func (x *GetRoleMenuBtnRes) ProtoReflect() protoreflect.Message

func (*GetRoleMenuBtnRes) Reset

func (x *GetRoleMenuBtnRes) Reset()

func (*GetRoleMenuBtnRes) String

func (x *GetRoleMenuBtnRes) String() string

type GetRolesForUserReq

type GetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

请求 - 获取用户角色列表

func (*GetRolesForUserReq) Descriptor deprecated

func (*GetRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use GetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*GetRolesForUserReq) GetUsername

func (x *GetRolesForUserReq) GetUsername() string

func (*GetRolesForUserReq) ProtoMessage

func (*GetRolesForUserReq) ProtoMessage()

func (*GetRolesForUserReq) ProtoReflect

func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message

func (*GetRolesForUserReq) Reset

func (x *GetRolesForUserReq) Reset()

func (*GetRolesForUserReq) String

func (x *GetRolesForUserReq) String() string

type GetRolesForUserRes

type GetRolesForUserRes struct {

	// 角色列表
	Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

响应 - 用户角色列表

func (*GetRolesForUserRes) Descriptor deprecated

func (*GetRolesForUserRes) Descriptor() ([]byte, []int)

Deprecated: Use GetRolesForUserRes.ProtoReflect.Descriptor instead.

func (*GetRolesForUserRes) GetRoles

func (x *GetRolesForUserRes) GetRoles() []string

func (*GetRolesForUserRes) ProtoMessage

func (*GetRolesForUserRes) ProtoMessage()

func (*GetRolesForUserRes) ProtoReflect

func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message

func (*GetRolesForUserRes) Reset

func (x *GetRolesForUserRes) Reset()

func (*GetRolesForUserRes) String

func (x *GetRolesForUserRes) String() string

type GetUsersForRoleRes

type GetUsersForRoleRes struct {

	// 用户列表
	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色用户列表

func (*GetUsersForRoleRes) Descriptor deprecated

func (*GetUsersForRoleRes) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersForRoleRes.ProtoReflect.Descriptor instead.

func (*GetUsersForRoleRes) GetUsers

func (x *GetUsersForRoleRes) GetUsers() []string

func (*GetUsersForRoleRes) ProtoMessage

func (*GetUsersForRoleRes) ProtoMessage()

func (*GetUsersForRoleRes) ProtoReflect

func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message

func (*GetUsersForRoleRes) Reset

func (x *GetUsersForRoleRes) Reset()

func (*GetUsersForRoleRes) String

func (x *GetUsersForRoleRes) String() string

type IdReq

type IdReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

请求 - id主键

func (*IdReq) Descriptor deprecated

func (*IdReq) Descriptor() ([]byte, []int)

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

func (x *IdReq) ProtoReflect() protoreflect.Message

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string
type Menu struct {

	// 主键id
	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"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 子菜单
	Children []*Menu `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单详情

func (*Menu) Descriptor() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

func (x *Menu) GetChildren() []*Menu
func (x *Menu) GetComponent() string
func (x *Menu) GetCreatedAt() string
func (x *Menu) GetHidden() bool
func (x *Menu) GetIcon() string
func (x *Menu) GetId() int64
func (x *Menu) GetMenuBtns() []*MenuBtn
func (x *Menu) GetName() string
func (x *Menu) GetParentId() int64
func (x *Menu) GetParentIds() string
func (x *Menu) GetPath() string
func (x *Menu) GetSort() int64
func (x *Menu) GetTitle() string
func (x *Menu) GetUpdatedAt() string
func (*Menu) ProtoMessage()
func (x *Menu) ProtoReflect() protoreflect.Message
func (x *Menu) Reset()
func (x *Menu) String() string
type MenuBtn struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 描述
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// 英文标识
	Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - 菜单按钮详情

func (*MenuBtn) Descriptor() ([]byte, []int)

Deprecated: Use MenuBtn.ProtoReflect.Descriptor instead.

func (x *MenuBtn) GetCreatedAt() string
func (x *MenuBtn) GetDescription() string
func (x *MenuBtn) GetId() int64
func (x *MenuBtn) GetIdentifier() string
func (x *MenuBtn) GetMenuId() int64
func (x *MenuBtn) GetName() string
func (x *MenuBtn) GetUpdatedAt() string
func (*MenuBtn) ProtoMessage()
func (x *MenuBtn) ProtoReflect() protoreflect.Message
func (x *MenuBtn) Reset()
func (x *MenuBtn) String() string

type PolicyRules

type PolicyRules struct {

	// operation路径
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

响应 - 权限策略

func (*PolicyRules) Descriptor deprecated

func (*PolicyRules) Descriptor() ([]byte, []int)

Deprecated: Use PolicyRules.ProtoReflect.Descriptor instead.

func (*PolicyRules) GetMethod

func (x *PolicyRules) GetMethod() string

func (*PolicyRules) GetPath

func (x *PolicyRules) GetPath() string

func (*PolicyRules) ProtoMessage

func (*PolicyRules) ProtoMessage()

func (*PolicyRules) ProtoReflect

func (x *PolicyRules) ProtoReflect() protoreflect.Message

func (*PolicyRules) Reset

func (x *PolicyRules) Reset()

func (*PolicyRules) String

func (x *PolicyRules) String() string

type Role

type Role struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

响应 - 角色信息

func (*Role) Descriptor deprecated

func (*Role) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() string

func (*Role) GetId

func (x *Role) GetId() int64

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type RoleNameReq

type RoleNameReq struct {
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色名称

func (*RoleNameReq) Descriptor deprecated

func (*RoleNameReq) Descriptor() ([]byte, []int)

Deprecated: Use RoleNameReq.ProtoReflect.Descriptor instead.

func (*RoleNameReq) GetRole

func (x *RoleNameReq) GetRole() string

func (*RoleNameReq) ProtoMessage

func (*RoleNameReq) ProtoMessage()

func (*RoleNameReq) ProtoReflect

func (x *RoleNameReq) ProtoReflect() protoreflect.Message

func (*RoleNameReq) Reset

func (x *RoleNameReq) Reset()

func (*RoleNameReq) String

func (x *RoleNameReq) String() string

type SaveRoleMenuBtnReq

type SaveRoleMenuBtnReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id
	MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// 按钮id数组
	MenuBtnIds []int64 `protobuf:"varint,3,rep,packed,name=menu_btn_ids,json=menuBtnIds,proto3" json:"menu_btn_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色菜单按钮保存

func (*SaveRoleMenuBtnReq) Descriptor deprecated

func (*SaveRoleMenuBtnReq) Descriptor() ([]byte, []int)

Deprecated: Use SaveRoleMenuBtnReq.ProtoReflect.Descriptor instead.

func (*SaveRoleMenuBtnReq) GetMenuBtnIds

func (x *SaveRoleMenuBtnReq) GetMenuBtnIds() []int64

func (*SaveRoleMenuBtnReq) GetMenuId

func (x *SaveRoleMenuBtnReq) GetMenuId() int64

func (*SaveRoleMenuBtnReq) GetRoleId

func (x *SaveRoleMenuBtnReq) GetRoleId() int64

func (*SaveRoleMenuBtnReq) ProtoMessage

func (*SaveRoleMenuBtnReq) ProtoMessage()

func (*SaveRoleMenuBtnReq) ProtoReflect

func (x *SaveRoleMenuBtnReq) ProtoReflect() protoreflect.Message

func (*SaveRoleMenuBtnReq) Reset

func (x *SaveRoleMenuBtnReq) Reset()

func (*SaveRoleMenuBtnReq) String

func (x *SaveRoleMenuBtnReq) String() string

type SaveRoleMenuReq

type SaveRoleMenuReq struct {

	// 角色id
	RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// 菜单id数组
	MenuIds []int64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置角色菜单

func (*SaveRoleMenuReq) Descriptor deprecated

func (*SaveRoleMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use SaveRoleMenuReq.ProtoReflect.Descriptor instead.

func (*SaveRoleMenuReq) GetMenuIds

func (x *SaveRoleMenuReq) GetMenuIds() []int64

func (*SaveRoleMenuReq) GetRoleId

func (x *SaveRoleMenuReq) GetRoleId() int64

func (*SaveRoleMenuReq) ProtoMessage

func (*SaveRoleMenuReq) ProtoMessage()

func (*SaveRoleMenuReq) ProtoReflect

func (x *SaveRoleMenuReq) ProtoReflect() protoreflect.Message

func (*SaveRoleMenuReq) Reset

func (x *SaveRoleMenuReq) Reset()

func (*SaveRoleMenuReq) String

func (x *SaveRoleMenuReq) String() string

type SetRolesForUserReq

type SetRolesForUserReq struct {

	// 用户名
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// 角色数组
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

请求 - 设置用户角色

func (*SetRolesForUserReq) Descriptor deprecated

func (*SetRolesForUserReq) Descriptor() ([]byte, []int)

Deprecated: Use SetRolesForUserReq.ProtoReflect.Descriptor instead.

func (*SetRolesForUserReq) GetRoles

func (x *SetRolesForUserReq) GetRoles() []string

func (*SetRolesForUserReq) GetUsername

func (x *SetRolesForUserReq) GetUsername() string

func (*SetRolesForUserReq) ProtoMessage

func (*SetRolesForUserReq) ProtoMessage()

func (*SetRolesForUserReq) ProtoReflect

func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message

func (*SetRolesForUserReq) Reset

func (x *SetRolesForUserReq) Reset()

func (*SetRolesForUserReq) String

func (x *SetRolesForUserReq) String() string

type UnimplementedAuthorizationServiceServer

type UnimplementedAuthorizationServiceServer struct{}

UnimplementedAuthorizationServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthorizationServiceServer) CheckAuthorization

func (UnimplementedAuthorizationServiceServer) CreateApi

func (UnimplementedAuthorizationServiceServer) CreateMenu

func (UnimplementedAuthorizationServiceServer) CreateRole

func (UnimplementedAuthorizationServiceServer) DeleteApi

func (UnimplementedAuthorizationServiceServer) DeleteMenu

func (UnimplementedAuthorizationServiceServer) DeleteRole

func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser

func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser

func (UnimplementedAuthorizationServiceServer) GetApiList

func (UnimplementedAuthorizationServiceServer) GetApiListAll

func (UnimplementedAuthorizationServiceServer) GetMenuAll

func (UnimplementedAuthorizationServiceServer) GetMenuTree

func (UnimplementedAuthorizationServiceServer) GetPolicies

func (UnimplementedAuthorizationServiceServer) GetRoleAll

func (UnimplementedAuthorizationServiceServer) GetRoleMenu

func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn

func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree

func (UnimplementedAuthorizationServiceServer) GetRolesForUser

func (UnimplementedAuthorizationServiceServer) GetUsersForRole

func (UnimplementedAuthorizationServiceServer) SaveRoleMenu

func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn

func (UnimplementedAuthorizationServiceServer) SetRolesForUser

func (UnimplementedAuthorizationServiceServer) UpdateApi

func (UnimplementedAuthorizationServiceServer) UpdateMenu

func (UnimplementedAuthorizationServiceServer) UpdatePolicies

func (UnimplementedAuthorizationServiceServer) UpdateRole

type UnsafeAuthorizationServiceServer

type UnsafeAuthorizationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthorizationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationServiceServer will result in compilation errors.

type UpdateApiReq

type UpdateApiReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	// 请求方式
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// 请求路径
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

请求 - API更新

func (*UpdateApiReq) Descriptor deprecated

func (*UpdateApiReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateApiReq.ProtoReflect.Descriptor instead.

func (*UpdateApiReq) GetGroup

func (x *UpdateApiReq) GetGroup() string

func (*UpdateApiReq) GetId

func (x *UpdateApiReq) GetId() int64

func (*UpdateApiReq) GetMethod

func (x *UpdateApiReq) GetMethod() string

func (*UpdateApiReq) GetName

func (x *UpdateApiReq) GetName() string

func (*UpdateApiReq) GetPath

func (x *UpdateApiReq) GetPath() string

func (*UpdateApiReq) ProtoMessage

func (*UpdateApiReq) ProtoMessage()

func (*UpdateApiReq) ProtoReflect

func (x *UpdateApiReq) ProtoReflect() protoreflect.Message

func (*UpdateApiReq) Reset

func (x *UpdateApiReq) Reset()

func (*UpdateApiReq) String

func (x *UpdateApiReq) String() string

type UpdateMenuReq

type UpdateMenuReq struct {

	// 主键id
	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"`
	// 前端路径
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// 菜单名
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// 是否隐藏
	Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// 前端文件路径
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	// 排序
	Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	// 页面名称
	Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"`
	// 菜单图标
	Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"`
	// 菜单按钮列表
	MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"`
	// 父级id字符串 英文逗号分割
	ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
	// contains filtered or unexported fields
}

请求 - 菜单更新

func (*UpdateMenuReq) Descriptor deprecated

func (*UpdateMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMenuReq.ProtoReflect.Descriptor instead.

func (*UpdateMenuReq) GetComponent

func (x *UpdateMenuReq) GetComponent() string

func (*UpdateMenuReq) GetHidden

func (x *UpdateMenuReq) GetHidden() bool

func (*UpdateMenuReq) GetIcon

func (x *UpdateMenuReq) GetIcon() string

func (*UpdateMenuReq) GetId

func (x *UpdateMenuReq) GetId() int64

func (*UpdateMenuReq) GetMenuBtns

func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn

func (*UpdateMenuReq) GetName

func (x *UpdateMenuReq) GetName() string

func (*UpdateMenuReq) GetParentId

func (x *UpdateMenuReq) GetParentId() int64

func (*UpdateMenuReq) GetParentIds

func (x *UpdateMenuReq) GetParentIds() string

func (*UpdateMenuReq) GetPath

func (x *UpdateMenuReq) GetPath() string

func (*UpdateMenuReq) GetSort

func (x *UpdateMenuReq) GetSort() int64

func (*UpdateMenuReq) GetTitle

func (x *UpdateMenuReq) GetTitle() string

func (*UpdateMenuReq) ProtoMessage

func (*UpdateMenuReq) ProtoMessage()

func (*UpdateMenuReq) ProtoReflect

func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message

func (*UpdateMenuReq) Reset

func (x *UpdateMenuReq) Reset()

func (*UpdateMenuReq) String

func (x *UpdateMenuReq) String() string

type UpdatePoliciesReq

type UpdatePoliciesReq struct {

	// 角色名
	Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// 权限策略
	PolicyRules []*PolicyRules `protobuf:"bytes,2,rep,name=policyRules,proto3" json:"policyRules,omitempty"`
	// contains filtered or unexported fields
}

请求 - 权限策略更新

func (*UpdatePoliciesReq) Descriptor deprecated

func (*UpdatePoliciesReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePoliciesReq.ProtoReflect.Descriptor instead.

func (*UpdatePoliciesReq) GetPolicyRules

func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules

func (*UpdatePoliciesReq) GetRole

func (x *UpdatePoliciesReq) GetRole() string

func (*UpdatePoliciesReq) ProtoMessage

func (*UpdatePoliciesReq) ProtoMessage()

func (*UpdatePoliciesReq) ProtoReflect

func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message

func (*UpdatePoliciesReq) Reset

func (x *UpdatePoliciesReq) Reset()

func (*UpdatePoliciesReq) String

func (x *UpdatePoliciesReq) String() string

type UpdateRoleReq

type UpdateRoleReq struct {

	// 主键id
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

请求 - 角色更新

func (*UpdateRoleReq) Descriptor deprecated

func (*UpdateRoleReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRoleReq.ProtoReflect.Descriptor instead.

func (*UpdateRoleReq) GetId

func (x *UpdateRoleReq) GetId() int64

func (*UpdateRoleReq) GetName

func (x *UpdateRoleReq) GetName() string

func (*UpdateRoleReq) ProtoMessage

func (*UpdateRoleReq) ProtoMessage()

func (*UpdateRoleReq) ProtoReflect

func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message

func (*UpdateRoleReq) Reset

func (x *UpdateRoleReq) Reset()

func (*UpdateRoleReq) String

func (x *UpdateRoleReq) String() string

Jump to

Keyboard shortcuts

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