Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorBadRequest(format string, args ...interface{}) *errors.Error
- func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error
- func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error
- func ErrorSystemError(format string, args ...interface{}) *errors.Error
- func IsBadRequest(err error) bool
- func IsRecordAlreadyExists(err error) bool
- func IsRecordNotFound(err error) bool
- func IsSystemError(err error) bool
- 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
- func (m *Api) Validate() error
- func (m *Api) ValidateAll() error
- type ApiMultiError
- type ApiValidationError
- 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
- func (m *CheckAuthorizationReq) Validate() error
- func (m *CheckAuthorizationReq) ValidateAll() error
- type CheckAuthorizationReqMultiError
- type CheckAuthorizationReqValidationError
- func (e CheckAuthorizationReqValidationError) Cause() error
- func (e CheckAuthorizationReqValidationError) Error() string
- func (e CheckAuthorizationReqValidationError) ErrorName() string
- func (e CheckAuthorizationReqValidationError) Field() string
- func (e CheckAuthorizationReqValidationError) Key() bool
- func (e CheckAuthorizationReqValidationError) Reason() 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
- func (m *CreateApiReq) Validate() error
- func (m *CreateApiReq) ValidateAll() error
- type CreateApiReqMultiError
- type CreateApiReqValidationError
- func (e CreateApiReqValidationError) Cause() error
- func (e CreateApiReqValidationError) Error() string
- func (e CreateApiReqValidationError) ErrorName() string
- func (e CreateApiReqValidationError) Field() string
- func (e CreateApiReqValidationError) Key() bool
- func (e CreateApiReqValidationError) Reason() 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
- func (m *CreateMenuReq) Validate() error
- func (m *CreateMenuReq) ValidateAll() error
- type CreateMenuReqMultiError
- type CreateMenuReqValidationError
- func (e CreateMenuReqValidationError) Cause() error
- func (e CreateMenuReqValidationError) Error() string
- func (e CreateMenuReqValidationError) ErrorName() string
- func (e CreateMenuReqValidationError) Field() string
- func (e CreateMenuReqValidationError) Key() bool
- func (e CreateMenuReqValidationError) Reason() string
- type CreateRoleReq
- func (*CreateRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleReq) GetName() string
- func (*CreateRoleReq) ProtoMessage()
- func (x *CreateRoleReq) ProtoReflect() protoreflect.Message
- func (x *CreateRoleReq) Reset()
- func (x *CreateRoleReq) String() string
- func (m *CreateRoleReq) Validate() error
- func (m *CreateRoleReq) ValidateAll() error
- type CreateRoleReqMultiError
- type CreateRoleReqValidationError
- func (e CreateRoleReqValidationError) Cause() error
- func (e CreateRoleReqValidationError) Error() string
- func (e CreateRoleReqValidationError) ErrorName() string
- func (e CreateRoleReqValidationError) Field() string
- func (e CreateRoleReqValidationError) Key() bool
- func (e CreateRoleReqValidationError) Reason() string
- type DeleteApiReq
- func (*DeleteApiReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteApiReq) GetId() int64
- func (*DeleteApiReq) ProtoMessage()
- func (x *DeleteApiReq) ProtoReflect() protoreflect.Message
- func (x *DeleteApiReq) Reset()
- func (x *DeleteApiReq) String() string
- func (m *DeleteApiReq) Validate() error
- func (m *DeleteApiReq) ValidateAll() error
- type DeleteApiReqMultiError
- type DeleteApiReqValidationError
- func (e DeleteApiReqValidationError) Cause() error
- func (e DeleteApiReqValidationError) Error() string
- func (e DeleteApiReqValidationError) ErrorName() string
- func (e DeleteApiReqValidationError) Field() string
- func (e DeleteApiReqValidationError) Key() bool
- func (e DeleteApiReqValidationError) Reason() string
- 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
- func (m *DeleteRoleForUserReq) Validate() error
- func (m *DeleteRoleForUserReq) ValidateAll() error
- type DeleteRoleForUserReqMultiError
- type DeleteRoleForUserReqValidationError
- func (e DeleteRoleForUserReqValidationError) Cause() error
- func (e DeleteRoleForUserReqValidationError) Error() string
- func (e DeleteRoleForUserReqValidationError) ErrorName() string
- func (e DeleteRoleForUserReqValidationError) Field() string
- func (e DeleteRoleForUserReqValidationError) Key() bool
- func (e DeleteRoleForUserReqValidationError) Reason() string
- type DeleteRoleReq
- func (*DeleteRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleReq) GetId() int64
- func (*DeleteRoleReq) ProtoMessage()
- func (x *DeleteRoleReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleReq) Reset()
- func (x *DeleteRoleReq) String() string
- func (m *DeleteRoleReq) Validate() error
- func (m *DeleteRoleReq) ValidateAll() error
- type DeleteRoleReqMultiError
- type DeleteRoleReqValidationError
- func (e DeleteRoleReqValidationError) Cause() error
- func (e DeleteRoleReqValidationError) Error() string
- func (e DeleteRoleReqValidationError) ErrorName() string
- func (e DeleteRoleReqValidationError) Field() string
- func (e DeleteRoleReqValidationError) Key() bool
- func (e DeleteRoleReqValidationError) Reason() string
- 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
- func (m *DeleteRolesForUserReq) Validate() error
- func (m *DeleteRolesForUserReq) ValidateAll() error
- type DeleteRolesForUserReqMultiError
- type DeleteRolesForUserReqValidationError
- func (e DeleteRolesForUserReqValidationError) Cause() error
- func (e DeleteRolesForUserReqValidationError) Error() string
- func (e DeleteRolesForUserReqValidationError) ErrorName() string
- func (e DeleteRolesForUserReqValidationError) Field() string
- func (e DeleteRolesForUserReqValidationError) Key() bool
- func (e DeleteRolesForUserReqValidationError) Reason() 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
- func (*GetApiListAllRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiListAllRes) GetList() []*Api
- func (*GetApiListAllRes) ProtoMessage()
- func (x *GetApiListAllRes) ProtoReflect() protoreflect.Message
- func (x *GetApiListAllRes) Reset()
- func (x *GetApiListAllRes) String() string
- func (m *GetApiListAllRes) Validate() error
- func (m *GetApiListAllRes) ValidateAll() error
- type GetApiListAllResMultiError
- type GetApiListAllResValidationError
- func (e GetApiListAllResValidationError) Cause() error
- func (e GetApiListAllResValidationError) Error() string
- func (e GetApiListAllResValidationError) ErrorName() string
- func (e GetApiListAllResValidationError) Field() string
- func (e GetApiListAllResValidationError) Key() bool
- func (e GetApiListAllResValidationError) Reason() string
- 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
- func (m *GetApiListPageRes) Validate() error
- func (m *GetApiListPageRes) ValidateAll() error
- type GetApiListPageResMultiError
- type GetApiListPageResValidationError
- func (e GetApiListPageResValidationError) Cause() error
- func (e GetApiListPageResValidationError) Error() string
- func (e GetApiListPageResValidationError) ErrorName() string
- func (e GetApiListPageResValidationError) Field() string
- func (e GetApiListPageResValidationError) Key() bool
- func (e GetApiListPageResValidationError) Reason() 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
- func (m *GetApiListReq) Validate() error
- func (m *GetApiListReq) ValidateAll() error
- type GetApiListReqMultiError
- type GetApiListReqValidationError
- func (e GetApiListReqValidationError) Cause() error
- func (e GetApiListReqValidationError) Error() string
- func (e GetApiListReqValidationError) ErrorName() string
- func (e GetApiListReqValidationError) Field() string
- func (e GetApiListReqValidationError) Key() bool
- func (e GetApiListReqValidationError) Reason() string
- type GetMenuTreeRes
- func (*GetMenuTreeRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuTreeRes) GetList() []*Menu
- func (*GetMenuTreeRes) ProtoMessage()
- func (x *GetMenuTreeRes) ProtoReflect() protoreflect.Message
- func (x *GetMenuTreeRes) Reset()
- func (x *GetMenuTreeRes) String() string
- func (m *GetMenuTreeRes) Validate() error
- func (m *GetMenuTreeRes) ValidateAll() error
- type GetMenuTreeResMultiError
- type GetMenuTreeResValidationError
- func (e GetMenuTreeResValidationError) Cause() error
- func (e GetMenuTreeResValidationError) Error() string
- func (e GetMenuTreeResValidationError) ErrorName() string
- func (e GetMenuTreeResValidationError) Field() string
- func (e GetMenuTreeResValidationError) Key() bool
- func (e GetMenuTreeResValidationError) Reason() string
- type GetPoliciesRes
- func (*GetPoliciesRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules
- func (*GetPoliciesRes) ProtoMessage()
- func (x *GetPoliciesRes) ProtoReflect() protoreflect.Message
- func (x *GetPoliciesRes) Reset()
- func (x *GetPoliciesRes) String() string
- func (m *GetPoliciesRes) Validate() error
- func (m *GetPoliciesRes) ValidateAll() error
- type GetPoliciesResMultiError
- type GetPoliciesResValidationError
- func (e GetPoliciesResValidationError) Cause() error
- func (e GetPoliciesResValidationError) Error() string
- func (e GetPoliciesResValidationError) ErrorName() string
- func (e GetPoliciesResValidationError) Field() string
- func (e GetPoliciesResValidationError) Key() bool
- func (e GetPoliciesResValidationError) Reason() string
- type GetRoleAllRes
- func (*GetRoleAllRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleAllRes) GetList() []*Role
- func (*GetRoleAllRes) ProtoMessage()
- func (x *GetRoleAllRes) ProtoReflect() protoreflect.Message
- func (x *GetRoleAllRes) Reset()
- func (x *GetRoleAllRes) String() string
- func (m *GetRoleAllRes) Validate() error
- func (m *GetRoleAllRes) ValidateAll() error
- type GetRoleAllResMultiError
- type GetRoleAllResValidationError
- func (e GetRoleAllResValidationError) Cause() error
- func (e GetRoleAllResValidationError) Error() string
- func (e GetRoleAllResValidationError) ErrorName() string
- func (e GetRoleAllResValidationError) Field() string
- func (e GetRoleAllResValidationError) Key() bool
- func (e GetRoleAllResValidationError) Reason() string
- 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
- func (m *GetRoleListPageRes) Validate() error
- func (m *GetRoleListPageRes) ValidateAll() error
- type GetRoleListPageResMultiError
- type GetRoleListPageResValidationError
- func (e GetRoleListPageResValidationError) Cause() error
- func (e GetRoleListPageResValidationError) Error() string
- func (e GetRoleListPageResValidationError) ErrorName() string
- func (e GetRoleListPageResValidationError) Field() string
- func (e GetRoleListPageResValidationError) Key() bool
- func (e GetRoleListPageResValidationError) Reason() 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
- func (m *GetRoleListReq) Validate() error
- func (m *GetRoleListReq) ValidateAll() error
- type GetRoleListReqMultiError
- type GetRoleListReqValidationError
- func (e GetRoleListReqValidationError) Cause() error
- func (e GetRoleListReqValidationError) Error() string
- func (e GetRoleListReqValidationError) ErrorName() string
- func (e GetRoleListReqValidationError) Field() string
- func (e GetRoleListReqValidationError) Key() bool
- func (e GetRoleListReqValidationError) Reason() 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
- func (m *GetRoleMenuBtnReq) Validate() error
- func (m *GetRoleMenuBtnReq) ValidateAll() error
- type GetRoleMenuBtnReqMultiError
- type GetRoleMenuBtnReqValidationError
- func (e GetRoleMenuBtnReqValidationError) Cause() error
- func (e GetRoleMenuBtnReqValidationError) Error() string
- func (e GetRoleMenuBtnReqValidationError) ErrorName() string
- func (e GetRoleMenuBtnReqValidationError) Field() string
- func (e GetRoleMenuBtnReqValidationError) Key() bool
- func (e GetRoleMenuBtnReqValidationError) Reason() string
- type GetRoleMenuBtnRes
- func (*GetRoleMenuBtnRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn
- func (*GetRoleMenuBtnRes) ProtoMessage()
- func (x *GetRoleMenuBtnRes) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuBtnRes) Reset()
- func (x *GetRoleMenuBtnRes) String() string
- func (m *GetRoleMenuBtnRes) Validate() error
- func (m *GetRoleMenuBtnRes) ValidateAll() error
- type GetRoleMenuBtnResMultiError
- type GetRoleMenuBtnResValidationError
- func (e GetRoleMenuBtnResValidationError) Cause() error
- func (e GetRoleMenuBtnResValidationError) Error() string
- func (e GetRoleMenuBtnResValidationError) ErrorName() string
- func (e GetRoleMenuBtnResValidationError) Field() string
- func (e GetRoleMenuBtnResValidationError) Key() bool
- func (e GetRoleMenuBtnResValidationError) Reason() string
- 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
- func (m *GetRolesForUserReq) Validate() error
- func (m *GetRolesForUserReq) ValidateAll() error
- type GetRolesForUserReqMultiError
- type GetRolesForUserReqValidationError
- func (e GetRolesForUserReqValidationError) Cause() error
- func (e GetRolesForUserReqValidationError) Error() string
- func (e GetRolesForUserReqValidationError) ErrorName() string
- func (e GetRolesForUserReqValidationError) Field() string
- func (e GetRolesForUserReqValidationError) Key() bool
- func (e GetRolesForUserReqValidationError) Reason() 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
- func (m *GetRolesForUserRes) Validate() error
- func (m *GetRolesForUserRes) ValidateAll() error
- type GetRolesForUserResMultiError
- type GetRolesForUserResValidationError
- func (e GetRolesForUserResValidationError) Cause() error
- func (e GetRolesForUserResValidationError) Error() string
- func (e GetRolesForUserResValidationError) ErrorName() string
- func (e GetRolesForUserResValidationError) Field() string
- func (e GetRolesForUserResValidationError) Key() bool
- func (e GetRolesForUserResValidationError) Reason() 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
- func (m *GetUsersForRoleRes) Validate() error
- func (m *GetUsersForRoleRes) ValidateAll() error
- type GetUsersForRoleResMultiError
- type GetUsersForRoleResValidationError
- func (e GetUsersForRoleResValidationError) Cause() error
- func (e GetUsersForRoleResValidationError) Error() string
- func (e GetUsersForRoleResValidationError) ErrorName() string
- func (e GetUsersForRoleResValidationError) Field() string
- func (e GetUsersForRoleResValidationError) Key() bool
- func (e GetUsersForRoleResValidationError) Reason() string
- type IdReq
- type IdReqMultiError
- type IdReqValidationError
- 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
- func (m *Menu) Validate() error
- func (m *Menu) ValidateAll() error
- 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
- func (m *MenuBtn) Validate() error
- func (m *MenuBtn) ValidateAll() error
- type MenuBtnMultiError
- type MenuBtnValidationError
- type MenuMultiError
- type MenuValidationError
- type PolicyRules
- func (*PolicyRules) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRules) GetMethod() string
- func (x *PolicyRules) GetPath() string
- func (*PolicyRules) ProtoMessage()
- func (x *PolicyRules) ProtoReflect() protoreflect.Message
- func (x *PolicyRules) Reset()
- func (x *PolicyRules) String() string
- func (m *PolicyRules) Validate() error
- func (m *PolicyRules) ValidateAll() error
- type PolicyRulesMultiError
- type PolicyRulesValidationError
- func (e PolicyRulesValidationError) Cause() error
- func (e PolicyRulesValidationError) Error() string
- func (e PolicyRulesValidationError) ErrorName() string
- func (e PolicyRulesValidationError) Field() string
- func (e PolicyRulesValidationError) Key() bool
- func (e PolicyRulesValidationError) Reason() string
- 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
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleMultiError
- type RoleNameReq
- func (*RoleNameReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleNameReq) GetRole() string
- func (*RoleNameReq) ProtoMessage()
- func (x *RoleNameReq) ProtoReflect() protoreflect.Message
- func (x *RoleNameReq) Reset()
- func (x *RoleNameReq) String() string
- func (m *RoleNameReq) Validate() error
- func (m *RoleNameReq) ValidateAll() error
- type RoleNameReqMultiError
- type RoleNameReqValidationError
- func (e RoleNameReqValidationError) Cause() error
- func (e RoleNameReqValidationError) Error() string
- func (e RoleNameReqValidationError) ErrorName() string
- func (e RoleNameReqValidationError) Field() string
- func (e RoleNameReqValidationError) Key() bool
- func (e RoleNameReqValidationError) Reason() string
- type RoleValidationError
- 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
- func (m *SaveRoleMenuBtnReq) Validate() error
- func (m *SaveRoleMenuBtnReq) ValidateAll() error
- type SaveRoleMenuBtnReqMultiError
- type SaveRoleMenuBtnReqValidationError
- func (e SaveRoleMenuBtnReqValidationError) Cause() error
- func (e SaveRoleMenuBtnReqValidationError) Error() string
- func (e SaveRoleMenuBtnReqValidationError) ErrorName() string
- func (e SaveRoleMenuBtnReqValidationError) Field() string
- func (e SaveRoleMenuBtnReqValidationError) Key() bool
- func (e SaveRoleMenuBtnReqValidationError) Reason() 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
- func (m *SaveRoleMenuReq) Validate() error
- func (m *SaveRoleMenuReq) ValidateAll() error
- type SaveRoleMenuReqMultiError
- type SaveRoleMenuReqValidationError
- func (e SaveRoleMenuReqValidationError) Cause() error
- func (e SaveRoleMenuReqValidationError) Error() string
- func (e SaveRoleMenuReqValidationError) ErrorName() string
- func (e SaveRoleMenuReqValidationError) Field() string
- func (e SaveRoleMenuReqValidationError) Key() bool
- func (e SaveRoleMenuReqValidationError) Reason() 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
- func (m *SetRolesForUserReq) Validate() error
- func (m *SetRolesForUserReq) ValidateAll() error
- type SetRolesForUserReqMultiError
- type SetRolesForUserReqValidationError
- func (e SetRolesForUserReqValidationError) Cause() error
- func (e SetRolesForUserReqValidationError) Error() string
- func (e SetRolesForUserReqValidationError) ErrorName() string
- func (e SetRolesForUserReqValidationError) Field() string
- func (e SetRolesForUserReqValidationError) Key() bool
- func (e SetRolesForUserReqValidationError) Reason() 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
- func (m *UpdateApiReq) Validate() error
- func (m *UpdateApiReq) ValidateAll() error
- type UpdateApiReqMultiError
- type UpdateApiReqValidationError
- func (e UpdateApiReqValidationError) Cause() error
- func (e UpdateApiReqValidationError) Error() string
- func (e UpdateApiReqValidationError) ErrorName() string
- func (e UpdateApiReqValidationError) Field() string
- func (e UpdateApiReqValidationError) Key() bool
- func (e UpdateApiReqValidationError) Reason() 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
- func (m *UpdateMenuReq) Validate() error
- func (m *UpdateMenuReq) ValidateAll() error
- type UpdateMenuReqMultiError
- type UpdateMenuReqValidationError
- func (e UpdateMenuReqValidationError) Cause() error
- func (e UpdateMenuReqValidationError) Error() string
- func (e UpdateMenuReqValidationError) ErrorName() string
- func (e UpdateMenuReqValidationError) Field() string
- func (e UpdateMenuReqValidationError) Key() bool
- func (e UpdateMenuReqValidationError) Reason() 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
- func (m *UpdatePoliciesReq) Validate() error
- func (m *UpdatePoliciesReq) ValidateAll() error
- type UpdatePoliciesReqMultiError
- type UpdatePoliciesReqValidationError
- func (e UpdatePoliciesReqValidationError) Cause() error
- func (e UpdatePoliciesReqValidationError) Error() string
- func (e UpdatePoliciesReqValidationError) ErrorName() string
- func (e UpdatePoliciesReqValidationError) Field() string
- func (e UpdatePoliciesReqValidationError) Key() bool
- func (e UpdatePoliciesReqValidationError) Reason() 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
- func (m *UpdateRoleReq) Validate() error
- func (m *UpdateRoleReq) ValidateAll() error
- type UpdateRoleReqMultiError
- type UpdateRoleReqValidationError
- func (e UpdateRoleReqValidationError) Cause() error
- func (e UpdateRoleReqValidationError) Error() string
- func (e UpdateRoleReqValidationError) ErrorName() string
- func (e UpdateRoleReqValidationError) Field() string
- func (e UpdateRoleReqValidationError) Key() bool
- func (e UpdateRoleReqValidationError) Reason() string
Constants ¶
const ( AuthorizationService_CheckAuthorization_FullMethodName = "/authorization.v1.AuthorizationService/CheckAuthorization" AuthorizationService_GetRoleAll_FullMethodName = "/authorization.v1.AuthorizationService/GetRoleAll" AuthorizationService_CreateRole_FullMethodName = "/authorization.v1.AuthorizationService/CreateRole" AuthorizationService_UpdateRole_FullMethodName = "/authorization.v1.AuthorizationService/UpdateRole" AuthorizationService_DeleteRole_FullMethodName = "/authorization.v1.AuthorizationService/DeleteRole" AuthorizationService_GetRolesForUser_FullMethodName = "/authorization.v1.AuthorizationService/GetRolesForUser" AuthorizationService_GetUsersForRole_FullMethodName = "/authorization.v1.AuthorizationService/GetUsersForRole" AuthorizationService_SetRolesForUser_FullMethodName = "/authorization.v1.AuthorizationService/SetRolesForUser" AuthorizationService_DeleteRoleForUser_FullMethodName = "/authorization.v1.AuthorizationService/DeleteRoleForUser" AuthorizationService_DeleteRolesForUser_FullMethodName = "/authorization.v1.AuthorizationService/DeleteRolesForUser" AuthorizationService_GetPolicies_FullMethodName = "/authorization.v1.AuthorizationService/GetPolicies" AuthorizationService_UpdatePolicies_FullMethodName = "/authorization.v1.AuthorizationService/UpdatePolicies" AuthorizationService_GetApiListAll_FullMethodName = "/authorization.v1.AuthorizationService/GetApiListAll" AuthorizationService_GetApiList_FullMethodName = "/authorization.v1.AuthorizationService/GetApiList" AuthorizationService_CreateApi_FullMethodName = "/authorization.v1.AuthorizationService/CreateApi" AuthorizationService_UpdateApi_FullMethodName = "/authorization.v1.AuthorizationService/UpdateApi" AuthorizationService_DeleteApi_FullMethodName = "/authorization.v1.AuthorizationService/DeleteApi" AuthorizationService_GetMenuAll_FullMethodName = "/authorization.v1.AuthorizationService/GetMenuAll" AuthorizationService_GetMenuTree_FullMethodName = "/authorization.v1.AuthorizationService/GetMenuTree" AuthorizationService_CreateMenu_FullMethodName = "/authorization.v1.AuthorizationService/CreateMenu" AuthorizationService_UpdateMenu_FullMethodName = "/authorization.v1.AuthorizationService/UpdateMenu" AuthorizationService_DeleteMenu_FullMethodName = "/authorization.v1.AuthorizationService/DeleteMenu" AuthorizationService_GetRoleMenuTree_FullMethodName = "/authorization.v1.AuthorizationService/GetRoleMenuTree" AuthorizationService_GetRoleMenu_FullMethodName = "/authorization.v1.AuthorizationService/GetRoleMenu" AuthorizationService_SaveRoleMenu_FullMethodName = "/authorization.v1.AuthorizationService/SaveRoleMenu" AuthorizationService_GetRoleMenuBtn_FullMethodName = "/authorization.v1.AuthorizationService/GetRoleMenuBtn" AuthorizationService_SaveRoleMenuBtn_FullMethodName = "/authorization.v1.AuthorizationService/SaveRoleMenuBtn" )
const OperationAuthorizationServiceCheckAuthorization = "/authorization.v1.AuthorizationService/CheckAuthorization"
const OperationAuthorizationServiceCreateApi = "/authorization.v1.AuthorizationService/CreateApi"
const OperationAuthorizationServiceCreateMenu = "/authorization.v1.AuthorizationService/CreateMenu"
const OperationAuthorizationServiceCreateRole = "/authorization.v1.AuthorizationService/CreateRole"
const OperationAuthorizationServiceDeleteApi = "/authorization.v1.AuthorizationService/DeleteApi"
const OperationAuthorizationServiceDeleteMenu = "/authorization.v1.AuthorizationService/DeleteMenu"
const OperationAuthorizationServiceDeleteRole = "/authorization.v1.AuthorizationService/DeleteRole"
const OperationAuthorizationServiceDeleteRoleForUser = "/authorization.v1.AuthorizationService/DeleteRoleForUser"
const OperationAuthorizationServiceDeleteRolesForUser = "/authorization.v1.AuthorizationService/DeleteRolesForUser"
const OperationAuthorizationServiceGetApiList = "/authorization.v1.AuthorizationService/GetApiList"
const OperationAuthorizationServiceGetApiListAll = "/authorization.v1.AuthorizationService/GetApiListAll"
const OperationAuthorizationServiceGetMenuAll = "/authorization.v1.AuthorizationService/GetMenuAll"
const OperationAuthorizationServiceGetMenuTree = "/authorization.v1.AuthorizationService/GetMenuTree"
const OperationAuthorizationServiceGetPolicies = "/authorization.v1.AuthorizationService/GetPolicies"
const OperationAuthorizationServiceGetRoleAll = "/authorization.v1.AuthorizationService/GetRoleAll"
const OperationAuthorizationServiceGetRoleMenu = "/authorization.v1.AuthorizationService/GetRoleMenu"
const OperationAuthorizationServiceGetRoleMenuBtn = "/authorization.v1.AuthorizationService/GetRoleMenuBtn"
const OperationAuthorizationServiceGetRoleMenuTree = "/authorization.v1.AuthorizationService/GetRoleMenuTree"
const OperationAuthorizationServiceGetRolesForUser = "/authorization.v1.AuthorizationService/GetRolesForUser"
const OperationAuthorizationServiceGetUsersForRole = "/authorization.v1.AuthorizationService/GetUsersForRole"
const OperationAuthorizationServiceSaveRoleMenu = "/authorization.v1.AuthorizationService/SaveRoleMenu"
const OperationAuthorizationServiceSaveRoleMenuBtn = "/authorization.v1.AuthorizationService/SaveRoleMenuBtn"
const OperationAuthorizationServiceSetRolesForUser = "/authorization.v1.AuthorizationService/SetRolesForUser"
const OperationAuthorizationServiceUpdateApi = "/authorization.v1.AuthorizationService/UpdateApi"
const OperationAuthorizationServiceUpdateMenu = "/authorization.v1.AuthorizationService/UpdateMenu"
const OperationAuthorizationServiceUpdatePolicies = "/authorization.v1.AuthorizationService/UpdatePolicies"
const OperationAuthorizationServiceUpdateRole = "/authorization.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: "authorization.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: "authorization/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)
Functions ¶
func ErrorBadRequest ¶
func ErrorRecordNotFound ¶
func ErrorSystemError ¶
func IsBadRequest ¶
func IsRecordAlreadyExists ¶
func IsRecordNotFound ¶
func IsSystemError ¶
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
func (*Api) Validate ¶
Validate checks the field values on Api with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Api) ValidateAll ¶
ValidateAll checks the field values on Api with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApiMultiError, or nil if none found.
type ApiMultiError ¶
type ApiMultiError []error
ApiMultiError is an error wrapping multiple validation errors returned by Api.ValidateAll() if the designated constraints aren't met.
func (ApiMultiError) AllErrors ¶
func (m ApiMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApiMultiError) Error ¶
func (m ApiMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApiValidationError ¶
type ApiValidationError struct {
// contains filtered or unexported fields
}
ApiValidationError is the validation error returned by Api.Validate if the designated constraints aren't met.
func (ApiValidationError) Cause ¶
func (e ApiValidationError) Cause() error
Cause function returns cause value.
func (ApiValidationError) Error ¶
func (e ApiValidationError) Error() string
Error satisfies the builtin error interface
func (ApiValidationError) ErrorName ¶
func (e ApiValidationError) ErrorName() string
ErrorName returns error name.
func (ApiValidationError) Field ¶
func (e ApiValidationError) Field() string
Field function returns field value.
func (ApiValidationError) Key ¶
func (e ApiValidationError) Key() bool
Key function returns key value.
func (ApiValidationError) Reason ¶
func (e ApiValidationError) Reason() string
Reason function returns reason value.
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(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error) CreateApi(context.Context, *CreateApiReq) (*Api, error) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) CreateRole(context.Context, *CreateRoleReq) (*Role, error) DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error) DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error) DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error) GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error) SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) 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
func (*CheckAuthorizationReq) Validate ¶
func (m *CheckAuthorizationReq) Validate() error
Validate checks the field values on CheckAuthorizationReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckAuthorizationReq) ValidateAll ¶
func (m *CheckAuthorizationReq) ValidateAll() error
ValidateAll checks the field values on CheckAuthorizationReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckAuthorizationReqMultiError, or nil if none found.
type CheckAuthorizationReqMultiError ¶
type CheckAuthorizationReqMultiError []error
CheckAuthorizationReqMultiError is an error wrapping multiple validation errors returned by CheckAuthorizationReq.ValidateAll() if the designated constraints aren't met.
func (CheckAuthorizationReqMultiError) AllErrors ¶
func (m CheckAuthorizationReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckAuthorizationReqMultiError) Error ¶
func (m CheckAuthorizationReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckAuthorizationReqValidationError ¶
type CheckAuthorizationReqValidationError struct {
// contains filtered or unexported fields
}
CheckAuthorizationReqValidationError is the validation error returned by CheckAuthorizationReq.Validate if the designated constraints aren't met.
func (CheckAuthorizationReqValidationError) Cause ¶
func (e CheckAuthorizationReqValidationError) Cause() error
Cause function returns cause value.
func (CheckAuthorizationReqValidationError) Error ¶
func (e CheckAuthorizationReqValidationError) Error() string
Error satisfies the builtin error interface
func (CheckAuthorizationReqValidationError) ErrorName ¶
func (e CheckAuthorizationReqValidationError) ErrorName() string
ErrorName returns error name.
func (CheckAuthorizationReqValidationError) Field ¶
func (e CheckAuthorizationReqValidationError) Field() string
Field function returns field value.
func (CheckAuthorizationReqValidationError) Key ¶
func (e CheckAuthorizationReqValidationError) Key() bool
Key function returns key value.
func (CheckAuthorizationReqValidationError) Reason ¶
func (e CheckAuthorizationReqValidationError) Reason() string
Reason function returns reason value.
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
func (*CreateApiReq) Validate ¶
func (m *CreateApiReq) Validate() error
Validate checks the field values on CreateApiReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateApiReq) ValidateAll ¶
func (m *CreateApiReq) ValidateAll() error
ValidateAll checks the field values on CreateApiReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateApiReqMultiError, or nil if none found.
type CreateApiReqMultiError ¶
type CreateApiReqMultiError []error
CreateApiReqMultiError is an error wrapping multiple validation errors returned by CreateApiReq.ValidateAll() if the designated constraints aren't met.
func (CreateApiReqMultiError) AllErrors ¶
func (m CreateApiReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateApiReqMultiError) Error ¶
func (m CreateApiReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateApiReqValidationError ¶
type CreateApiReqValidationError struct {
// contains filtered or unexported fields
}
CreateApiReqValidationError is the validation error returned by CreateApiReq.Validate if the designated constraints aren't met.
func (CreateApiReqValidationError) Cause ¶
func (e CreateApiReqValidationError) Cause() error
Cause function returns cause value.
func (CreateApiReqValidationError) Error ¶
func (e CreateApiReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateApiReqValidationError) ErrorName ¶
func (e CreateApiReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateApiReqValidationError) Field ¶
func (e CreateApiReqValidationError) Field() string
Field function returns field value.
func (CreateApiReqValidationError) Key ¶
func (e CreateApiReqValidationError) Key() bool
Key function returns key value.
func (CreateApiReqValidationError) Reason ¶
func (e CreateApiReqValidationError) Reason() string
Reason function returns reason value.
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
func (*CreateMenuReq) Validate ¶
func (m *CreateMenuReq) Validate() error
Validate checks the field values on CreateMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateMenuReq) ValidateAll ¶
func (m *CreateMenuReq) ValidateAll() error
ValidateAll checks the field values on CreateMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateMenuReqMultiError, or nil if none found.
type CreateMenuReqMultiError ¶
type CreateMenuReqMultiError []error
CreateMenuReqMultiError is an error wrapping multiple validation errors returned by CreateMenuReq.ValidateAll() if the designated constraints aren't met.
func (CreateMenuReqMultiError) AllErrors ¶
func (m CreateMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuReqMultiError) Error ¶
func (m CreateMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuReqValidationError ¶
type CreateMenuReqValidationError struct {
// contains filtered or unexported fields
}
CreateMenuReqValidationError is the validation error returned by CreateMenuReq.Validate if the designated constraints aren't met.
func (CreateMenuReqValidationError) Cause ¶
func (e CreateMenuReqValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuReqValidationError) Error ¶
func (e CreateMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuReqValidationError) ErrorName ¶
func (e CreateMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuReqValidationError) Field ¶
func (e CreateMenuReqValidationError) Field() string
Field function returns field value.
func (CreateMenuReqValidationError) Key ¶
func (e CreateMenuReqValidationError) Key() bool
Key function returns key value.
func (CreateMenuReqValidationError) Reason ¶
func (e CreateMenuReqValidationError) Reason() string
Reason function returns reason value.
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
func (*CreateRoleReq) Validate ¶
func (m *CreateRoleReq) Validate() error
Validate checks the field values on CreateRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateRoleReq) ValidateAll ¶
func (m *CreateRoleReq) ValidateAll() error
ValidateAll checks the field values on CreateRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleReqMultiError, or nil if none found.
type CreateRoleReqMultiError ¶
type CreateRoleReqMultiError []error
CreateRoleReqMultiError is an error wrapping multiple validation errors returned by CreateRoleReq.ValidateAll() if the designated constraints aren't met.
func (CreateRoleReqMultiError) AllErrors ¶
func (m CreateRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleReqMultiError) Error ¶
func (m CreateRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleReqValidationError ¶
type CreateRoleReqValidationError struct {
// contains filtered or unexported fields
}
CreateRoleReqValidationError is the validation error returned by CreateRoleReq.Validate if the designated constraints aren't met.
func (CreateRoleReqValidationError) Cause ¶
func (e CreateRoleReqValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleReqValidationError) Error ¶
func (e CreateRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleReqValidationError) ErrorName ¶
func (e CreateRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleReqValidationError) Field ¶
func (e CreateRoleReqValidationError) Field() string
Field function returns field value.
func (CreateRoleReqValidationError) Key ¶
func (e CreateRoleReqValidationError) Key() bool
Key function returns key value.
func (CreateRoleReqValidationError) Reason ¶
func (e CreateRoleReqValidationError) Reason() string
Reason function returns reason value.
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
func (*DeleteApiReq) Validate ¶
func (m *DeleteApiReq) Validate() error
Validate checks the field values on DeleteApiReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteApiReq) ValidateAll ¶
func (m *DeleteApiReq) ValidateAll() error
ValidateAll checks the field values on DeleteApiReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteApiReqMultiError, or nil if none found.
type DeleteApiReqMultiError ¶
type DeleteApiReqMultiError []error
DeleteApiReqMultiError is an error wrapping multiple validation errors returned by DeleteApiReq.ValidateAll() if the designated constraints aren't met.
func (DeleteApiReqMultiError) AllErrors ¶
func (m DeleteApiReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteApiReqMultiError) Error ¶
func (m DeleteApiReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteApiReqValidationError ¶
type DeleteApiReqValidationError struct {
// contains filtered or unexported fields
}
DeleteApiReqValidationError is the validation error returned by DeleteApiReq.Validate if the designated constraints aren't met.
func (DeleteApiReqValidationError) Cause ¶
func (e DeleteApiReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteApiReqValidationError) Error ¶
func (e DeleteApiReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteApiReqValidationError) ErrorName ¶
func (e DeleteApiReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteApiReqValidationError) Field ¶
func (e DeleteApiReqValidationError) Field() string
Field function returns field value.
func (DeleteApiReqValidationError) Key ¶
func (e DeleteApiReqValidationError) Key() bool
Key function returns key value.
func (DeleteApiReqValidationError) Reason ¶
func (e DeleteApiReqValidationError) Reason() string
Reason function returns reason value.
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
func (*DeleteRoleForUserReq) Validate ¶
func (m *DeleteRoleForUserReq) Validate() error
Validate checks the field values on DeleteRoleForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRoleForUserReq) ValidateAll ¶
func (m *DeleteRoleForUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteRoleForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleForUserReqMultiError, or nil if none found.
type DeleteRoleForUserReqMultiError ¶
type DeleteRoleForUserReqMultiError []error
DeleteRoleForUserReqMultiError is an error wrapping multiple validation errors returned by DeleteRoleForUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleForUserReqMultiError) AllErrors ¶
func (m DeleteRoleForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleForUserReqMultiError) Error ¶
func (m DeleteRoleForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleForUserReqValidationError ¶
type DeleteRoleForUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleForUserReqValidationError is the validation error returned by DeleteRoleForUserReq.Validate if the designated constraints aren't met.
func (DeleteRoleForUserReqValidationError) Cause ¶
func (e DeleteRoleForUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleForUserReqValidationError) Error ¶
func (e DeleteRoleForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleForUserReqValidationError) ErrorName ¶
func (e DeleteRoleForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleForUserReqValidationError) Field ¶
func (e DeleteRoleForUserReqValidationError) Field() string
Field function returns field value.
func (DeleteRoleForUserReqValidationError) Key ¶
func (e DeleteRoleForUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteRoleForUserReqValidationError) Reason ¶
func (e DeleteRoleForUserReqValidationError) Reason() string
Reason function returns reason value.
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
func (*DeleteRoleReq) Validate ¶
func (m *DeleteRoleReq) Validate() error
Validate checks the field values on DeleteRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRoleReq) ValidateAll ¶
func (m *DeleteRoleReq) ValidateAll() error
ValidateAll checks the field values on DeleteRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleReqMultiError, or nil if none found.
type DeleteRoleReqMultiError ¶
type DeleteRoleReqMultiError []error
DeleteRoleReqMultiError is an error wrapping multiple validation errors returned by DeleteRoleReq.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleReqMultiError) AllErrors ¶
func (m DeleteRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleReqMultiError) Error ¶
func (m DeleteRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleReqValidationError ¶
type DeleteRoleReqValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleReqValidationError is the validation error returned by DeleteRoleReq.Validate if the designated constraints aren't met.
func (DeleteRoleReqValidationError) Cause ¶
func (e DeleteRoleReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleReqValidationError) Error ¶
func (e DeleteRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleReqValidationError) ErrorName ¶
func (e DeleteRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleReqValidationError) Field ¶
func (e DeleteRoleReqValidationError) Field() string
Field function returns field value.
func (DeleteRoleReqValidationError) Key ¶
func (e DeleteRoleReqValidationError) Key() bool
Key function returns key value.
func (DeleteRoleReqValidationError) Reason ¶
func (e DeleteRoleReqValidationError) Reason() string
Reason function returns reason value.
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
func (*DeleteRolesForUserReq) Validate ¶
func (m *DeleteRolesForUserReq) Validate() error
Validate checks the field values on DeleteRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRolesForUserReq) ValidateAll ¶
func (m *DeleteRolesForUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRolesForUserReqMultiError, or nil if none found.
type DeleteRolesForUserReqMultiError ¶
type DeleteRolesForUserReqMultiError []error
DeleteRolesForUserReqMultiError is an error wrapping multiple validation errors returned by DeleteRolesForUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteRolesForUserReqMultiError) AllErrors ¶
func (m DeleteRolesForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRolesForUserReqMultiError) Error ¶
func (m DeleteRolesForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRolesForUserReqValidationError ¶
type DeleteRolesForUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteRolesForUserReqValidationError is the validation error returned by DeleteRolesForUserReq.Validate if the designated constraints aren't met.
func (DeleteRolesForUserReqValidationError) Cause ¶
func (e DeleteRolesForUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteRolesForUserReqValidationError) Error ¶
func (e DeleteRolesForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRolesForUserReqValidationError) ErrorName ¶
func (e DeleteRolesForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRolesForUserReqValidationError) Field ¶
func (e DeleteRolesForUserReqValidationError) Field() string
Field function returns field value.
func (DeleteRolesForUserReqValidationError) Key ¶
func (e DeleteRolesForUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteRolesForUserReqValidationError) Reason ¶
func (e DeleteRolesForUserReqValidationError) Reason() string
Reason function returns reason value.
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
func (*GetApiListAllRes) Validate ¶
func (m *GetApiListAllRes) Validate() error
Validate checks the field values on GetApiListAllRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetApiListAllRes) ValidateAll ¶
func (m *GetApiListAllRes) ValidateAll() error
ValidateAll checks the field values on GetApiListAllRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetApiListAllResMultiError, or nil if none found.
type GetApiListAllResMultiError ¶
type GetApiListAllResMultiError []error
GetApiListAllResMultiError is an error wrapping multiple validation errors returned by GetApiListAllRes.ValidateAll() if the designated constraints aren't met.
func (GetApiListAllResMultiError) AllErrors ¶
func (m GetApiListAllResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetApiListAllResMultiError) Error ¶
func (m GetApiListAllResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetApiListAllResValidationError ¶
type GetApiListAllResValidationError struct {
// contains filtered or unexported fields
}
GetApiListAllResValidationError is the validation error returned by GetApiListAllRes.Validate if the designated constraints aren't met.
func (GetApiListAllResValidationError) Cause ¶
func (e GetApiListAllResValidationError) Cause() error
Cause function returns cause value.
func (GetApiListAllResValidationError) Error ¶
func (e GetApiListAllResValidationError) Error() string
Error satisfies the builtin error interface
func (GetApiListAllResValidationError) ErrorName ¶
func (e GetApiListAllResValidationError) ErrorName() string
ErrorName returns error name.
func (GetApiListAllResValidationError) Field ¶
func (e GetApiListAllResValidationError) Field() string
Field function returns field value.
func (GetApiListAllResValidationError) Key ¶
func (e GetApiListAllResValidationError) Key() bool
Key function returns key value.
func (GetApiListAllResValidationError) Reason ¶
func (e GetApiListAllResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetApiListPageRes) Validate ¶
func (m *GetApiListPageRes) Validate() error
Validate checks the field values on GetApiListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetApiListPageRes) ValidateAll ¶
func (m *GetApiListPageRes) ValidateAll() error
ValidateAll checks the field values on GetApiListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetApiListPageResMultiError, or nil if none found.
type GetApiListPageResMultiError ¶
type GetApiListPageResMultiError []error
GetApiListPageResMultiError is an error wrapping multiple validation errors returned by GetApiListPageRes.ValidateAll() if the designated constraints aren't met.
func (GetApiListPageResMultiError) AllErrors ¶
func (m GetApiListPageResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetApiListPageResMultiError) Error ¶
func (m GetApiListPageResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetApiListPageResValidationError ¶
type GetApiListPageResValidationError struct {
// contains filtered or unexported fields
}
GetApiListPageResValidationError is the validation error returned by GetApiListPageRes.Validate if the designated constraints aren't met.
func (GetApiListPageResValidationError) Cause ¶
func (e GetApiListPageResValidationError) Cause() error
Cause function returns cause value.
func (GetApiListPageResValidationError) Error ¶
func (e GetApiListPageResValidationError) Error() string
Error satisfies the builtin error interface
func (GetApiListPageResValidationError) ErrorName ¶
func (e GetApiListPageResValidationError) ErrorName() string
ErrorName returns error name.
func (GetApiListPageResValidationError) Field ¶
func (e GetApiListPageResValidationError) Field() string
Field function returns field value.
func (GetApiListPageResValidationError) Key ¶
func (e GetApiListPageResValidationError) Key() bool
Key function returns key value.
func (GetApiListPageResValidationError) Reason ¶
func (e GetApiListPageResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetApiListReq) Validate ¶
func (m *GetApiListReq) Validate() error
Validate checks the field values on GetApiListReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetApiListReq) ValidateAll ¶
func (m *GetApiListReq) ValidateAll() error
ValidateAll checks the field values on GetApiListReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetApiListReqMultiError, or nil if none found.
type GetApiListReqMultiError ¶
type GetApiListReqMultiError []error
GetApiListReqMultiError is an error wrapping multiple validation errors returned by GetApiListReq.ValidateAll() if the designated constraints aren't met.
func (GetApiListReqMultiError) AllErrors ¶
func (m GetApiListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetApiListReqMultiError) Error ¶
func (m GetApiListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetApiListReqValidationError ¶
type GetApiListReqValidationError struct {
// contains filtered or unexported fields
}
GetApiListReqValidationError is the validation error returned by GetApiListReq.Validate if the designated constraints aren't met.
func (GetApiListReqValidationError) Cause ¶
func (e GetApiListReqValidationError) Cause() error
Cause function returns cause value.
func (GetApiListReqValidationError) Error ¶
func (e GetApiListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetApiListReqValidationError) ErrorName ¶
func (e GetApiListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetApiListReqValidationError) Field ¶
func (e GetApiListReqValidationError) Field() string
Field function returns field value.
func (GetApiListReqValidationError) Key ¶
func (e GetApiListReqValidationError) Key() bool
Key function returns key value.
func (GetApiListReqValidationError) Reason ¶
func (e GetApiListReqValidationError) Reason() string
Reason function returns reason value.
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
func (*GetMenuTreeRes) Validate ¶
func (m *GetMenuTreeRes) Validate() error
Validate checks the field values on GetMenuTreeRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetMenuTreeRes) ValidateAll ¶
func (m *GetMenuTreeRes) ValidateAll() error
ValidateAll checks the field values on GetMenuTreeRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetMenuTreeResMultiError, or nil if none found.
type GetMenuTreeResMultiError ¶
type GetMenuTreeResMultiError []error
GetMenuTreeResMultiError is an error wrapping multiple validation errors returned by GetMenuTreeRes.ValidateAll() if the designated constraints aren't met.
func (GetMenuTreeResMultiError) AllErrors ¶
func (m GetMenuTreeResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMenuTreeResMultiError) Error ¶
func (m GetMenuTreeResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMenuTreeResValidationError ¶
type GetMenuTreeResValidationError struct {
// contains filtered or unexported fields
}
GetMenuTreeResValidationError is the validation error returned by GetMenuTreeRes.Validate if the designated constraints aren't met.
func (GetMenuTreeResValidationError) Cause ¶
func (e GetMenuTreeResValidationError) Cause() error
Cause function returns cause value.
func (GetMenuTreeResValidationError) Error ¶
func (e GetMenuTreeResValidationError) Error() string
Error satisfies the builtin error interface
func (GetMenuTreeResValidationError) ErrorName ¶
func (e GetMenuTreeResValidationError) ErrorName() string
ErrorName returns error name.
func (GetMenuTreeResValidationError) Field ¶
func (e GetMenuTreeResValidationError) Field() string
Field function returns field value.
func (GetMenuTreeResValidationError) Key ¶
func (e GetMenuTreeResValidationError) Key() bool
Key function returns key value.
func (GetMenuTreeResValidationError) Reason ¶
func (e GetMenuTreeResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetPoliciesRes) Validate ¶
func (m *GetPoliciesRes) Validate() error
Validate checks the field values on GetPoliciesRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetPoliciesRes) ValidateAll ¶
func (m *GetPoliciesRes) ValidateAll() error
ValidateAll checks the field values on GetPoliciesRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetPoliciesResMultiError, or nil if none found.
type GetPoliciesResMultiError ¶
type GetPoliciesResMultiError []error
GetPoliciesResMultiError is an error wrapping multiple validation errors returned by GetPoliciesRes.ValidateAll() if the designated constraints aren't met.
func (GetPoliciesResMultiError) AllErrors ¶
func (m GetPoliciesResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPoliciesResMultiError) Error ¶
func (m GetPoliciesResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPoliciesResValidationError ¶
type GetPoliciesResValidationError struct {
// contains filtered or unexported fields
}
GetPoliciesResValidationError is the validation error returned by GetPoliciesRes.Validate if the designated constraints aren't met.
func (GetPoliciesResValidationError) Cause ¶
func (e GetPoliciesResValidationError) Cause() error
Cause function returns cause value.
func (GetPoliciesResValidationError) Error ¶
func (e GetPoliciesResValidationError) Error() string
Error satisfies the builtin error interface
func (GetPoliciesResValidationError) ErrorName ¶
func (e GetPoliciesResValidationError) ErrorName() string
ErrorName returns error name.
func (GetPoliciesResValidationError) Field ¶
func (e GetPoliciesResValidationError) Field() string
Field function returns field value.
func (GetPoliciesResValidationError) Key ¶
func (e GetPoliciesResValidationError) Key() bool
Key function returns key value.
func (GetPoliciesResValidationError) Reason ¶
func (e GetPoliciesResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRoleAllRes) Validate ¶
func (m *GetRoleAllRes) Validate() error
Validate checks the field values on GetRoleAllRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleAllRes) ValidateAll ¶
func (m *GetRoleAllRes) ValidateAll() error
ValidateAll checks the field values on GetRoleAllRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleAllResMultiError, or nil if none found.
type GetRoleAllResMultiError ¶
type GetRoleAllResMultiError []error
GetRoleAllResMultiError is an error wrapping multiple validation errors returned by GetRoleAllRes.ValidateAll() if the designated constraints aren't met.
func (GetRoleAllResMultiError) AllErrors ¶
func (m GetRoleAllResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleAllResMultiError) Error ¶
func (m GetRoleAllResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleAllResValidationError ¶
type GetRoleAllResValidationError struct {
// contains filtered or unexported fields
}
GetRoleAllResValidationError is the validation error returned by GetRoleAllRes.Validate if the designated constraints aren't met.
func (GetRoleAllResValidationError) Cause ¶
func (e GetRoleAllResValidationError) Cause() error
Cause function returns cause value.
func (GetRoleAllResValidationError) Error ¶
func (e GetRoleAllResValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleAllResValidationError) ErrorName ¶
func (e GetRoleAllResValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleAllResValidationError) Field ¶
func (e GetRoleAllResValidationError) Field() string
Field function returns field value.
func (GetRoleAllResValidationError) Key ¶
func (e GetRoleAllResValidationError) Key() bool
Key function returns key value.
func (GetRoleAllResValidationError) Reason ¶
func (e GetRoleAllResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRoleListPageRes) Validate ¶
func (m *GetRoleListPageRes) Validate() error
Validate checks the field values on GetRoleListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleListPageRes) ValidateAll ¶
func (m *GetRoleListPageRes) ValidateAll() error
ValidateAll checks the field values on GetRoleListPageRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleListPageResMultiError, or nil if none found.
type GetRoleListPageResMultiError ¶
type GetRoleListPageResMultiError []error
GetRoleListPageResMultiError is an error wrapping multiple validation errors returned by GetRoleListPageRes.ValidateAll() if the designated constraints aren't met.
func (GetRoleListPageResMultiError) AllErrors ¶
func (m GetRoleListPageResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleListPageResMultiError) Error ¶
func (m GetRoleListPageResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleListPageResValidationError ¶
type GetRoleListPageResValidationError struct {
// contains filtered or unexported fields
}
GetRoleListPageResValidationError is the validation error returned by GetRoleListPageRes.Validate if the designated constraints aren't met.
func (GetRoleListPageResValidationError) Cause ¶
func (e GetRoleListPageResValidationError) Cause() error
Cause function returns cause value.
func (GetRoleListPageResValidationError) Error ¶
func (e GetRoleListPageResValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleListPageResValidationError) ErrorName ¶
func (e GetRoleListPageResValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleListPageResValidationError) Field ¶
func (e GetRoleListPageResValidationError) Field() string
Field function returns field value.
func (GetRoleListPageResValidationError) Key ¶
func (e GetRoleListPageResValidationError) Key() bool
Key function returns key value.
func (GetRoleListPageResValidationError) Reason ¶
func (e GetRoleListPageResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRoleListReq) Validate ¶
func (m *GetRoleListReq) Validate() error
Validate checks the field values on GetRoleListReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleListReq) ValidateAll ¶
func (m *GetRoleListReq) ValidateAll() error
ValidateAll checks the field values on GetRoleListReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleListReqMultiError, or nil if none found.
type GetRoleListReqMultiError ¶
type GetRoleListReqMultiError []error
GetRoleListReqMultiError is an error wrapping multiple validation errors returned by GetRoleListReq.ValidateAll() if the designated constraints aren't met.
func (GetRoleListReqMultiError) AllErrors ¶
func (m GetRoleListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleListReqMultiError) Error ¶
func (m GetRoleListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleListReqValidationError ¶
type GetRoleListReqValidationError struct {
// contains filtered or unexported fields
}
GetRoleListReqValidationError is the validation error returned by GetRoleListReq.Validate if the designated constraints aren't met.
func (GetRoleListReqValidationError) Cause ¶
func (e GetRoleListReqValidationError) Cause() error
Cause function returns cause value.
func (GetRoleListReqValidationError) Error ¶
func (e GetRoleListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleListReqValidationError) ErrorName ¶
func (e GetRoleListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleListReqValidationError) Field ¶
func (e GetRoleListReqValidationError) Field() string
Field function returns field value.
func (GetRoleListReqValidationError) Key ¶
func (e GetRoleListReqValidationError) Key() bool
Key function returns key value.
func (GetRoleListReqValidationError) Reason ¶
func (e GetRoleListReqValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRoleMenuBtnReq) Validate ¶
func (m *GetRoleMenuBtnReq) Validate() error
Validate checks the field values on GetRoleMenuBtnReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleMenuBtnReq) ValidateAll ¶
func (m *GetRoleMenuBtnReq) ValidateAll() error
ValidateAll checks the field values on GetRoleMenuBtnReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleMenuBtnReqMultiError, or nil if none found.
type GetRoleMenuBtnReqMultiError ¶
type GetRoleMenuBtnReqMultiError []error
GetRoleMenuBtnReqMultiError is an error wrapping multiple validation errors returned by GetRoleMenuBtnReq.ValidateAll() if the designated constraints aren't met.
func (GetRoleMenuBtnReqMultiError) AllErrors ¶
func (m GetRoleMenuBtnReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuBtnReqMultiError) Error ¶
func (m GetRoleMenuBtnReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuBtnReqValidationError ¶
type GetRoleMenuBtnReqValidationError struct {
// contains filtered or unexported fields
}
GetRoleMenuBtnReqValidationError is the validation error returned by GetRoleMenuBtnReq.Validate if the designated constraints aren't met.
func (GetRoleMenuBtnReqValidationError) Cause ¶
func (e GetRoleMenuBtnReqValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuBtnReqValidationError) Error ¶
func (e GetRoleMenuBtnReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuBtnReqValidationError) ErrorName ¶
func (e GetRoleMenuBtnReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuBtnReqValidationError) Field ¶
func (e GetRoleMenuBtnReqValidationError) Field() string
Field function returns field value.
func (GetRoleMenuBtnReqValidationError) Key ¶
func (e GetRoleMenuBtnReqValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuBtnReqValidationError) Reason ¶
func (e GetRoleMenuBtnReqValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRoleMenuBtnRes) Validate ¶
func (m *GetRoleMenuBtnRes) Validate() error
Validate checks the field values on GetRoleMenuBtnRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRoleMenuBtnRes) ValidateAll ¶
func (m *GetRoleMenuBtnRes) ValidateAll() error
ValidateAll checks the field values on GetRoleMenuBtnRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRoleMenuBtnResMultiError, or nil if none found.
type GetRoleMenuBtnResMultiError ¶
type GetRoleMenuBtnResMultiError []error
GetRoleMenuBtnResMultiError is an error wrapping multiple validation errors returned by GetRoleMenuBtnRes.ValidateAll() if the designated constraints aren't met.
func (GetRoleMenuBtnResMultiError) AllErrors ¶
func (m GetRoleMenuBtnResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuBtnResMultiError) Error ¶
func (m GetRoleMenuBtnResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuBtnResValidationError ¶
type GetRoleMenuBtnResValidationError struct {
// contains filtered or unexported fields
}
GetRoleMenuBtnResValidationError is the validation error returned by GetRoleMenuBtnRes.Validate if the designated constraints aren't met.
func (GetRoleMenuBtnResValidationError) Cause ¶
func (e GetRoleMenuBtnResValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuBtnResValidationError) Error ¶
func (e GetRoleMenuBtnResValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuBtnResValidationError) ErrorName ¶
func (e GetRoleMenuBtnResValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuBtnResValidationError) Field ¶
func (e GetRoleMenuBtnResValidationError) Field() string
Field function returns field value.
func (GetRoleMenuBtnResValidationError) Key ¶
func (e GetRoleMenuBtnResValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuBtnResValidationError) Reason ¶
func (e GetRoleMenuBtnResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRolesForUserReq) Validate ¶
func (m *GetRolesForUserReq) Validate() error
Validate checks the field values on GetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolesForUserReq) ValidateAll ¶
func (m *GetRolesForUserReq) ValidateAll() error
ValidateAll checks the field values on GetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesForUserReqMultiError, or nil if none found.
type GetRolesForUserReqMultiError ¶
type GetRolesForUserReqMultiError []error
GetRolesForUserReqMultiError is an error wrapping multiple validation errors returned by GetRolesForUserReq.ValidateAll() if the designated constraints aren't met.
func (GetRolesForUserReqMultiError) AllErrors ¶
func (m GetRolesForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolesForUserReqMultiError) Error ¶
func (m GetRolesForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolesForUserReqValidationError ¶
type GetRolesForUserReqValidationError struct {
// contains filtered or unexported fields
}
GetRolesForUserReqValidationError is the validation error returned by GetRolesForUserReq.Validate if the designated constraints aren't met.
func (GetRolesForUserReqValidationError) Cause ¶
func (e GetRolesForUserReqValidationError) Cause() error
Cause function returns cause value.
func (GetRolesForUserReqValidationError) Error ¶
func (e GetRolesForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolesForUserReqValidationError) ErrorName ¶
func (e GetRolesForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolesForUserReqValidationError) Field ¶
func (e GetRolesForUserReqValidationError) Field() string
Field function returns field value.
func (GetRolesForUserReqValidationError) Key ¶
func (e GetRolesForUserReqValidationError) Key() bool
Key function returns key value.
func (GetRolesForUserReqValidationError) Reason ¶
func (e GetRolesForUserReqValidationError) Reason() string
Reason function returns reason value.
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
func (*GetRolesForUserRes) Validate ¶
func (m *GetRolesForUserRes) Validate() error
Validate checks the field values on GetRolesForUserRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolesForUserRes) ValidateAll ¶
func (m *GetRolesForUserRes) ValidateAll() error
ValidateAll checks the field values on GetRolesForUserRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesForUserResMultiError, or nil if none found.
type GetRolesForUserResMultiError ¶
type GetRolesForUserResMultiError []error
GetRolesForUserResMultiError is an error wrapping multiple validation errors returned by GetRolesForUserRes.ValidateAll() if the designated constraints aren't met.
func (GetRolesForUserResMultiError) AllErrors ¶
func (m GetRolesForUserResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolesForUserResMultiError) Error ¶
func (m GetRolesForUserResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolesForUserResValidationError ¶
type GetRolesForUserResValidationError struct {
// contains filtered or unexported fields
}
GetRolesForUserResValidationError is the validation error returned by GetRolesForUserRes.Validate if the designated constraints aren't met.
func (GetRolesForUserResValidationError) Cause ¶
func (e GetRolesForUserResValidationError) Cause() error
Cause function returns cause value.
func (GetRolesForUserResValidationError) Error ¶
func (e GetRolesForUserResValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolesForUserResValidationError) ErrorName ¶
func (e GetRolesForUserResValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolesForUserResValidationError) Field ¶
func (e GetRolesForUserResValidationError) Field() string
Field function returns field value.
func (GetRolesForUserResValidationError) Key ¶
func (e GetRolesForUserResValidationError) Key() bool
Key function returns key value.
func (GetRolesForUserResValidationError) Reason ¶
func (e GetRolesForUserResValidationError) Reason() string
Reason function returns reason value.
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
func (*GetUsersForRoleRes) Validate ¶
func (m *GetUsersForRoleRes) Validate() error
Validate checks the field values on GetUsersForRoleRes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUsersForRoleRes) ValidateAll ¶
func (m *GetUsersForRoleRes) ValidateAll() error
ValidateAll checks the field values on GetUsersForRoleRes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUsersForRoleResMultiError, or nil if none found.
type GetUsersForRoleResMultiError ¶
type GetUsersForRoleResMultiError []error
GetUsersForRoleResMultiError is an error wrapping multiple validation errors returned by GetUsersForRoleRes.ValidateAll() if the designated constraints aren't met.
func (GetUsersForRoleResMultiError) AllErrors ¶
func (m GetUsersForRoleResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersForRoleResMultiError) Error ¶
func (m GetUsersForRoleResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersForRoleResValidationError ¶
type GetUsersForRoleResValidationError struct {
// contains filtered or unexported fields
}
GetUsersForRoleResValidationError is the validation error returned by GetUsersForRoleRes.Validate if the designated constraints aren't met.
func (GetUsersForRoleResValidationError) Cause ¶
func (e GetUsersForRoleResValidationError) Cause() error
Cause function returns cause value.
func (GetUsersForRoleResValidationError) Error ¶
func (e GetUsersForRoleResValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersForRoleResValidationError) ErrorName ¶
func (e GetUsersForRoleResValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersForRoleResValidationError) Field ¶
func (e GetUsersForRoleResValidationError) Field() string
Field function returns field value.
func (GetUsersForRoleResValidationError) Key ¶
func (e GetUsersForRoleResValidationError) Key() bool
Key function returns key value.
func (GetUsersForRoleResValidationError) Reason ¶
func (e GetUsersForRoleResValidationError) Reason() string
Reason function returns reason value.
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
func (*IdReq) Validate ¶
Validate checks the field values on IdReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IdReq) ValidateAll ¶
ValidateAll checks the field values on IdReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdReqMultiError, or nil if none found.
type IdReqMultiError ¶
type IdReqMultiError []error
IdReqMultiError is an error wrapping multiple validation errors returned by IdReq.ValidateAll() if the designated constraints aren't met.
func (IdReqMultiError) AllErrors ¶
func (m IdReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdReqMultiError) Error ¶
func (m IdReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdReqValidationError ¶
type IdReqValidationError struct {
// contains filtered or unexported fields
}
IdReqValidationError is the validation error returned by IdReq.Validate if the designated constraints aren't met.
func (IdReqValidationError) Cause ¶
func (e IdReqValidationError) Cause() error
Cause function returns cause value.
func (IdReqValidationError) Error ¶
func (e IdReqValidationError) Error() string
Error satisfies the builtin error interface
func (IdReqValidationError) ErrorName ¶
func (e IdReqValidationError) ErrorName() string
ErrorName returns error name.
func (IdReqValidationError) Field ¶
func (e IdReqValidationError) Field() string
Field function returns field value.
func (IdReqValidationError) Key ¶
func (e IdReqValidationError) Key() bool
Key function returns key value.
func (IdReqValidationError) Reason ¶
func (e IdReqValidationError) Reason() string
Reason function returns reason value.
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
func (*Menu) Validate ¶
Validate checks the field values on Menu with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Menu) ValidateAll ¶
ValidateAll checks the field values on Menu with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MenuMultiError, or nil if none found.
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
func (*MenuBtn) Validate ¶
Validate checks the field values on MenuBtn with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MenuBtn) ValidateAll ¶
ValidateAll checks the field values on MenuBtn with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MenuBtnMultiError, or nil if none found.
type MenuBtnMultiError ¶
type MenuBtnMultiError []error
MenuBtnMultiError is an error wrapping multiple validation errors returned by MenuBtn.ValidateAll() if the designated constraints aren't met.
func (MenuBtnMultiError) AllErrors ¶
func (m MenuBtnMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuBtnMultiError) Error ¶
func (m MenuBtnMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuBtnValidationError ¶
type MenuBtnValidationError struct {
// contains filtered or unexported fields
}
MenuBtnValidationError is the validation error returned by MenuBtn.Validate if the designated constraints aren't met.
func (MenuBtnValidationError) Cause ¶
func (e MenuBtnValidationError) Cause() error
Cause function returns cause value.
func (MenuBtnValidationError) Error ¶
func (e MenuBtnValidationError) Error() string
Error satisfies the builtin error interface
func (MenuBtnValidationError) ErrorName ¶
func (e MenuBtnValidationError) ErrorName() string
ErrorName returns error name.
func (MenuBtnValidationError) Field ¶
func (e MenuBtnValidationError) Field() string
Field function returns field value.
func (MenuBtnValidationError) Key ¶
func (e MenuBtnValidationError) Key() bool
Key function returns key value.
func (MenuBtnValidationError) Reason ¶
func (e MenuBtnValidationError) Reason() string
Reason function returns reason value.
type MenuMultiError ¶
type MenuMultiError []error
MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.
func (MenuMultiError) AllErrors ¶
func (m MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuMultiError) Error ¶
func (m MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuValidationError ¶
type MenuValidationError struct {
// contains filtered or unexported fields
}
MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.
func (MenuValidationError) Cause ¶
func (e MenuValidationError) Cause() error
Cause function returns cause value.
func (MenuValidationError) Error ¶
func (e MenuValidationError) Error() string
Error satisfies the builtin error interface
func (MenuValidationError) ErrorName ¶
func (e MenuValidationError) ErrorName() string
ErrorName returns error name.
func (MenuValidationError) Field ¶
func (e MenuValidationError) Field() string
Field function returns field value.
func (MenuValidationError) Key ¶
func (e MenuValidationError) Key() bool
Key function returns key value.
func (MenuValidationError) Reason ¶
func (e MenuValidationError) Reason() string
Reason function returns reason value.
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
func (*PolicyRules) Validate ¶
func (m *PolicyRules) Validate() error
Validate checks the field values on PolicyRules with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PolicyRules) ValidateAll ¶
func (m *PolicyRules) ValidateAll() error
ValidateAll checks the field values on PolicyRules with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolicyRulesMultiError, or nil if none found.
type PolicyRulesMultiError ¶
type PolicyRulesMultiError []error
PolicyRulesMultiError is an error wrapping multiple validation errors returned by PolicyRules.ValidateAll() if the designated constraints aren't met.
func (PolicyRulesMultiError) AllErrors ¶
func (m PolicyRulesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolicyRulesMultiError) Error ¶
func (m PolicyRulesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolicyRulesValidationError ¶
type PolicyRulesValidationError struct {
// contains filtered or unexported fields
}
PolicyRulesValidationError is the validation error returned by PolicyRules.Validate if the designated constraints aren't met.
func (PolicyRulesValidationError) Cause ¶
func (e PolicyRulesValidationError) Cause() error
Cause function returns cause value.
func (PolicyRulesValidationError) Error ¶
func (e PolicyRulesValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyRulesValidationError) ErrorName ¶
func (e PolicyRulesValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyRulesValidationError) Field ¶
func (e PolicyRulesValidationError) Field() string
Field function returns field value.
func (PolicyRulesValidationError) Key ¶
func (e PolicyRulesValidationError) Key() bool
Key function returns key value.
func (PolicyRulesValidationError) Reason ¶
func (e PolicyRulesValidationError) Reason() string
Reason function returns reason value.
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
func (*Role) Validate ¶
Validate checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Role) ValidateAll ¶
ValidateAll checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleMultiError, or nil if none found.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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
func (*RoleNameReq) Validate ¶
func (m *RoleNameReq) Validate() error
Validate checks the field values on RoleNameReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleNameReq) ValidateAll ¶
func (m *RoleNameReq) ValidateAll() error
ValidateAll checks the field values on RoleNameReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleNameReqMultiError, or nil if none found.
type RoleNameReqMultiError ¶
type RoleNameReqMultiError []error
RoleNameReqMultiError is an error wrapping multiple validation errors returned by RoleNameReq.ValidateAll() if the designated constraints aren't met.
func (RoleNameReqMultiError) AllErrors ¶
func (m RoleNameReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleNameReqMultiError) Error ¶
func (m RoleNameReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleNameReqValidationError ¶
type RoleNameReqValidationError struct {
// contains filtered or unexported fields
}
RoleNameReqValidationError is the validation error returned by RoleNameReq.Validate if the designated constraints aren't met.
func (RoleNameReqValidationError) Cause ¶
func (e RoleNameReqValidationError) Cause() error
Cause function returns cause value.
func (RoleNameReqValidationError) Error ¶
func (e RoleNameReqValidationError) Error() string
Error satisfies the builtin error interface
func (RoleNameReqValidationError) ErrorName ¶
func (e RoleNameReqValidationError) ErrorName() string
ErrorName returns error name.
func (RoleNameReqValidationError) Field ¶
func (e RoleNameReqValidationError) Field() string
Field function returns field value.
func (RoleNameReqValidationError) Key ¶
func (e RoleNameReqValidationError) Key() bool
Key function returns key value.
func (RoleNameReqValidationError) Reason ¶
func (e RoleNameReqValidationError) Reason() string
Reason function returns reason value.
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
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
func (*SaveRoleMenuBtnReq) Validate ¶
func (m *SaveRoleMenuBtnReq) Validate() error
Validate checks the field values on SaveRoleMenuBtnReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SaveRoleMenuBtnReq) ValidateAll ¶
func (m *SaveRoleMenuBtnReq) ValidateAll() error
ValidateAll checks the field values on SaveRoleMenuBtnReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRoleMenuBtnReqMultiError, or nil if none found.
type SaveRoleMenuBtnReqMultiError ¶
type SaveRoleMenuBtnReqMultiError []error
SaveRoleMenuBtnReqMultiError is an error wrapping multiple validation errors returned by SaveRoleMenuBtnReq.ValidateAll() if the designated constraints aren't met.
func (SaveRoleMenuBtnReqMultiError) AllErrors ¶
func (m SaveRoleMenuBtnReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveRoleMenuBtnReqMultiError) Error ¶
func (m SaveRoleMenuBtnReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveRoleMenuBtnReqValidationError ¶
type SaveRoleMenuBtnReqValidationError struct {
// contains filtered or unexported fields
}
SaveRoleMenuBtnReqValidationError is the validation error returned by SaveRoleMenuBtnReq.Validate if the designated constraints aren't met.
func (SaveRoleMenuBtnReqValidationError) Cause ¶
func (e SaveRoleMenuBtnReqValidationError) Cause() error
Cause function returns cause value.
func (SaveRoleMenuBtnReqValidationError) Error ¶
func (e SaveRoleMenuBtnReqValidationError) Error() string
Error satisfies the builtin error interface
func (SaveRoleMenuBtnReqValidationError) ErrorName ¶
func (e SaveRoleMenuBtnReqValidationError) ErrorName() string
ErrorName returns error name.
func (SaveRoleMenuBtnReqValidationError) Field ¶
func (e SaveRoleMenuBtnReqValidationError) Field() string
Field function returns field value.
func (SaveRoleMenuBtnReqValidationError) Key ¶
func (e SaveRoleMenuBtnReqValidationError) Key() bool
Key function returns key value.
func (SaveRoleMenuBtnReqValidationError) Reason ¶
func (e SaveRoleMenuBtnReqValidationError) Reason() string
Reason function returns reason value.
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
func (*SaveRoleMenuReq) Validate ¶
func (m *SaveRoleMenuReq) Validate() error
Validate checks the field values on SaveRoleMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SaveRoleMenuReq) ValidateAll ¶
func (m *SaveRoleMenuReq) ValidateAll() error
ValidateAll checks the field values on SaveRoleMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SaveRoleMenuReqMultiError, or nil if none found.
type SaveRoleMenuReqMultiError ¶
type SaveRoleMenuReqMultiError []error
SaveRoleMenuReqMultiError is an error wrapping multiple validation errors returned by SaveRoleMenuReq.ValidateAll() if the designated constraints aren't met.
func (SaveRoleMenuReqMultiError) AllErrors ¶
func (m SaveRoleMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveRoleMenuReqMultiError) Error ¶
func (m SaveRoleMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveRoleMenuReqValidationError ¶
type SaveRoleMenuReqValidationError struct {
// contains filtered or unexported fields
}
SaveRoleMenuReqValidationError is the validation error returned by SaveRoleMenuReq.Validate if the designated constraints aren't met.
func (SaveRoleMenuReqValidationError) Cause ¶
func (e SaveRoleMenuReqValidationError) Cause() error
Cause function returns cause value.
func (SaveRoleMenuReqValidationError) Error ¶
func (e SaveRoleMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (SaveRoleMenuReqValidationError) ErrorName ¶
func (e SaveRoleMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (SaveRoleMenuReqValidationError) Field ¶
func (e SaveRoleMenuReqValidationError) Field() string
Field function returns field value.
func (SaveRoleMenuReqValidationError) Key ¶
func (e SaveRoleMenuReqValidationError) Key() bool
Key function returns key value.
func (SaveRoleMenuReqValidationError) Reason ¶
func (e SaveRoleMenuReqValidationError) Reason() string
Reason function returns reason value.
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
func (*SetRolesForUserReq) Validate ¶
func (m *SetRolesForUserReq) Validate() error
Validate checks the field values on SetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SetRolesForUserReq) ValidateAll ¶
func (m *SetRolesForUserReq) ValidateAll() error
ValidateAll checks the field values on SetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetRolesForUserReqMultiError, or nil if none found.
type SetRolesForUserReqMultiError ¶
type SetRolesForUserReqMultiError []error
SetRolesForUserReqMultiError is an error wrapping multiple validation errors returned by SetRolesForUserReq.ValidateAll() if the designated constraints aren't met.
func (SetRolesForUserReqMultiError) AllErrors ¶
func (m SetRolesForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRolesForUserReqMultiError) Error ¶
func (m SetRolesForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRolesForUserReqValidationError ¶
type SetRolesForUserReqValidationError struct {
// contains filtered or unexported fields
}
SetRolesForUserReqValidationError is the validation error returned by SetRolesForUserReq.Validate if the designated constraints aren't met.
func (SetRolesForUserReqValidationError) Cause ¶
func (e SetRolesForUserReqValidationError) Cause() error
Cause function returns cause value.
func (SetRolesForUserReqValidationError) Error ¶
func (e SetRolesForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetRolesForUserReqValidationError) ErrorName ¶
func (e SetRolesForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetRolesForUserReqValidationError) Field ¶
func (e SetRolesForUserReqValidationError) Field() string
Field function returns field value.
func (SetRolesForUserReqValidationError) Key ¶
func (e SetRolesForUserReqValidationError) Key() bool
Key function returns key value.
func (SetRolesForUserReqValidationError) Reason ¶
func (e SetRolesForUserReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthorizationServiceServer ¶
type UnimplementedAuthorizationServiceServer struct { }
UnimplementedAuthorizationServiceServer must be embedded to have forward compatible implementations.
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
func (*UpdateApiReq) Validate ¶
func (m *UpdateApiReq) Validate() error
Validate checks the field values on UpdateApiReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateApiReq) ValidateAll ¶
func (m *UpdateApiReq) ValidateAll() error
ValidateAll checks the field values on UpdateApiReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateApiReqMultiError, or nil if none found.
type UpdateApiReqMultiError ¶
type UpdateApiReqMultiError []error
UpdateApiReqMultiError is an error wrapping multiple validation errors returned by UpdateApiReq.ValidateAll() if the designated constraints aren't met.
func (UpdateApiReqMultiError) AllErrors ¶
func (m UpdateApiReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateApiReqMultiError) Error ¶
func (m UpdateApiReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateApiReqValidationError ¶
type UpdateApiReqValidationError struct {
// contains filtered or unexported fields
}
UpdateApiReqValidationError is the validation error returned by UpdateApiReq.Validate if the designated constraints aren't met.
func (UpdateApiReqValidationError) Cause ¶
func (e UpdateApiReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateApiReqValidationError) Error ¶
func (e UpdateApiReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateApiReqValidationError) ErrorName ¶
func (e UpdateApiReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateApiReqValidationError) Field ¶
func (e UpdateApiReqValidationError) Field() string
Field function returns field value.
func (UpdateApiReqValidationError) Key ¶
func (e UpdateApiReqValidationError) Key() bool
Key function returns key value.
func (UpdateApiReqValidationError) Reason ¶
func (e UpdateApiReqValidationError) Reason() string
Reason function returns reason value.
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
func (*UpdateMenuReq) Validate ¶
func (m *UpdateMenuReq) Validate() error
Validate checks the field values on UpdateMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateMenuReq) ValidateAll ¶
func (m *UpdateMenuReq) ValidateAll() error
ValidateAll checks the field values on UpdateMenuReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateMenuReqMultiError, or nil if none found.
type UpdateMenuReqMultiError ¶
type UpdateMenuReqMultiError []error
UpdateMenuReqMultiError is an error wrapping multiple validation errors returned by UpdateMenuReq.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuReqMultiError) AllErrors ¶
func (m UpdateMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuReqMultiError) Error ¶
func (m UpdateMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuReqValidationError ¶
type UpdateMenuReqValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuReqValidationError is the validation error returned by UpdateMenuReq.Validate if the designated constraints aren't met.
func (UpdateMenuReqValidationError) Cause ¶
func (e UpdateMenuReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuReqValidationError) Error ¶
func (e UpdateMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuReqValidationError) ErrorName ¶
func (e UpdateMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuReqValidationError) Field ¶
func (e UpdateMenuReqValidationError) Field() string
Field function returns field value.
func (UpdateMenuReqValidationError) Key ¶
func (e UpdateMenuReqValidationError) Key() bool
Key function returns key value.
func (UpdateMenuReqValidationError) Reason ¶
func (e UpdateMenuReqValidationError) Reason() string
Reason function returns reason value.
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
func (*UpdatePoliciesReq) Validate ¶
func (m *UpdatePoliciesReq) Validate() error
Validate checks the field values on UpdatePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePoliciesReq) ValidateAll ¶
func (m *UpdatePoliciesReq) ValidateAll() error
ValidateAll checks the field values on UpdatePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePoliciesReqMultiError, or nil if none found.
type UpdatePoliciesReqMultiError ¶
type UpdatePoliciesReqMultiError []error
UpdatePoliciesReqMultiError is an error wrapping multiple validation errors returned by UpdatePoliciesReq.ValidateAll() if the designated constraints aren't met.
func (UpdatePoliciesReqMultiError) AllErrors ¶
func (m UpdatePoliciesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePoliciesReqMultiError) Error ¶
func (m UpdatePoliciesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePoliciesReqValidationError ¶
type UpdatePoliciesReqValidationError struct {
// contains filtered or unexported fields
}
UpdatePoliciesReqValidationError is the validation error returned by UpdatePoliciesReq.Validate if the designated constraints aren't met.
func (UpdatePoliciesReqValidationError) Cause ¶
func (e UpdatePoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (UpdatePoliciesReqValidationError) Error ¶
func (e UpdatePoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePoliciesReqValidationError) ErrorName ¶
func (e UpdatePoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePoliciesReqValidationError) Field ¶
func (e UpdatePoliciesReqValidationError) Field() string
Field function returns field value.
func (UpdatePoliciesReqValidationError) Key ¶
func (e UpdatePoliciesReqValidationError) Key() bool
Key function returns key value.
func (UpdatePoliciesReqValidationError) Reason ¶
func (e UpdatePoliciesReqValidationError) Reason() string
Reason function returns reason value.
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
func (*UpdateRoleReq) Validate ¶
func (m *UpdateRoleReq) Validate() error
Validate checks the field values on UpdateRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRoleReq) ValidateAll ¶
func (m *UpdateRoleReq) ValidateAll() error
ValidateAll checks the field values on UpdateRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRoleReqMultiError, or nil if none found.
type UpdateRoleReqMultiError ¶
type UpdateRoleReqMultiError []error
UpdateRoleReqMultiError is an error wrapping multiple validation errors returned by UpdateRoleReq.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleReqMultiError) AllErrors ¶
func (m UpdateRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleReqMultiError) Error ¶
func (m UpdateRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleReqValidationError ¶
type UpdateRoleReqValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleReqValidationError is the validation error returned by UpdateRoleReq.Validate if the designated constraints aren't met.
func (UpdateRoleReqValidationError) Cause ¶
func (e UpdateRoleReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleReqValidationError) Error ¶
func (e UpdateRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleReqValidationError) ErrorName ¶
func (e UpdateRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleReqValidationError) Field ¶
func (e UpdateRoleReqValidationError) Field() string
Field function returns field value.
func (UpdateRoleReqValidationError) Key ¶
func (e UpdateRoleReqValidationError) Key() bool
Key function returns key value.
func (UpdateRoleReqValidationError) Reason ¶
func (e UpdateRoleReqValidationError) Reason() string
Reason function returns reason value.