Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthorizationServiceHTTPServer(s *http.Server, srv AuthorizationServiceHTTPServer)
- func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer)
- type Api
- func (*Api) Descriptor() ([]byte, []int)deprecated
- func (x *Api) GetCreatedAt() string
- func (x *Api) GetDomain() string
- func (x *Api) GetGroup() string
- func (x *Api) GetId() int64
- func (x *Api) GetMethod() string
- func (x *Api) GetName() string
- func (x *Api) GetPath() string
- func (x *Api) GetUpdatedAt() string
- func (*Api) ProtoMessage()
- func (x *Api) ProtoReflect() protoreflect.Message
- func (x *Api) Reset()
- func (x *Api) String() string
- type AuthorizationServiceClient
- type AuthorizationServiceHTTPClient
- type AuthorizationServiceHTTPClientImpl
- func (c *AuthorizationServiceHTTPClientImpl) CheckAuthorization(ctx context.Context, in *CheckAuthorizationReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error)
- func (c *AuthorizationServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
- func (c *AuthorizationServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error)
- func (c *AuthorizationServiceHTTPClientImpl) DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListPageRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetApiListAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiListAllRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error)
- func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenu(ctx context.Context, in *SaveRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthorizationServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
- type AuthorizationServiceHTTPServer
- type AuthorizationServiceServer
- type CheckAuthorizationReq
- func (*CheckAuthorizationReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckAuthorizationReq) GetAct() string
- func (x *CheckAuthorizationReq) GetObj() string
- func (x *CheckAuthorizationReq) GetSub() string
- func (*CheckAuthorizationReq) ProtoMessage()
- func (x *CheckAuthorizationReq) ProtoReflect() protoreflect.Message
- func (x *CheckAuthorizationReq) Reset()
- func (x *CheckAuthorizationReq) String() string
- type CreateApiReq
- func (*CreateApiReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateApiReq) GetGroup() string
- func (x *CreateApiReq) GetMethod() string
- func (x *CreateApiReq) GetName() string
- func (x *CreateApiReq) GetPath() string
- func (*CreateApiReq) ProtoMessage()
- func (x *CreateApiReq) ProtoReflect() protoreflect.Message
- func (x *CreateApiReq) Reset()
- func (x *CreateApiReq) String() string
- type CreateMenuReq
- func (*CreateMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuReq) GetComponent() string
- func (x *CreateMenuReq) GetHidden() bool
- func (x *CreateMenuReq) GetIcon() string
- func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn
- func (x *CreateMenuReq) GetName() string
- func (x *CreateMenuReq) GetParentId() int64
- func (x *CreateMenuReq) GetParentIds() string
- func (x *CreateMenuReq) GetPath() string
- func (x *CreateMenuReq) GetSort() int64
- func (x *CreateMenuReq) GetTitle() string
- func (*CreateMenuReq) ProtoMessage()
- func (x *CreateMenuReq) ProtoReflect() protoreflect.Message
- func (x *CreateMenuReq) Reset()
- func (x *CreateMenuReq) String() string
- type CreateRoleReq
- type DeleteApiReq
- type DeleteRoleForUserReq
- func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleForUserReq) GetRole() string
- func (x *DeleteRoleForUserReq) GetUsername() string
- func (*DeleteRoleForUserReq) ProtoMessage()
- func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleForUserReq) Reset()
- func (x *DeleteRoleForUserReq) String() string
- type DeleteRoleReq
- type DeleteRolesForUserReq
- func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolesForUserReq) GetUsername() string
- func (*DeleteRolesForUserReq) ProtoMessage()
- func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRolesForUserReq) Reset()
- func (x *DeleteRolesForUserReq) String() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetApiListAllRes
- type GetApiListPageRes
- func (*GetApiListPageRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiListPageRes) GetList() []*Api
- func (x *GetApiListPageRes) GetTotal() int64
- func (*GetApiListPageRes) ProtoMessage()
- func (x *GetApiListPageRes) ProtoReflect() protoreflect.Message
- func (x *GetApiListPageRes) Reset()
- func (x *GetApiListPageRes) String() string
- type GetApiListReq
- func (*GetApiListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiListReq) GetGroup() string
- func (x *GetApiListReq) GetMethod() string
- func (x *GetApiListReq) GetName() string
- func (x *GetApiListReq) GetPage() int64
- func (x *GetApiListReq) GetPageSize() int64
- func (x *GetApiListReq) GetPath() string
- func (*GetApiListReq) ProtoMessage()
- func (x *GetApiListReq) ProtoReflect() protoreflect.Message
- func (x *GetApiListReq) Reset()
- func (x *GetApiListReq) String() string
- type GetMenuTreeRes
- type GetPoliciesRes
- type GetRoleAllRes
- type GetRoleListPageRes
- func (*GetRoleListPageRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleListPageRes) GetList() []*Role
- func (x *GetRoleListPageRes) GetTotal() int64
- func (*GetRoleListPageRes) ProtoMessage()
- func (x *GetRoleListPageRes) ProtoReflect() protoreflect.Message
- func (x *GetRoleListPageRes) Reset()
- func (x *GetRoleListPageRes) String() string
- type GetRoleListReq
- func (*GetRoleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleListReq) GetName() string
- func (x *GetRoleListReq) GetPage() int64
- func (x *GetRoleListReq) GetPageSize() int64
- func (*GetRoleListReq) ProtoMessage()
- func (x *GetRoleListReq) ProtoReflect() protoreflect.Message
- func (x *GetRoleListReq) Reset()
- func (x *GetRoleListReq) String() string
- type GetRoleMenuBtnReq
- func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuBtnReq) GetMenuId() int64
- func (x *GetRoleMenuBtnReq) GetRoleId() int64
- func (x *GetRoleMenuBtnReq) GetRoleName() string
- func (*GetRoleMenuBtnReq) ProtoMessage()
- func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuBtnReq) Reset()
- func (x *GetRoleMenuBtnReq) String() string
- type GetRoleMenuBtnRes
- type GetRolesForUserReq
- func (*GetRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserReq) GetUsername() string
- func (*GetRolesForUserReq) ProtoMessage()
- func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserReq) Reset()
- func (x *GetRolesForUserReq) String() string
- type GetRolesForUserRes
- func (*GetRolesForUserRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserRes) GetRoles() []string
- func (*GetRolesForUserRes) ProtoMessage()
- func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserRes) Reset()
- func (x *GetRolesForUserRes) String() string
- type GetUsersForRoleRes
- func (*GetUsersForRoleRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleRes) GetUsers() []string
- func (*GetUsersForRoleRes) ProtoMessage()
- func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleRes) Reset()
- func (x *GetUsersForRoleRes) String() string
- type IdReq
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- 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
- func (*MenuBtn) Descriptor() ([]byte, []int)deprecated
- 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 Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() string
- func (x *Role) GetId() int64
- func (x *Role) GetName() string
- func (x *Role) GetUpdatedAt() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleNameReq
- type SaveRoleMenuBtnReq
- func (*SaveRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRoleMenuBtnReq) GetMenuBtnIds() []int64
- func (x *SaveRoleMenuBtnReq) GetMenuId() int64
- func (x *SaveRoleMenuBtnReq) GetRoleId() int64
- func (*SaveRoleMenuBtnReq) ProtoMessage()
- func (x *SaveRoleMenuBtnReq) ProtoReflect() protoreflect.Message
- func (x *SaveRoleMenuBtnReq) Reset()
- func (x *SaveRoleMenuBtnReq) String() string
- type SaveRoleMenuReq
- func (*SaveRoleMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRoleMenuReq) GetMenuIds() []int64
- func (x *SaveRoleMenuReq) GetRoleId() int64
- func (*SaveRoleMenuReq) ProtoMessage()
- func (x *SaveRoleMenuReq) ProtoReflect() protoreflect.Message
- func (x *SaveRoleMenuReq) Reset()
- func (x *SaveRoleMenuReq) String() string
- type SetRolesForUserReq
- func (*SetRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRolesForUserReq) GetRoles() []string
- func (x *SetRolesForUserReq) GetUsername() string
- func (*SetRolesForUserReq) ProtoMessage()
- func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *SetRolesForUserReq) Reset()
- func (x *SetRolesForUserReq) String() string
- type UnimplementedAuthorizationServiceServer
- func (UnimplementedAuthorizationServiceServer) CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) CreateApi(context.Context, *CreateApiReq) (*Api, error)
- func (UnimplementedAuthorizationServiceServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
- func (UnimplementedAuthorizationServiceServer) CreateRole(context.Context, *CreateRoleReq) (*Role, error)
- func (UnimplementedAuthorizationServiceServer) DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
- func (UnimplementedAuthorizationServiceServer) GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
- func (UnimplementedAuthorizationServiceServer) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
- func (UnimplementedAuthorizationServiceServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
- func (UnimplementedAuthorizationServiceServer) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
- func (UnimplementedAuthorizationServiceServer) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
- func (UnimplementedAuthorizationServiceServer) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
- func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
- func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
- func (UnimplementedAuthorizationServiceServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
- func (UnimplementedAuthorizationServiceServer) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
- func (UnimplementedAuthorizationServiceServer) SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServiceServer) UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
- type UnsafeAuthorizationServiceServer
- type UpdateApiReq
- func (*UpdateApiReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateApiReq) GetGroup() string
- func (x *UpdateApiReq) GetId() int64
- func (x *UpdateApiReq) GetMethod() string
- func (x *UpdateApiReq) GetName() string
- func (x *UpdateApiReq) GetPath() string
- func (*UpdateApiReq) ProtoMessage()
- func (x *UpdateApiReq) ProtoReflect() protoreflect.Message
- func (x *UpdateApiReq) Reset()
- func (x *UpdateApiReq) String() string
- type UpdateMenuReq
- func (*UpdateMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuReq) GetComponent() string
- func (x *UpdateMenuReq) GetHidden() bool
- func (x *UpdateMenuReq) GetIcon() string
- func (x *UpdateMenuReq) GetId() int64
- func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn
- func (x *UpdateMenuReq) GetName() string
- func (x *UpdateMenuReq) GetParentId() int64
- func (x *UpdateMenuReq) GetParentIds() string
- func (x *UpdateMenuReq) GetPath() string
- func (x *UpdateMenuReq) GetSort() int64
- func (x *UpdateMenuReq) GetTitle() string
- func (*UpdateMenuReq) ProtoMessage()
- func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuReq) Reset()
- func (x *UpdateMenuReq) String() string
- type UpdatePoliciesReq
- func (*UpdatePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules
- func (x *UpdatePoliciesReq) GetRole() string
- func (*UpdatePoliciesReq) ProtoMessage()
- func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePoliciesReq) Reset()
- func (x *UpdatePoliciesReq) String() string
- type UpdateRoleReq
- func (*UpdateRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleReq) GetId() int64
- func (x *UpdateRoleReq) GetName() string
- func (*UpdateRoleReq) ProtoMessage()
- func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleReq) Reset()
- func (x *UpdateRoleReq) String() string
Constants ¶
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" )
const OperationAuthorizationServiceCheckAuthorization = "/auth.v1.AuthorizationService/CheckAuthorization"
const OperationAuthorizationServiceCreateApi = "/auth.v1.AuthorizationService/CreateApi"
const OperationAuthorizationServiceCreateMenu = "/auth.v1.AuthorizationService/CreateMenu"
const OperationAuthorizationServiceCreateRole = "/auth.v1.AuthorizationService/CreateRole"
const OperationAuthorizationServiceDeleteApi = "/auth.v1.AuthorizationService/DeleteApi"
const OperationAuthorizationServiceDeleteMenu = "/auth.v1.AuthorizationService/DeleteMenu"
const OperationAuthorizationServiceDeleteRole = "/auth.v1.AuthorizationService/DeleteRole"
const OperationAuthorizationServiceDeleteRoleForUser = "/auth.v1.AuthorizationService/DeleteRoleForUser"
const OperationAuthorizationServiceDeleteRolesForUser = "/auth.v1.AuthorizationService/DeleteRolesForUser"
const OperationAuthorizationServiceGetApiList = "/auth.v1.AuthorizationService/GetApiList"
const OperationAuthorizationServiceGetApiListAll = "/auth.v1.AuthorizationService/GetApiListAll"
const OperationAuthorizationServiceGetMenuAll = "/auth.v1.AuthorizationService/GetMenuAll"
const OperationAuthorizationServiceGetMenuTree = "/auth.v1.AuthorizationService/GetMenuTree"
const OperationAuthorizationServiceGetPolicies = "/auth.v1.AuthorizationService/GetPolicies"
const OperationAuthorizationServiceGetRoleAll = "/auth.v1.AuthorizationService/GetRoleAll"
const OperationAuthorizationServiceGetRoleMenu = "/auth.v1.AuthorizationService/GetRoleMenu"
const OperationAuthorizationServiceGetRoleMenuBtn = "/auth.v1.AuthorizationService/GetRoleMenuBtn"
const OperationAuthorizationServiceGetRoleMenuTree = "/auth.v1.AuthorizationService/GetRoleMenuTree"
const OperationAuthorizationServiceGetRolesForUser = "/auth.v1.AuthorizationService/GetRolesForUser"
const OperationAuthorizationServiceGetUsersForRole = "/auth.v1.AuthorizationService/GetUsersForRole"
const OperationAuthorizationServiceSaveRoleMenu = "/auth.v1.AuthorizationService/SaveRoleMenu"
const OperationAuthorizationServiceSaveRoleMenuBtn = "/auth.v1.AuthorizationService/SaveRoleMenuBtn"
const OperationAuthorizationServiceSetRolesForUser = "/auth.v1.AuthorizationService/SetRolesForUser"
const OperationAuthorizationServiceUpdateApi = "/auth.v1.AuthorizationService/UpdateApi"
const OperationAuthorizationServiceUpdateMenu = "/auth.v1.AuthorizationService/UpdateMenu"
const OperationAuthorizationServiceUpdatePolicies = "/auth.v1.AuthorizationService/UpdatePolicies"
const OperationAuthorizationServiceUpdateRole = "/auth.v1.AuthorizationService/UpdateRole"
Variables ¶
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.
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)
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) GetCreatedAt ¶
func (*Api) GetUpdatedAt ¶
func (*Api) ProtoMessage ¶
func (*Api) ProtoMessage()
func (*Api) ProtoReflect ¶
func (x *Api) ProtoReflect() protoreflect.Message
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.
示例服务
func NewAuthorizationServiceClient ¶
func NewAuthorizationServiceClient(cc grpc.ClientConnInterface) AuthorizationServiceClient
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 (c *AuthorizationServiceHTTPClientImpl) CheckAuthorization(ctx context.Context, in *CheckAuthorizationReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) CreateApi ¶
func (c *AuthorizationServiceHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error)
func (*AuthorizationServiceHTTPClientImpl) CreateMenu ¶
func (c *AuthorizationServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
func (*AuthorizationServiceHTTPClientImpl) CreateRole ¶
func (c *AuthorizationServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error)
func (*AuthorizationServiceHTTPClientImpl) DeleteApi ¶
func (c *AuthorizationServiceHTTPClientImpl) DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) DeleteMenu ¶
func (c *AuthorizationServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) DeleteRole ¶
func (c *AuthorizationServiceHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) DeleteRoleForUser ¶
func (c *AuthorizationServiceHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) DeleteRolesForUser ¶
func (c *AuthorizationServiceHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) GetApiList ¶
func (c *AuthorizationServiceHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListPageRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetApiListAll ¶
func (c *AuthorizationServiceHTTPClientImpl) GetApiListAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiListAllRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetMenuAll ¶
func (c *AuthorizationServiceHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetMenuTree ¶
func (c *AuthorizationServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetPolicies ¶
func (c *AuthorizationServiceHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetRoleAll ¶
func (c *AuthorizationServiceHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetRoleMenu ¶
func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn ¶
func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetRoleMenuTree ¶
func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetRolesForUser ¶
func (c *AuthorizationServiceHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRes, error)
func (*AuthorizationServiceHTTPClientImpl) GetUsersForRole ¶
func (c *AuthorizationServiceHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error)
func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenu ¶
func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenu(ctx context.Context, in *SaveRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn ¶
func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) SetRolesForUser ¶
func (c *AuthorizationServiceHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) UpdateApi ¶
func (c *AuthorizationServiceHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) UpdateMenu ¶
func (c *AuthorizationServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) UpdatePolicies ¶
func (c *AuthorizationServiceHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthorizationServiceHTTPClientImpl) UpdateRole ¶
func (c *AuthorizationServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ErrorReason) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type Menu ¶
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
deprecated
func (*Menu) GetChildren ¶
func (*Menu) GetComponent ¶
func (*Menu) GetCreatedAt ¶
func (*Menu) GetMenuBtns ¶
func (*Menu) GetParentId ¶
func (*Menu) GetParentIds ¶
func (*Menu) GetUpdatedAt ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
type MenuBtn ¶
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
deprecated
func (*MenuBtn) GetCreatedAt ¶
func (*MenuBtn) GetDescription ¶
func (*MenuBtn) GetIdentifier ¶
func (*MenuBtn) GetUpdatedAt ¶
func (*MenuBtn) ProtoMessage ¶
func (*MenuBtn) ProtoMessage()
func (*MenuBtn) ProtoReflect ¶
func (x *MenuBtn) ProtoReflect() protoreflect.Message
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) GetCreatedAt ¶
func (*Role) GetUpdatedAt ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
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) CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) CreateApi ¶
func (UnimplementedAuthorizationServiceServer) CreateApi(context.Context, *CreateApiReq) (*Api, error)
func (UnimplementedAuthorizationServiceServer) CreateMenu ¶
func (UnimplementedAuthorizationServiceServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
func (UnimplementedAuthorizationServiceServer) CreateRole ¶
func (UnimplementedAuthorizationServiceServer) CreateRole(context.Context, *CreateRoleReq) (*Role, error)
func (UnimplementedAuthorizationServiceServer) DeleteApi ¶
func (UnimplementedAuthorizationServiceServer) DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) DeleteMenu ¶
func (UnimplementedAuthorizationServiceServer) DeleteRole ¶
func (UnimplementedAuthorizationServiceServer) DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser ¶
func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser ¶
func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) GetApiList ¶
func (UnimplementedAuthorizationServiceServer) GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error)
func (UnimplementedAuthorizationServiceServer) GetApiListAll ¶
func (UnimplementedAuthorizationServiceServer) GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error)
func (UnimplementedAuthorizationServiceServer) GetMenuAll ¶
func (UnimplementedAuthorizationServiceServer) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
func (UnimplementedAuthorizationServiceServer) GetMenuTree ¶
func (UnimplementedAuthorizationServiceServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
func (UnimplementedAuthorizationServiceServer) GetPolicies ¶
func (UnimplementedAuthorizationServiceServer) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
func (UnimplementedAuthorizationServiceServer) GetRoleAll ¶
func (UnimplementedAuthorizationServiceServer) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
func (UnimplementedAuthorizationServiceServer) GetRoleMenu ¶
func (UnimplementedAuthorizationServiceServer) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn ¶
func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree ¶
func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
func (UnimplementedAuthorizationServiceServer) GetRolesForUser ¶
func (UnimplementedAuthorizationServiceServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
func (UnimplementedAuthorizationServiceServer) GetUsersForRole ¶
func (UnimplementedAuthorizationServiceServer) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
func (UnimplementedAuthorizationServiceServer) SaveRoleMenu ¶
func (UnimplementedAuthorizationServiceServer) SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn ¶
func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) SetRolesForUser ¶
func (UnimplementedAuthorizationServiceServer) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) UpdateApi ¶
func (UnimplementedAuthorizationServiceServer) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) UpdateMenu ¶
func (UnimplementedAuthorizationServiceServer) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) UpdatePolicies ¶
func (UnimplementedAuthorizationServiceServer) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
func (UnimplementedAuthorizationServiceServer) UpdateRole ¶
func (UnimplementedAuthorizationServiceServer) UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
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