Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AddRoleRep
- func (*AddRoleRep) Descriptor() ([]byte, []int)deprecated
- func (x *AddRoleRep) GetRoleId() uint64
- func (x *AddRoleRep) GetRoleName() string
- func (*AddRoleRep) ProtoMessage()
- func (x *AddRoleRep) ProtoReflect() protoreflect.Message
- func (x *AddRoleRep) Reset()
- func (x *AddRoleRep) String() string
- func (m *AddRoleRep) Validate() error
- func (m *AddRoleRep) ValidateAll() error
- type AddRoleRepMultiError
- type AddRoleRepValidationError
- type AddRoleReq
- func (*AddRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddRoleReq) GetName() string
- func (*AddRoleReq) ProtoMessage()
- func (x *AddRoleReq) ProtoReflect() protoreflect.Message
- func (x *AddRoleReq) Reset()
- func (x *AddRoleReq) String() string
- func (m *AddRoleReq) Validate() error
- func (m *AddRoleReq) ValidateAll() error
- type AddRoleReqMultiError
- type AddRoleReqValidationError
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- func (c *AuthHTTPClientImpl) AddRole(ctx context.Context, in *AddRoleReq, opts ...http.CallOption) (*AddRoleRep, error)
- func (c *AuthHTTPClientImpl) AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
- func (c *AuthHTTPClientImpl) CreateRoleMenu(ctx context.Context, in *CreateRoleMenuReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) CreateRoleMenuBtn(ctx context.Context, in *CreateRoleMenuBtnReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) DelRole(ctx context.Context, in *DelRoleReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) EditMenu(ctx context.Context, in *EditMenuReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) EditRole(ctx context.Context, in *EditRoleReq, opts ...http.CallOption) (*RepStatus, error)
- func (c *AuthHTTPClientImpl) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*FullRoleListRep, error)
- func (c *AuthHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRep, error)
- func (c *AuthHTTPClientImpl) GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...http.CallOption) (*GetRolePoliciesRep, error)
- func (c *AuthHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRep, error)
- func (c *AuthHTTPClientImpl) GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...http.CallOption) (*GetUsersForRoleRep, error)
- func (c *AuthHTTPClientImpl) ListMenu(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)
- func (c *AuthHTTPClientImpl) ListMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)
- func (c *AuthHTTPClientImpl) ListRoleMenu(ctx context.Context, in *ListRoleMenuReq, opts ...http.CallOption) (*ListMenuRep, error)
- func (c *AuthHTTPClientImpl) ListRoleMenuTree(ctx context.Context, in *ListRoleMenuReq, opts ...http.CallOption) (*ListMenuRep, error)
- func (c *AuthHTTPClientImpl) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...http.CallOption) (*PageRoleListRep, error)
- func (c *AuthHTTPClientImpl) SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...http.CallOption) (*RepStatus, error)
- type AuthHTTPServer
- type AuthServer
- type CheckAuthReq
- func (*CheckAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckAuthReq) GetMod() string
- func (x *CheckAuthReq) GetRole() string
- func (x *CheckAuthReq) GetUrl() string
- func (*CheckAuthReq) ProtoMessage()
- func (x *CheckAuthReq) ProtoReflect() protoreflect.Message
- func (x *CheckAuthReq) Reset()
- func (x *CheckAuthReq) String() string
- func (m *CheckAuthReq) Validate() error
- func (m *CheckAuthReq) ValidateAll() error
- type CheckAuthReqMultiError
- type CheckAuthReqValidationError
- func (e CheckAuthReqValidationError) Cause() error
- func (e CheckAuthReqValidationError) Error() string
- func (e CheckAuthReqValidationError) ErrorName() string
- func (e CheckAuthReqValidationError) Field() string
- func (e CheckAuthReqValidationError) Key() bool
- func (e CheckAuthReqValidationError) 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() uint64
- func (x *CreateMenuReq) GetParentIds() string
- func (x *CreateMenuReq) GetPath() string
- func (x *CreateMenuReq) GetSort() uint64
- 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 CreateRoleMenuBtnReq
- func (*CreateRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleMenuBtnReq) GetMenuBtnIds() []uint64
- func (x *CreateRoleMenuBtnReq) GetMenuId() uint64
- func (x *CreateRoleMenuBtnReq) GetRoleId() uint64
- func (*CreateRoleMenuBtnReq) ProtoMessage()
- func (x *CreateRoleMenuBtnReq) ProtoReflect() protoreflect.Message
- func (x *CreateRoleMenuBtnReq) Reset()
- func (x *CreateRoleMenuBtnReq) String() string
- func (m *CreateRoleMenuBtnReq) Validate() error
- func (m *CreateRoleMenuBtnReq) ValidateAll() error
- type CreateRoleMenuBtnReqMultiError
- type CreateRoleMenuBtnReqValidationError
- func (e CreateRoleMenuBtnReqValidationError) Cause() error
- func (e CreateRoleMenuBtnReqValidationError) Error() string
- func (e CreateRoleMenuBtnReqValidationError) ErrorName() string
- func (e CreateRoleMenuBtnReqValidationError) Field() string
- func (e CreateRoleMenuBtnReqValidationError) Key() bool
- func (e CreateRoleMenuBtnReqValidationError) Reason() string
- type CreateRoleMenuReq
- func (*CreateRoleMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleMenuReq) GetMenuIds() []uint64
- func (x *CreateRoleMenuReq) GetRoleId() uint64
- func (*CreateRoleMenuReq) ProtoMessage()
- func (x *CreateRoleMenuReq) ProtoReflect() protoreflect.Message
- func (x *CreateRoleMenuReq) Reset()
- func (x *CreateRoleMenuReq) String() string
- func (m *CreateRoleMenuReq) Validate() error
- func (m *CreateRoleMenuReq) ValidateAll() error
- type CreateRoleMenuReqMultiError
- type CreateRoleMenuReqValidationError
- func (e CreateRoleMenuReqValidationError) Cause() error
- func (e CreateRoleMenuReqValidationError) Error() string
- func (e CreateRoleMenuReqValidationError) ErrorName() string
- func (e CreateRoleMenuReqValidationError) Field() string
- func (e CreateRoleMenuReqValidationError) Key() bool
- func (e CreateRoleMenuReqValidationError) Reason() string
- type DelRoleReq
- func (*DelRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *DelRoleReq) GetRoleId() uint64
- func (*DelRoleReq) ProtoMessage()
- func (x *DelRoleReq) ProtoReflect() protoreflect.Message
- func (x *DelRoleReq) Reset()
- func (x *DelRoleReq) String() string
- func (m *DelRoleReq) Validate() error
- func (m *DelRoleReq) ValidateAll() error
- type DelRoleReqMultiError
- type DelRoleReqValidationError
- 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 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 EditMenuReq
- func (*EditMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditMenuReq) GetComponent() string
- func (x *EditMenuReq) GetHidden() bool
- func (x *EditMenuReq) GetIcon() string
- func (x *EditMenuReq) GetId() uint64
- func (x *EditMenuReq) GetMenuBtns() []*MenuBtn
- func (x *EditMenuReq) GetName() string
- func (x *EditMenuReq) GetParentId() uint64
- func (x *EditMenuReq) GetParentIds() string
- func (x *EditMenuReq) GetPath() string
- func (x *EditMenuReq) GetSort() uint64
- func (x *EditMenuReq) GetTitle() string
- func (*EditMenuReq) ProtoMessage()
- func (x *EditMenuReq) ProtoReflect() protoreflect.Message
- func (x *EditMenuReq) Reset()
- func (x *EditMenuReq) String() string
- func (m *EditMenuReq) Validate() error
- func (m *EditMenuReq) ValidateAll() error
- type EditMenuReqMultiError
- type EditMenuReqValidationError
- func (e EditMenuReqValidationError) Cause() error
- func (e EditMenuReqValidationError) Error() string
- func (e EditMenuReqValidationError) ErrorName() string
- func (e EditMenuReqValidationError) Field() string
- func (e EditMenuReqValidationError) Key() bool
- func (e EditMenuReqValidationError) Reason() string
- type EditRoleReq
- func (*EditRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditRoleReq) GetRoleId() uint64
- func (x *EditRoleReq) GetRoleName() string
- func (*EditRoleReq) ProtoMessage()
- func (x *EditRoleReq) ProtoReflect() protoreflect.Message
- func (x *EditRoleReq) Reset()
- func (x *EditRoleReq) String() string
- func (m *EditRoleReq) Validate() error
- func (m *EditRoleReq) ValidateAll() error
- type EditRoleReqMultiError
- type EditRoleReqValidationError
- func (e EditRoleReqValidationError) Cause() error
- func (e EditRoleReqValidationError) Error() string
- func (e EditRoleReqValidationError) ErrorName() string
- func (e EditRoleReqValidationError) Field() string
- func (e EditRoleReqValidationError) Key() bool
- func (e EditRoleReqValidationError) Reason() string
- type FullRoleListRep
- func (*FullRoleListRep) Descriptor() ([]byte, []int)deprecated
- func (x *FullRoleListRep) GetList() []*Role
- func (*FullRoleListRep) ProtoMessage()
- func (x *FullRoleListRep) ProtoReflect() protoreflect.Message
- func (x *FullRoleListRep) Reset()
- func (x *FullRoleListRep) String() string
- func (m *FullRoleListRep) Validate() error
- func (m *FullRoleListRep) ValidateAll() error
- type FullRoleListRepMultiError
- type FullRoleListRepValidationError
- func (e FullRoleListRepValidationError) Cause() error
- func (e FullRoleListRepValidationError) Error() string
- func (e FullRoleListRepValidationError) ErrorName() string
- func (e FullRoleListRepValidationError) Field() string
- func (e FullRoleListRepValidationError) Key() bool
- func (e FullRoleListRepValidationError) Reason() string
- type GetRoleMenuBtnRep
- func (*GetRoleMenuBtnRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuBtnRep) GetList() []*MenuBtn
- func (*GetRoleMenuBtnRep) ProtoMessage()
- func (x *GetRoleMenuBtnRep) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuBtnRep) Reset()
- func (x *GetRoleMenuBtnRep) String() string
- func (m *GetRoleMenuBtnRep) Validate() error
- func (m *GetRoleMenuBtnRep) ValidateAll() error
- type GetRoleMenuBtnRepMultiError
- type GetRoleMenuBtnRepValidationError
- func (e GetRoleMenuBtnRepValidationError) Cause() error
- func (e GetRoleMenuBtnRepValidationError) Error() string
- func (e GetRoleMenuBtnRepValidationError) ErrorName() string
- func (e GetRoleMenuBtnRepValidationError) Field() string
- func (e GetRoleMenuBtnRepValidationError) Key() bool
- func (e GetRoleMenuBtnRepValidationError) Reason() string
- type GetRoleMenuBtnReq
- func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuBtnReq) GetMenuId() uint64
- func (x *GetRoleMenuBtnReq) GetRoleId() uint64
- 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 GetRolePoliciesRep
- func (*GetRolePoliciesRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePoliciesRep) GetPolicyRules() []*PolicyRules
- func (*GetRolePoliciesRep) ProtoMessage()
- func (x *GetRolePoliciesRep) ProtoReflect() protoreflect.Message
- func (x *GetRolePoliciesRep) Reset()
- func (x *GetRolePoliciesRep) String() string
- func (m *GetRolePoliciesRep) Validate() error
- func (m *GetRolePoliciesRep) ValidateAll() error
- type GetRolePoliciesRepMultiError
- type GetRolePoliciesRepValidationError
- func (e GetRolePoliciesRepValidationError) Cause() error
- func (e GetRolePoliciesRepValidationError) Error() string
- func (e GetRolePoliciesRepValidationError) ErrorName() string
- func (e GetRolePoliciesRepValidationError) Field() string
- func (e GetRolePoliciesRepValidationError) Key() bool
- func (e GetRolePoliciesRepValidationError) Reason() string
- type GetRolePoliciesReq
- func (*GetRolePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePoliciesReq) GetRole() string
- func (*GetRolePoliciesReq) ProtoMessage()
- func (x *GetRolePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *GetRolePoliciesReq) Reset()
- func (x *GetRolePoliciesReq) String() string
- func (m *GetRolePoliciesReq) Validate() error
- func (m *GetRolePoliciesReq) ValidateAll() error
- type GetRolePoliciesReqMultiError
- type GetRolePoliciesReqValidationError
- func (e GetRolePoliciesReqValidationError) Cause() error
- func (e GetRolePoliciesReqValidationError) Error() string
- func (e GetRolePoliciesReqValidationError) ErrorName() string
- func (e GetRolePoliciesReqValidationError) Field() string
- func (e GetRolePoliciesReqValidationError) Key() bool
- func (e GetRolePoliciesReqValidationError) Reason() string
- type GetRolesForUserRep
- func (*GetRolesForUserRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserRep) GetRoles() []string
- func (*GetRolesForUserRep) ProtoMessage()
- func (x *GetRolesForUserRep) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserRep) Reset()
- func (x *GetRolesForUserRep) String() string
- func (m *GetRolesForUserRep) Validate() error
- func (m *GetRolesForUserRep) ValidateAll() error
- type GetRolesForUserRepMultiError
- type GetRolesForUserRepValidationError
- func (e GetRolesForUserRepValidationError) Cause() error
- func (e GetRolesForUserRepValidationError) Error() string
- func (e GetRolesForUserRepValidationError) ErrorName() string
- func (e GetRolesForUserRepValidationError) Field() string
- func (e GetRolesForUserRepValidationError) Key() bool
- func (e GetRolesForUserRepValidationError) 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 GetUsersForRoleRep
- func (*GetUsersForRoleRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleRep) GetUsers() []string
- func (*GetUsersForRoleRep) ProtoMessage()
- func (x *GetUsersForRoleRep) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleRep) Reset()
- func (x *GetUsersForRoleRep) String() string
- func (m *GetUsersForRoleRep) Validate() error
- func (m *GetUsersForRoleRep) ValidateAll() error
- type GetUsersForRoleRepMultiError
- type GetUsersForRoleRepValidationError
- func (e GetUsersForRoleRepValidationError) Cause() error
- func (e GetUsersForRoleRepValidationError) Error() string
- func (e GetUsersForRoleRepValidationError) ErrorName() string
- func (e GetUsersForRoleRepValidationError) Field() string
- func (e GetUsersForRoleRepValidationError) Key() bool
- func (e GetUsersForRoleRepValidationError) Reason() string
- type GetUsersForRoleReq
- func (*GetUsersForRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleReq) GetRole() string
- func (*GetUsersForRoleReq) ProtoMessage()
- func (x *GetUsersForRoleReq) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleReq) Reset()
- func (x *GetUsersForRoleReq) String() string
- func (m *GetUsersForRoleReq) Validate() error
- func (m *GetUsersForRoleReq) ValidateAll() error
- type GetUsersForRoleReqMultiError
- type GetUsersForRoleReqValidationError
- func (e GetUsersForRoleReqValidationError) Cause() error
- func (e GetUsersForRoleReqValidationError) Error() string
- func (e GetUsersForRoleReqValidationError) ErrorName() string
- func (e GetUsersForRoleReqValidationError) Field() string
- func (e GetUsersForRoleReqValidationError) Key() bool
- func (e GetUsersForRoleReqValidationError) Reason() string
- type IdReq
- type IdReqMultiError
- type IdReqValidationError
- type ListMenuRep
- func (*ListMenuRep) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuRep) GetList() []*Menu
- func (*ListMenuRep) ProtoMessage()
- func (x *ListMenuRep) ProtoReflect() protoreflect.Message
- func (x *ListMenuRep) Reset()
- func (x *ListMenuRep) String() string
- func (m *ListMenuRep) Validate() error
- func (m *ListMenuRep) ValidateAll() error
- type ListMenuRepMultiError
- type ListMenuRepValidationError
- func (e ListMenuRepValidationError) Cause() error
- func (e ListMenuRepValidationError) Error() string
- func (e ListMenuRepValidationError) ErrorName() string
- func (e ListMenuRepValidationError) Field() string
- func (e ListMenuRepValidationError) Key() bool
- func (e ListMenuRepValidationError) Reason() string
- type ListRoleMenuReq
- func (*ListRoleMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListRoleMenuReq) GetRole() string
- func (*ListRoleMenuReq) ProtoMessage()
- func (x *ListRoleMenuReq) ProtoReflect() protoreflect.Message
- func (x *ListRoleMenuReq) Reset()
- func (x *ListRoleMenuReq) String() string
- func (m *ListRoleMenuReq) Validate() error
- func (m *ListRoleMenuReq) ValidateAll() error
- type ListRoleMenuReqMultiError
- type ListRoleMenuReqValidationError
- func (e ListRoleMenuReqValidationError) Cause() error
- func (e ListRoleMenuReqValidationError) Error() string
- func (e ListRoleMenuReqValidationError) ErrorName() string
- func (e ListRoleMenuReqValidationError) Field() string
- func (e ListRoleMenuReqValidationError) Key() bool
- func (e ListRoleMenuReqValidationError) Reason() string
- 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() uint64
- func (x *Menu) GetMenuBtns() []*MenuBtn
- func (x *Menu) GetName() string
- func (x *Menu) GetParentId() uint64
- func (x *Menu) GetParentIds() string
- func (x *Menu) GetPath() string
- func (x *Menu) GetSort() uint64
- 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() uint64
- func (x *MenuBtn) GetIdentifier() string
- func (x *MenuBtn) GetMenuId() uint64
- 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 PageRoleListRep
- func (*PageRoleListRep) Descriptor() ([]byte, []int)deprecated
- func (x *PageRoleListRep) GetList() []*Role
- func (x *PageRoleListRep) GetTotal() uint64
- func (*PageRoleListRep) ProtoMessage()
- func (x *PageRoleListRep) ProtoReflect() protoreflect.Message
- func (x *PageRoleListRep) Reset()
- func (x *PageRoleListRep) String() string
- func (m *PageRoleListRep) Validate() error
- func (m *PageRoleListRep) ValidateAll() error
- type PageRoleListRepMultiError
- type PageRoleListRepValidationError
- func (e PageRoleListRepValidationError) Cause() error
- func (e PageRoleListRepValidationError) Error() string
- func (e PageRoleListRepValidationError) ErrorName() string
- func (e PageRoleListRepValidationError) Field() string
- func (e PageRoleListRepValidationError) Key() bool
- func (e PageRoleListRepValidationError) Reason() string
- type PageRoleListReq
- func (*PageRoleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *PageRoleListReq) GetPage() uint64
- func (x *PageRoleListReq) GetPageSize() uint64
- func (x *PageRoleListReq) GetRoleName() string
- func (*PageRoleListReq) ProtoMessage()
- func (x *PageRoleListReq) ProtoReflect() protoreflect.Message
- func (x *PageRoleListReq) Reset()
- func (x *PageRoleListReq) String() string
- func (m *PageRoleListReq) Validate() error
- func (m *PageRoleListReq) ValidateAll() error
- type PageRoleListReqMultiError
- type PageRoleListReqValidationError
- func (e PageRoleListReqValidationError) Cause() error
- func (e PageRoleListReqValidationError) Error() string
- func (e PageRoleListReqValidationError) ErrorName() string
- func (e PageRoleListReqValidationError) Field() string
- func (e PageRoleListReqValidationError) Key() bool
- func (e PageRoleListReqValidationError) Reason() string
- 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 RepStatus
- func (*RepStatus) Descriptor() ([]byte, []int)deprecated
- func (x *RepStatus) GetSuccess() bool
- func (*RepStatus) ProtoMessage()
- func (x *RepStatus) ProtoReflect() protoreflect.Message
- func (x *RepStatus) Reset()
- func (x *RepStatus) String() string
- func (m *RepStatus) Validate() error
- func (m *RepStatus) ValidateAll() error
- type RepStatusMultiError
- type RepStatusValidationError
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() string
- func (x *Role) GetName() string
- func (x *Role) GetRoleId() uint64
- 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 RoleValidationError
- type SetRolePoliciesReq
- func (*SetRolePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRolePoliciesReq) GetPolicyRules() []*PolicyRules
- func (x *SetRolePoliciesReq) GetRole() string
- func (*SetRolePoliciesReq) ProtoMessage()
- func (x *SetRolePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *SetRolePoliciesReq) Reset()
- func (x *SetRolePoliciesReq) String() string
- func (m *SetRolePoliciesReq) Validate() error
- func (m *SetRolePoliciesReq) ValidateAll() error
- type SetRolePoliciesReqMultiError
- type SetRolePoliciesReqValidationError
- func (e SetRolePoliciesReqValidationError) Cause() error
- func (e SetRolePoliciesReqValidationError) Error() string
- func (e SetRolePoliciesReqValidationError) ErrorName() string
- func (e SetRolePoliciesReqValidationError) Field() string
- func (e SetRolePoliciesReqValidationError) Key() bool
- func (e SetRolePoliciesReqValidationError) Reason() string
- type SetUserForRoleReq
- func (*SetUserForRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserForRoleReq) GetRoles() []string
- func (x *SetUserForRoleReq) GetUsername() string
- func (*SetUserForRoleReq) ProtoMessage()
- func (x *SetUserForRoleReq) ProtoReflect() protoreflect.Message
- func (x *SetUserForRoleReq) Reset()
- func (x *SetUserForRoleReq) String() string
- func (m *SetUserForRoleReq) Validate() error
- func (m *SetUserForRoleReq) ValidateAll() error
- type SetUserForRoleReqMultiError
- type SetUserForRoleReqValidationError
- func (e SetUserForRoleReqValidationError) Cause() error
- func (e SetUserForRoleReqValidationError) Error() string
- func (e SetUserForRoleReqValidationError) ErrorName() string
- func (e SetUserForRoleReqValidationError) Field() string
- func (e SetUserForRoleReqValidationError) Key() bool
- func (e SetUserForRoleReqValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
- func (UnimplementedAuthServer) AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error)
- func (UnimplementedAuthServer) CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error)
- func (UnimplementedAuthServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
- func (UnimplementedAuthServer) CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error)
- func (UnimplementedAuthServer) CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error)
- func (UnimplementedAuthServer) DelRole(context.Context, *DelRoleReq) (*RepStatus, error)
- func (UnimplementedAuthServer) DeleteMenu(context.Context, *IdReq) (*RepStatus, error)
- func (UnimplementedAuthServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error)
- func (UnimplementedAuthServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error)
- func (UnimplementedAuthServer) EditMenu(context.Context, *EditMenuReq) (*RepStatus, error)
- func (UnimplementedAuthServer) EditRole(context.Context, *EditRoleReq) (*RepStatus, error)
- func (UnimplementedAuthServer) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
- func (UnimplementedAuthServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, error)
- func (UnimplementedAuthServer) GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
- func (UnimplementedAuthServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
- func (UnimplementedAuthServer) GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
- func (UnimplementedAuthServer) ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error)
- func (UnimplementedAuthServer) ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error)
- func (UnimplementedAuthServer) ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
- func (UnimplementedAuthServer) ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
- func (UnimplementedAuthServer) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
- func (UnimplementedAuthServer) SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error)
- type UnsafeAuthServer
Constants ¶
const ( Auth_AddRole_FullMethodName = "/api.auth.v1.Auth/AddRole" Auth_EditRole_FullMethodName = "/api.auth.v1.Auth/EditRole" Auth_DelRole_FullMethodName = "/api.auth.v1.Auth/DelRole" Auth_FullRoleList_FullMethodName = "/api.auth.v1.Auth/FullRoleList" Auth_PageRoleList_FullMethodName = "/api.auth.v1.Auth/PageRoleList" Auth_AddRolesForUser_FullMethodName = "/api.auth.v1.Auth/AddRolesForUser" Auth_GetRolesForUser_FullMethodName = "/api.auth.v1.Auth/GetRolesForUser" Auth_GetUsersForRole_FullMethodName = "/api.auth.v1.Auth/GetUsersForRole" Auth_DeleteRoleForUser_FullMethodName = "/api.auth.v1.Auth/DeleteRoleForUser" Auth_DeleteRolesForUser_FullMethodName = "/api.auth.v1.Auth/DeleteRolesForUser" Auth_GetRolePolicies_FullMethodName = "/api.auth.v1.Auth/GetRolePolicies" Auth_SetRolePolicies_FullMethodName = "/api.auth.v1.Auth/SetRolePolicies" Auth_CheckAuth_FullMethodName = "/api.auth.v1.Auth/CheckAuth" Auth_CreateMenu_FullMethodName = "/api.auth.v1.Auth/CreateMenu" Auth_EditMenu_FullMethodName = "/api.auth.v1.Auth/EditMenu" Auth_DeleteMenu_FullMethodName = "/api.auth.v1.Auth/DeleteMenu" Auth_ListMenu_FullMethodName = "/api.auth.v1.Auth/ListMenu" Auth_ListMenuTree_FullMethodName = "/api.auth.v1.Auth/ListMenuTree" Auth_CreateRoleMenu_FullMethodName = "/api.auth.v1.Auth/CreateRoleMenu" Auth_CreateRoleMenuBtn_FullMethodName = "/api.auth.v1.Auth/CreateRoleMenuBtn" Auth_ListRoleMenu_FullMethodName = "/api.auth.v1.Auth/ListRoleMenu" Auth_ListRoleMenuTree_FullMethodName = "/api.auth.v1.Auth/ListRoleMenuTree" Auth_GetRoleMenuBtn_FullMethodName = "/api.auth.v1.Auth/GetRoleMenuBtn" )
const OperationAuthAddRole = "/api.auth.v1.Auth/AddRole"
const OperationAuthAddRolesForUser = "/api.auth.v1.Auth/AddRolesForUser"
const OperationAuthCheckAuth = "/api.auth.v1.Auth/CheckAuth"
const OperationAuthCreateMenu = "/api.auth.v1.Auth/CreateMenu"
const OperationAuthCreateRoleMenu = "/api.auth.v1.Auth/CreateRoleMenu"
const OperationAuthCreateRoleMenuBtn = "/api.auth.v1.Auth/CreateRoleMenuBtn"
const OperationAuthDelRole = "/api.auth.v1.Auth/DelRole"
const OperationAuthDeleteMenu = "/api.auth.v1.Auth/DeleteMenu"
const OperationAuthDeleteRoleForUser = "/api.auth.v1.Auth/DeleteRoleForUser"
const OperationAuthDeleteRolesForUser = "/api.auth.v1.Auth/DeleteRolesForUser"
const OperationAuthEditMenu = "/api.auth.v1.Auth/EditMenu"
const OperationAuthEditRole = "/api.auth.v1.Auth/EditRole"
const OperationAuthFullRoleList = "/api.auth.v1.Auth/FullRoleList"
const OperationAuthGetRoleMenuBtn = "/api.auth.v1.Auth/GetRoleMenuBtn"
const OperationAuthGetRolePolicies = "/api.auth.v1.Auth/GetRolePolicies"
const OperationAuthGetRolesForUser = "/api.auth.v1.Auth/GetRolesForUser"
const OperationAuthGetUsersForRole = "/api.auth.v1.Auth/GetUsersForRole"
const OperationAuthListMenu = "/api.auth.v1.Auth/ListMenu"
const OperationAuthListMenuTree = "/api.auth.v1.Auth/ListMenuTree"
const OperationAuthListRoleMenu = "/api.auth.v1.Auth/ListRoleMenu"
const OperationAuthListRoleMenuTree = "/api.auth.v1.Auth/ListRoleMenuTree"
const OperationAuthPageRoleList = "/api.auth.v1.Auth/PageRoleList"
const OperationAuthSetRolePolicies = "/api.auth.v1.Auth/SetRolePolicies"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.auth.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddRole", Handler: _Auth_AddRole_Handler, }, { MethodName: "EditRole", Handler: _Auth_EditRole_Handler, }, { MethodName: "DelRole", Handler: _Auth_DelRole_Handler, }, { MethodName: "FullRoleList", Handler: _Auth_FullRoleList_Handler, }, { MethodName: "PageRoleList", Handler: _Auth_PageRoleList_Handler, }, { MethodName: "AddRolesForUser", Handler: _Auth_AddRolesForUser_Handler, }, { MethodName: "GetRolesForUser", Handler: _Auth_GetRolesForUser_Handler, }, { MethodName: "GetUsersForRole", Handler: _Auth_GetUsersForRole_Handler, }, { MethodName: "DeleteRoleForUser", Handler: _Auth_DeleteRoleForUser_Handler, }, { MethodName: "DeleteRolesForUser", Handler: _Auth_DeleteRolesForUser_Handler, }, { MethodName: "GetRolePolicies", Handler: _Auth_GetRolePolicies_Handler, }, { MethodName: "SetRolePolicies", Handler: _Auth_SetRolePolicies_Handler, }, { MethodName: "CheckAuth", Handler: _Auth_CheckAuth_Handler, }, { MethodName: "CreateMenu", Handler: _Auth_CreateMenu_Handler, }, { MethodName: "EditMenu", Handler: _Auth_EditMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _Auth_DeleteMenu_Handler, }, { MethodName: "ListMenu", Handler: _Auth_ListMenu_Handler, }, { MethodName: "ListMenuTree", Handler: _Auth_ListMenuTree_Handler, }, { MethodName: "CreateRoleMenu", Handler: _Auth_CreateRoleMenu_Handler, }, { MethodName: "CreateRoleMenuBtn", Handler: _Auth_CreateRoleMenuBtn_Handler, }, { MethodName: "ListRoleMenu", Handler: _Auth_ListRoleMenu_Handler, }, { MethodName: "ListRoleMenuTree", Handler: _Auth_ListRoleMenuTree_Handler, }, { MethodName: "GetRoleMenuBtn", Handler: _Auth_GetRoleMenuBtn_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/v1/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthHTTPServer ¶
func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AddRoleRep ¶
type AddRoleRep struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // 角色名称 RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
添加角色回复
func (*AddRoleRep) Descriptor
deprecated
func (*AddRoleRep) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleRep.ProtoReflect.Descriptor instead.
func (*AddRoleRep) GetRoleId ¶
func (x *AddRoleRep) GetRoleId() uint64
func (*AddRoleRep) GetRoleName ¶
func (x *AddRoleRep) GetRoleName() string
func (*AddRoleRep) ProtoMessage ¶
func (*AddRoleRep) ProtoMessage()
func (*AddRoleRep) ProtoReflect ¶
func (x *AddRoleRep) ProtoReflect() protoreflect.Message
func (*AddRoleRep) Reset ¶
func (x *AddRoleRep) Reset()
func (*AddRoleRep) String ¶
func (x *AddRoleRep) String() string
func (*AddRoleRep) Validate ¶
func (m *AddRoleRep) Validate() error
Validate checks the field values on AddRoleRep 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 (*AddRoleRep) ValidateAll ¶
func (m *AddRoleRep) ValidateAll() error
ValidateAll checks the field values on AddRoleRep 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 AddRoleRepMultiError, or nil if none found.
type AddRoleRepMultiError ¶
type AddRoleRepMultiError []error
AddRoleRepMultiError is an error wrapping multiple validation errors returned by AddRoleRep.ValidateAll() if the designated constraints aren't met.
func (AddRoleRepMultiError) AllErrors ¶
func (m AddRoleRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddRoleRepMultiError) Error ¶
func (m AddRoleRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddRoleRepValidationError ¶
type AddRoleRepValidationError struct {
// contains filtered or unexported fields
}
AddRoleRepValidationError is the validation error returned by AddRoleRep.Validate if the designated constraints aren't met.
func (AddRoleRepValidationError) Cause ¶
func (e AddRoleRepValidationError) Cause() error
Cause function returns cause value.
func (AddRoleRepValidationError) Error ¶
func (e AddRoleRepValidationError) Error() string
Error satisfies the builtin error interface
func (AddRoleRepValidationError) ErrorName ¶
func (e AddRoleRepValidationError) ErrorName() string
ErrorName returns error name.
func (AddRoleRepValidationError) Field ¶
func (e AddRoleRepValidationError) Field() string
Field function returns field value.
func (AddRoleRepValidationError) Key ¶
func (e AddRoleRepValidationError) Key() bool
Key function returns key value.
func (AddRoleRepValidationError) Reason ¶
func (e AddRoleRepValidationError) Reason() string
Reason function returns reason value.
type AddRoleReq ¶
type AddRoleReq struct { // 名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
添加角色
func (*AddRoleReq) Descriptor
deprecated
func (*AddRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleReq.ProtoReflect.Descriptor instead.
func (*AddRoleReq) GetName ¶
func (x *AddRoleReq) GetName() string
func (*AddRoleReq) ProtoMessage ¶
func (*AddRoleReq) ProtoMessage()
func (*AddRoleReq) ProtoReflect ¶
func (x *AddRoleReq) ProtoReflect() protoreflect.Message
func (*AddRoleReq) Reset ¶
func (x *AddRoleReq) Reset()
func (*AddRoleReq) String ¶
func (x *AddRoleReq) String() string
func (*AddRoleReq) Validate ¶
func (m *AddRoleReq) Validate() error
Validate checks the field values on AddRoleReq 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 (*AddRoleReq) ValidateAll ¶
func (m *AddRoleReq) ValidateAll() error
ValidateAll checks the field values on AddRoleReq 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 AddRoleReqMultiError, or nil if none found.
type AddRoleReqMultiError ¶
type AddRoleReqMultiError []error
AddRoleReqMultiError is an error wrapping multiple validation errors returned by AddRoleReq.ValidateAll() if the designated constraints aren't met.
func (AddRoleReqMultiError) AllErrors ¶
func (m AddRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddRoleReqMultiError) Error ¶
func (m AddRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddRoleReqValidationError ¶
type AddRoleReqValidationError struct {
// contains filtered or unexported fields
}
AddRoleReqValidationError is the validation error returned by AddRoleReq.Validate if the designated constraints aren't met.
func (AddRoleReqValidationError) Cause ¶
func (e AddRoleReqValidationError) Cause() error
Cause function returns cause value.
func (AddRoleReqValidationError) Error ¶
func (e AddRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddRoleReqValidationError) ErrorName ¶
func (e AddRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddRoleReqValidationError) Field ¶
func (e AddRoleReqValidationError) Field() string
Field function returns field value.
func (AddRoleReqValidationError) Key ¶
func (e AddRoleReqValidationError) Key() bool
Key function returns key value.
func (AddRoleReqValidationError) Reason ¶
func (e AddRoleReqValidationError) Reason() string
Reason function returns reason value.
type AuthClient ¶
type AuthClient interface { // 添加角色 AddRole(ctx context.Context, in *AddRoleReq, opts ...grpc.CallOption) (*AddRoleRep, error) // 编辑角色 EditRole(ctx context.Context, in *EditRoleReq, opts ...grpc.CallOption) (*RepStatus, error) // 删除角色 DelRole(ctx context.Context, in *DelRoleReq, opts ...grpc.CallOption) (*RepStatus, error) // 获取角色列表(完整) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FullRoleListRep, error) // 获取角色列表(分页) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...grpc.CallOption) (*PageRoleListRep, error) // 给用户设置角色 AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...grpc.CallOption) (*RepStatus, error) // 获取用户角色 GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRep, error) // 获取角色有那些用户 GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...grpc.CallOption) (*GetUsersForRoleRep, error) // 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*RepStatus, error) // 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*RepStatus, error) // 获取角色有那些权限 GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...grpc.CallOption) (*GetRolePoliciesRep, error) // 设置角色权限 SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...grpc.CallOption) (*RepStatus, error) // 检查权限 CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...grpc.CallOption) (*RepStatus, error) // 创建菜单 CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error) // 更新菜单 EditMenu(ctx context.Context, in *EditMenuReq, opts ...grpc.CallOption) (*RepStatus, error) // 删除菜单 DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*RepStatus, error) // 菜单列表(完整) ListMenu(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListMenuRep, error) // 菜单列表(树) ListMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListMenuRep, error) // 角色菜单添加 CreateRoleMenu(ctx context.Context, in *CreateRoleMenuReq, opts ...grpc.CallOption) (*RepStatus, error) // 角色菜单按钮添加 CreateRoleMenuBtn(ctx context.Context, in *CreateRoleMenuBtnReq, opts ...grpc.CallOption) (*RepStatus, error) // 角色菜单列表(完整) ListRoleMenu(ctx context.Context, in *ListRoleMenuReq, opts ...grpc.CallOption) (*ListMenuRep, error) // 角色菜单 - 树状结构 ListRoleMenuTree(ctx context.Context, in *ListRoleMenuReq, opts ...grpc.CallOption) (*ListMenuRep, error) // 角色菜单按钮 - 列表 GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRep, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface { AddRole(ctx context.Context, req *AddRoleReq, opts ...http.CallOption) (rsp *AddRoleRep, err error) AddRolesForUser(ctx context.Context, req *SetUserForRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error) CheckAuth(ctx context.Context, req *CheckAuthReq, opts ...http.CallOption) (rsp *RepStatus, err error) CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error) CreateRoleMenu(ctx context.Context, req *CreateRoleMenuReq, opts ...http.CallOption) (rsp *RepStatus, err error) CreateRoleMenuBtn(ctx context.Context, req *CreateRoleMenuBtnReq, opts ...http.CallOption) (rsp *RepStatus, err error) DelRole(ctx context.Context, req *DelRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error) DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *RepStatus, err error) DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *RepStatus, err error) DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *RepStatus, err error) EditMenu(ctx context.Context, req *EditMenuReq, opts ...http.CallOption) (rsp *RepStatus, err error) EditRole(ctx context.Context, req *EditRoleReq, opts ...http.CallOption) (rsp *RepStatus, err error) FullRoleList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *FullRoleListRep, err error) GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRep, err error) GetRolePolicies(ctx context.Context, req *GetRolePoliciesReq, opts ...http.CallOption) (rsp *GetRolePoliciesRep, err error) GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRep, err error) GetUsersForRole(ctx context.Context, req *GetUsersForRoleReq, opts ...http.CallOption) (rsp *GetUsersForRoleRep, err error) ListMenu(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *ListMenuRep, err error) ListMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *ListMenuRep, err error) ListRoleMenu(ctx context.Context, req *ListRoleMenuReq, opts ...http.CallOption) (rsp *ListMenuRep, err error) ListRoleMenuTree(ctx context.Context, req *ListRoleMenuReq, opts ...http.CallOption) (rsp *ListMenuRep, err error) PageRoleList(ctx context.Context, req *PageRoleListReq, opts ...http.CallOption) (rsp *PageRoleListRep, err error) SetRolePolicies(ctx context.Context, req *SetRolePoliciesReq, opts ...http.CallOption) (rsp *RepStatus, err error) }
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) AddRole ¶
func (c *AuthHTTPClientImpl) AddRole(ctx context.Context, in *AddRoleReq, opts ...http.CallOption) (*AddRoleRep, error)
func (*AuthHTTPClientImpl) AddRolesForUser ¶
func (c *AuthHTTPClientImpl) AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) CheckAuth ¶
func (c *AuthHTTPClientImpl) CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) CreateMenu ¶ added in v0.0.8
func (c *AuthHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
func (*AuthHTTPClientImpl) CreateRoleMenu ¶ added in v0.0.14
func (c *AuthHTTPClientImpl) CreateRoleMenu(ctx context.Context, in *CreateRoleMenuReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) CreateRoleMenuBtn ¶ added in v0.0.14
func (c *AuthHTTPClientImpl) CreateRoleMenuBtn(ctx context.Context, in *CreateRoleMenuBtnReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) DelRole ¶
func (c *AuthHTTPClientImpl) DelRole(ctx context.Context, in *DelRoleReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) DeleteMenu ¶ added in v0.0.8
func (c *AuthHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) DeleteRoleForUser ¶
func (c *AuthHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) DeleteRolesForUser ¶
func (c *AuthHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) EditMenu ¶ added in v0.0.8
func (c *AuthHTTPClientImpl) EditMenu(ctx context.Context, in *EditMenuReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) EditRole ¶
func (c *AuthHTTPClientImpl) EditRole(ctx context.Context, in *EditRoleReq, opts ...http.CallOption) (*RepStatus, error)
func (*AuthHTTPClientImpl) FullRoleList ¶
func (c *AuthHTTPClientImpl) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*FullRoleListRep, error)
func (*AuthHTTPClientImpl) GetRoleMenuBtn ¶ added in v0.0.14
func (c *AuthHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRep, error)
func (*AuthHTTPClientImpl) GetRolePolicies ¶
func (c *AuthHTTPClientImpl) GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...http.CallOption) (*GetRolePoliciesRep, error)
func (*AuthHTTPClientImpl) GetRolesForUser ¶
func (c *AuthHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRep, error)
func (*AuthHTTPClientImpl) GetUsersForRole ¶
func (c *AuthHTTPClientImpl) GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...http.CallOption) (*GetUsersForRoleRep, error)
func (*AuthHTTPClientImpl) ListMenu ¶ added in v0.0.8
func (c *AuthHTTPClientImpl) ListMenu(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)
func (*AuthHTTPClientImpl) ListMenuTree ¶ added in v0.0.8
func (c *AuthHTTPClientImpl) ListMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ListMenuRep, error)
func (*AuthHTTPClientImpl) ListRoleMenu ¶ added in v0.0.14
func (c *AuthHTTPClientImpl) ListRoleMenu(ctx context.Context, in *ListRoleMenuReq, opts ...http.CallOption) (*ListMenuRep, error)
func (*AuthHTTPClientImpl) ListRoleMenuTree ¶ added in v0.0.14
func (c *AuthHTTPClientImpl) ListRoleMenuTree(ctx context.Context, in *ListRoleMenuReq, opts ...http.CallOption) (*ListMenuRep, error)
func (*AuthHTTPClientImpl) PageRoleList ¶
func (c *AuthHTTPClientImpl) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...http.CallOption) (*PageRoleListRep, error)
func (*AuthHTTPClientImpl) SetRolePolicies ¶
func (c *AuthHTTPClientImpl) SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...http.CallOption) (*RepStatus, error)
type AuthHTTPServer ¶
type AuthHTTPServer interface { // AddRole 添加角色 AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error) // AddRolesForUser 给用户设置角色 AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error) // CheckAuth 检查权限 CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error) // CreateMenu 创建菜单 CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) // CreateRoleMenu 角色菜单添加 CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error) // CreateRoleMenuBtn 角色菜单按钮添加 CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error) // DelRole 删除角色 DelRole(context.Context, *DelRoleReq) (*RepStatus, error) // DeleteMenu 删除菜单 DeleteMenu(context.Context, *IdReq) (*RepStatus, error) // DeleteRoleForUser 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error) // DeleteRolesForUser 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error) // EditMenu 更新菜单 EditMenu(context.Context, *EditMenuReq) (*RepStatus, error) // EditRole 编辑角色 EditRole(context.Context, *EditRoleReq) (*RepStatus, error) // FullRoleList 获取角色列表(完整) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error) // GetRoleMenuBtn 角色菜单按钮 - 列表 GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, error) // GetRolePolicies 获取角色有那些权限 GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error) // GetRolesForUser 获取用户角色 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error) // GetUsersForRole 获取角色有那些用户 GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error) // ListMenu 菜单列表(完整) ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error) // ListMenuTree 菜单列表(树) ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error) // ListRoleMenu 角色菜单列表(完整) ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error) // ListRoleMenuTree 角色菜单 - 树状结构 ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error) // PageRoleList 获取角色列表(分页) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error) // SetRolePolicies 设置角色权限 SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error) }
type AuthServer ¶
type AuthServer interface { // 添加角色 AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error) // 编辑角色 EditRole(context.Context, *EditRoleReq) (*RepStatus, error) // 删除角色 DelRole(context.Context, *DelRoleReq) (*RepStatus, error) // 获取角色列表(完整) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error) // 获取角色列表(分页) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error) // 给用户设置角色 AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error) // 获取用户角色 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error) // 获取角色有那些用户 GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error) // 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error) // 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error) // 获取角色有那些权限 GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error) // 设置角色权限 SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error) // 检查权限 CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error) // 创建菜单 CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) // 更新菜单 EditMenu(context.Context, *EditMenuReq) (*RepStatus, error) // 删除菜单 DeleteMenu(context.Context, *IdReq) (*RepStatus, error) // 菜单列表(完整) ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error) // 菜单列表(树) ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error) // 角色菜单添加 CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error) // 角色菜单按钮添加 CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error) // 角色菜单列表(完整) ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error) // 角色菜单 - 树状结构 ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error) // 角色菜单按钮 - 列表 GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CheckAuthReq ¶
type CheckAuthReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Mod string `protobuf:"bytes,3,opt,name=mod,proto3" json:"mod,omitempty"` // contains filtered or unexported fields }
权限检查
func (*CheckAuthReq) Descriptor
deprecated
func (*CheckAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.
func (*CheckAuthReq) GetMod ¶
func (x *CheckAuthReq) GetMod() string
func (*CheckAuthReq) GetRole ¶
func (x *CheckAuthReq) GetRole() string
func (*CheckAuthReq) GetUrl ¶
func (x *CheckAuthReq) GetUrl() string
func (*CheckAuthReq) ProtoMessage ¶
func (*CheckAuthReq) ProtoMessage()
func (*CheckAuthReq) ProtoReflect ¶
func (x *CheckAuthReq) ProtoReflect() protoreflect.Message
func (*CheckAuthReq) Reset ¶
func (x *CheckAuthReq) Reset()
func (*CheckAuthReq) String ¶
func (x *CheckAuthReq) String() string
func (*CheckAuthReq) Validate ¶
func (m *CheckAuthReq) Validate() error
Validate checks the field values on CheckAuthReq 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 (*CheckAuthReq) ValidateAll ¶
func (m *CheckAuthReq) ValidateAll() error
ValidateAll checks the field values on CheckAuthReq 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 CheckAuthReqMultiError, or nil if none found.
type CheckAuthReqMultiError ¶
type CheckAuthReqMultiError []error
CheckAuthReqMultiError is an error wrapping multiple validation errors returned by CheckAuthReq.ValidateAll() if the designated constraints aren't met.
func (CheckAuthReqMultiError) AllErrors ¶
func (m CheckAuthReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckAuthReqMultiError) Error ¶
func (m CheckAuthReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckAuthReqValidationError ¶
type CheckAuthReqValidationError struct {
// contains filtered or unexported fields
}
CheckAuthReqValidationError is the validation error returned by CheckAuthReq.Validate if the designated constraints aren't met.
func (CheckAuthReqValidationError) Cause ¶
func (e CheckAuthReqValidationError) Cause() error
Cause function returns cause value.
func (CheckAuthReqValidationError) Error ¶
func (e CheckAuthReqValidationError) Error() string
Error satisfies the builtin error interface
func (CheckAuthReqValidationError) ErrorName ¶
func (e CheckAuthReqValidationError) ErrorName() string
ErrorName returns error name.
func (CheckAuthReqValidationError) Field ¶
func (e CheckAuthReqValidationError) Field() string
Field function returns field value.
func (CheckAuthReqValidationError) Key ¶
func (e CheckAuthReqValidationError) Key() bool
Key function returns key value.
func (CheckAuthReqValidationError) Reason ¶
func (e CheckAuthReqValidationError) Reason() string
Reason function returns reason value.
type CreateMenuReq ¶ added in v0.0.8
type CreateMenuReq struct { // 父级id ParentId uint64 `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 uint64 `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
added in
v0.0.8
func (*CreateMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.
func (*CreateMenuReq) GetComponent ¶ added in v0.0.8
func (x *CreateMenuReq) GetComponent() string
func (*CreateMenuReq) GetHidden ¶ added in v0.0.8
func (x *CreateMenuReq) GetHidden() bool
func (*CreateMenuReq) GetIcon ¶ added in v0.0.8
func (x *CreateMenuReq) GetIcon() string
func (*CreateMenuReq) GetMenuBtns ¶ added in v0.0.8
func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn
func (*CreateMenuReq) GetName ¶ added in v0.0.8
func (x *CreateMenuReq) GetName() string
func (*CreateMenuReq) GetParentId ¶ added in v0.0.8
func (x *CreateMenuReq) GetParentId() uint64
func (*CreateMenuReq) GetParentIds ¶ added in v0.0.8
func (x *CreateMenuReq) GetParentIds() string
func (*CreateMenuReq) GetPath ¶ added in v0.0.8
func (x *CreateMenuReq) GetPath() string
func (*CreateMenuReq) GetSort ¶ added in v0.0.8
func (x *CreateMenuReq) GetSort() uint64
func (*CreateMenuReq) GetTitle ¶ added in v0.0.8
func (x *CreateMenuReq) GetTitle() string
func (*CreateMenuReq) ProtoMessage ¶ added in v0.0.8
func (*CreateMenuReq) ProtoMessage()
func (*CreateMenuReq) ProtoReflect ¶ added in v0.0.8
func (x *CreateMenuReq) ProtoReflect() protoreflect.Message
func (*CreateMenuReq) Reset ¶ added in v0.0.8
func (x *CreateMenuReq) Reset()
func (*CreateMenuReq) String ¶ added in v0.0.8
func (x *CreateMenuReq) String() string
func (*CreateMenuReq) Validate ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (m CreateMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuReqMultiError) Error ¶ added in v0.0.8
func (m CreateMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuReqValidationError ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (e CreateMenuReqValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuReqValidationError) Error ¶ added in v0.0.8
func (e CreateMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuReqValidationError) ErrorName ¶ added in v0.0.8
func (e CreateMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuReqValidationError) Field ¶ added in v0.0.8
func (e CreateMenuReqValidationError) Field() string
Field function returns field value.
func (CreateMenuReqValidationError) Key ¶ added in v0.0.8
func (e CreateMenuReqValidationError) Key() bool
Key function returns key value.
func (CreateMenuReqValidationError) Reason ¶ added in v0.0.8
func (e CreateMenuReqValidationError) Reason() string
Reason function returns reason value.
type CreateRoleMenuBtnReq ¶ added in v0.0.14
type CreateRoleMenuBtnReq struct { // 角色id RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // 菜单id MenuId uint64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"` // 按钮id数组 MenuBtnIds []uint64 `protobuf:"varint,3,rep,packed,name=menu_btn_ids,json=menuBtnIds,proto3" json:"menu_btn_ids,omitempty"` // contains filtered or unexported fields }
创建角色菜单按钮
func (*CreateRoleMenuBtnReq) Descriptor
deprecated
added in
v0.0.14
func (*CreateRoleMenuBtnReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleMenuBtnReq.ProtoReflect.Descriptor instead.
func (*CreateRoleMenuBtnReq) GetMenuBtnIds ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) GetMenuBtnIds() []uint64
func (*CreateRoleMenuBtnReq) GetMenuId ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) GetMenuId() uint64
func (*CreateRoleMenuBtnReq) GetRoleId ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) GetRoleId() uint64
func (*CreateRoleMenuBtnReq) ProtoMessage ¶ added in v0.0.14
func (*CreateRoleMenuBtnReq) ProtoMessage()
func (*CreateRoleMenuBtnReq) ProtoReflect ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) ProtoReflect() protoreflect.Message
func (*CreateRoleMenuBtnReq) Reset ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) Reset()
func (*CreateRoleMenuBtnReq) String ¶ added in v0.0.14
func (x *CreateRoleMenuBtnReq) String() string
func (*CreateRoleMenuBtnReq) Validate ¶ added in v0.0.14
func (m *CreateRoleMenuBtnReq) Validate() error
Validate checks the field values on CreateRoleMenuBtnReq 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 (*CreateRoleMenuBtnReq) ValidateAll ¶ added in v0.0.14
func (m *CreateRoleMenuBtnReq) ValidateAll() error
ValidateAll checks the field values on CreateRoleMenuBtnReq 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 CreateRoleMenuBtnReqMultiError, or nil if none found.
type CreateRoleMenuBtnReqMultiError ¶ added in v0.0.14
type CreateRoleMenuBtnReqMultiError []error
CreateRoleMenuBtnReqMultiError is an error wrapping multiple validation errors returned by CreateRoleMenuBtnReq.ValidateAll() if the designated constraints aren't met.
func (CreateRoleMenuBtnReqMultiError) AllErrors ¶ added in v0.0.14
func (m CreateRoleMenuBtnReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleMenuBtnReqMultiError) Error ¶ added in v0.0.14
func (m CreateRoleMenuBtnReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleMenuBtnReqValidationError ¶ added in v0.0.14
type CreateRoleMenuBtnReqValidationError struct {
// contains filtered or unexported fields
}
CreateRoleMenuBtnReqValidationError is the validation error returned by CreateRoleMenuBtnReq.Validate if the designated constraints aren't met.
func (CreateRoleMenuBtnReqValidationError) Cause ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleMenuBtnReqValidationError) Error ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleMenuBtnReqValidationError) ErrorName ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleMenuBtnReqValidationError) Field ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) Field() string
Field function returns field value.
func (CreateRoleMenuBtnReqValidationError) Key ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) Key() bool
Key function returns key value.
func (CreateRoleMenuBtnReqValidationError) Reason ¶ added in v0.0.14
func (e CreateRoleMenuBtnReqValidationError) Reason() string
Reason function returns reason value.
type CreateRoleMenuReq ¶ added in v0.0.14
type CreateRoleMenuReq struct { // 角色id RoleId uint64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // 菜单id数组 MenuIds []uint64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleMenuReq) Descriptor
deprecated
added in
v0.0.14
func (*CreateRoleMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleMenuReq.ProtoReflect.Descriptor instead.
func (*CreateRoleMenuReq) GetMenuIds ¶ added in v0.0.14
func (x *CreateRoleMenuReq) GetMenuIds() []uint64
func (*CreateRoleMenuReq) GetRoleId ¶ added in v0.0.14
func (x *CreateRoleMenuReq) GetRoleId() uint64
func (*CreateRoleMenuReq) ProtoMessage ¶ added in v0.0.14
func (*CreateRoleMenuReq) ProtoMessage()
func (*CreateRoleMenuReq) ProtoReflect ¶ added in v0.0.14
func (x *CreateRoleMenuReq) ProtoReflect() protoreflect.Message
func (*CreateRoleMenuReq) Reset ¶ added in v0.0.14
func (x *CreateRoleMenuReq) Reset()
func (*CreateRoleMenuReq) String ¶ added in v0.0.14
func (x *CreateRoleMenuReq) String() string
func (*CreateRoleMenuReq) Validate ¶ added in v0.0.14
func (m *CreateRoleMenuReq) Validate() error
Validate checks the field values on CreateRoleMenuReq 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 (*CreateRoleMenuReq) ValidateAll ¶ added in v0.0.14
func (m *CreateRoleMenuReq) ValidateAll() error
ValidateAll checks the field values on CreateRoleMenuReq 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 CreateRoleMenuReqMultiError, or nil if none found.
type CreateRoleMenuReqMultiError ¶ added in v0.0.14
type CreateRoleMenuReqMultiError []error
CreateRoleMenuReqMultiError is an error wrapping multiple validation errors returned by CreateRoleMenuReq.ValidateAll() if the designated constraints aren't met.
func (CreateRoleMenuReqMultiError) AllErrors ¶ added in v0.0.14
func (m CreateRoleMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleMenuReqMultiError) Error ¶ added in v0.0.14
func (m CreateRoleMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleMenuReqValidationError ¶ added in v0.0.14
type CreateRoleMenuReqValidationError struct {
// contains filtered or unexported fields
}
CreateRoleMenuReqValidationError is the validation error returned by CreateRoleMenuReq.Validate if the designated constraints aren't met.
func (CreateRoleMenuReqValidationError) Cause ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleMenuReqValidationError) Error ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleMenuReqValidationError) ErrorName ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleMenuReqValidationError) Field ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) Field() string
Field function returns field value.
func (CreateRoleMenuReqValidationError) Key ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) Key() bool
Key function returns key value.
func (CreateRoleMenuReqValidationError) Reason ¶ added in v0.0.14
func (e CreateRoleMenuReqValidationError) Reason() string
Reason function returns reason value.
type DelRoleReq ¶
type DelRoleReq struct { RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // contains filtered or unexported fields }
删除角色
func (*DelRoleReq) Descriptor
deprecated
func (*DelRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use DelRoleReq.ProtoReflect.Descriptor instead.
func (*DelRoleReq) GetRoleId ¶
func (x *DelRoleReq) GetRoleId() uint64
func (*DelRoleReq) ProtoMessage ¶
func (*DelRoleReq) ProtoMessage()
func (*DelRoleReq) ProtoReflect ¶
func (x *DelRoleReq) ProtoReflect() protoreflect.Message
func (*DelRoleReq) Reset ¶
func (x *DelRoleReq) Reset()
func (*DelRoleReq) String ¶
func (x *DelRoleReq) String() string
func (*DelRoleReq) Validate ¶
func (m *DelRoleReq) Validate() error
Validate checks the field values on DelRoleReq 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 (*DelRoleReq) ValidateAll ¶
func (m *DelRoleReq) ValidateAll() error
ValidateAll checks the field values on DelRoleReq 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 DelRoleReqMultiError, or nil if none found.
type DelRoleReqMultiError ¶
type DelRoleReqMultiError []error
DelRoleReqMultiError is an error wrapping multiple validation errors returned by DelRoleReq.ValidateAll() if the designated constraints aren't met.
func (DelRoleReqMultiError) AllErrors ¶
func (m DelRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DelRoleReqMultiError) Error ¶
func (m DelRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DelRoleReqValidationError ¶
type DelRoleReqValidationError struct {
// contains filtered or unexported fields
}
DelRoleReqValidationError is the validation error returned by DelRoleReq.Validate if the designated constraints aren't met.
func (DelRoleReqValidationError) Cause ¶
func (e DelRoleReqValidationError) Cause() error
Cause function returns cause value.
func (DelRoleReqValidationError) Error ¶
func (e DelRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (DelRoleReqValidationError) ErrorName ¶
func (e DelRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (DelRoleReqValidationError) Field ¶
func (e DelRoleReqValidationError) Field() string
Field function returns field value.
func (DelRoleReqValidationError) Key ¶
func (e DelRoleReqValidationError) Key() bool
Key function returns key value.
func (DelRoleReqValidationError) Reason ¶
func (e DelRoleReqValidationError) 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 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 EditMenuReq ¶ added in v0.0.8
type EditMenuReq struct { // 主键id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 父级id ParentId uint64 `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 uint64 `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 (*EditMenuReq) Descriptor
deprecated
added in
v0.0.8
func (*EditMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use EditMenuReq.ProtoReflect.Descriptor instead.
func (*EditMenuReq) GetComponent ¶ added in v0.0.8
func (x *EditMenuReq) GetComponent() string
func (*EditMenuReq) GetHidden ¶ added in v0.0.8
func (x *EditMenuReq) GetHidden() bool
func (*EditMenuReq) GetIcon ¶ added in v0.0.8
func (x *EditMenuReq) GetIcon() string
func (*EditMenuReq) GetId ¶ added in v0.0.8
func (x *EditMenuReq) GetId() uint64
func (*EditMenuReq) GetMenuBtns ¶ added in v0.0.12
func (x *EditMenuReq) GetMenuBtns() []*MenuBtn
func (*EditMenuReq) GetName ¶ added in v0.0.8
func (x *EditMenuReq) GetName() string
func (*EditMenuReq) GetParentId ¶ added in v0.0.8
func (x *EditMenuReq) GetParentId() uint64
func (*EditMenuReq) GetParentIds ¶ added in v0.0.8
func (x *EditMenuReq) GetParentIds() string
func (*EditMenuReq) GetPath ¶ added in v0.0.8
func (x *EditMenuReq) GetPath() string
func (*EditMenuReq) GetSort ¶ added in v0.0.8
func (x *EditMenuReq) GetSort() uint64
func (*EditMenuReq) GetTitle ¶ added in v0.0.8
func (x *EditMenuReq) GetTitle() string
func (*EditMenuReq) ProtoMessage ¶ added in v0.0.8
func (*EditMenuReq) ProtoMessage()
func (*EditMenuReq) ProtoReflect ¶ added in v0.0.8
func (x *EditMenuReq) ProtoReflect() protoreflect.Message
func (*EditMenuReq) Reset ¶ added in v0.0.8
func (x *EditMenuReq) Reset()
func (*EditMenuReq) String ¶ added in v0.0.8
func (x *EditMenuReq) String() string
func (*EditMenuReq) Validate ¶ added in v0.0.8
func (m *EditMenuReq) Validate() error
Validate checks the field values on EditMenuReq 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 (*EditMenuReq) ValidateAll ¶ added in v0.0.8
func (m *EditMenuReq) ValidateAll() error
ValidateAll checks the field values on EditMenuReq 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 EditMenuReqMultiError, or nil if none found.
type EditMenuReqMultiError ¶ added in v0.0.8
type EditMenuReqMultiError []error
EditMenuReqMultiError is an error wrapping multiple validation errors returned by EditMenuReq.ValidateAll() if the designated constraints aren't met.
func (EditMenuReqMultiError) AllErrors ¶ added in v0.0.8
func (m EditMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditMenuReqMultiError) Error ¶ added in v0.0.8
func (m EditMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditMenuReqValidationError ¶ added in v0.0.8
type EditMenuReqValidationError struct {
// contains filtered or unexported fields
}
EditMenuReqValidationError is the validation error returned by EditMenuReq.Validate if the designated constraints aren't met.
func (EditMenuReqValidationError) Cause ¶ added in v0.0.8
func (e EditMenuReqValidationError) Cause() error
Cause function returns cause value.
func (EditMenuReqValidationError) Error ¶ added in v0.0.8
func (e EditMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (EditMenuReqValidationError) ErrorName ¶ added in v0.0.8
func (e EditMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (EditMenuReqValidationError) Field ¶ added in v0.0.8
func (e EditMenuReqValidationError) Field() string
Field function returns field value.
func (EditMenuReqValidationError) Key ¶ added in v0.0.8
func (e EditMenuReqValidationError) Key() bool
Key function returns key value.
func (EditMenuReqValidationError) Reason ¶ added in v0.0.8
func (e EditMenuReqValidationError) Reason() string
Reason function returns reason value.
type EditRoleReq ¶
type EditRoleReq struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // 角色名称 RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
编辑角色
func (*EditRoleReq) Descriptor
deprecated
func (*EditRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use EditRoleReq.ProtoReflect.Descriptor instead.
func (*EditRoleReq) GetRoleId ¶
func (x *EditRoleReq) GetRoleId() uint64
func (*EditRoleReq) GetRoleName ¶
func (x *EditRoleReq) GetRoleName() string
func (*EditRoleReq) ProtoMessage ¶
func (*EditRoleReq) ProtoMessage()
func (*EditRoleReq) ProtoReflect ¶
func (x *EditRoleReq) ProtoReflect() protoreflect.Message
func (*EditRoleReq) Reset ¶
func (x *EditRoleReq) Reset()
func (*EditRoleReq) String ¶
func (x *EditRoleReq) String() string
func (*EditRoleReq) Validate ¶
func (m *EditRoleReq) Validate() error
Validate checks the field values on EditRoleReq 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 (*EditRoleReq) ValidateAll ¶
func (m *EditRoleReq) ValidateAll() error
ValidateAll checks the field values on EditRoleReq 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 EditRoleReqMultiError, or nil if none found.
type EditRoleReqMultiError ¶
type EditRoleReqMultiError []error
EditRoleReqMultiError is an error wrapping multiple validation errors returned by EditRoleReq.ValidateAll() if the designated constraints aren't met.
func (EditRoleReqMultiError) AllErrors ¶
func (m EditRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditRoleReqMultiError) Error ¶
func (m EditRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditRoleReqValidationError ¶
type EditRoleReqValidationError struct {
// contains filtered or unexported fields
}
EditRoleReqValidationError is the validation error returned by EditRoleReq.Validate if the designated constraints aren't met.
func (EditRoleReqValidationError) Cause ¶
func (e EditRoleReqValidationError) Cause() error
Cause function returns cause value.
func (EditRoleReqValidationError) Error ¶
func (e EditRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (EditRoleReqValidationError) ErrorName ¶
func (e EditRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (EditRoleReqValidationError) Field ¶
func (e EditRoleReqValidationError) Field() string
Field function returns field value.
func (EditRoleReqValidationError) Key ¶
func (e EditRoleReqValidationError) Key() bool
Key function returns key value.
func (EditRoleReqValidationError) Reason ¶
func (e EditRoleReqValidationError) Reason() string
Reason function returns reason value.
type FullRoleListRep ¶
type FullRoleListRep struct { List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
完整角色列表回复
func (*FullRoleListRep) Descriptor
deprecated
func (*FullRoleListRep) Descriptor() ([]byte, []int)
Deprecated: Use FullRoleListRep.ProtoReflect.Descriptor instead.
func (*FullRoleListRep) GetList ¶
func (x *FullRoleListRep) GetList() []*Role
func (*FullRoleListRep) ProtoMessage ¶
func (*FullRoleListRep) ProtoMessage()
func (*FullRoleListRep) ProtoReflect ¶
func (x *FullRoleListRep) ProtoReflect() protoreflect.Message
func (*FullRoleListRep) Reset ¶
func (x *FullRoleListRep) Reset()
func (*FullRoleListRep) String ¶
func (x *FullRoleListRep) String() string
func (*FullRoleListRep) Validate ¶
func (m *FullRoleListRep) Validate() error
Validate checks the field values on FullRoleListRep 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 (*FullRoleListRep) ValidateAll ¶
func (m *FullRoleListRep) ValidateAll() error
ValidateAll checks the field values on FullRoleListRep 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 FullRoleListRepMultiError, or nil if none found.
type FullRoleListRepMultiError ¶
type FullRoleListRepMultiError []error
FullRoleListRepMultiError is an error wrapping multiple validation errors returned by FullRoleListRep.ValidateAll() if the designated constraints aren't met.
func (FullRoleListRepMultiError) AllErrors ¶
func (m FullRoleListRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FullRoleListRepMultiError) Error ¶
func (m FullRoleListRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FullRoleListRepValidationError ¶
type FullRoleListRepValidationError struct {
// contains filtered or unexported fields
}
FullRoleListRepValidationError is the validation error returned by FullRoleListRep.Validate if the designated constraints aren't met.
func (FullRoleListRepValidationError) Cause ¶
func (e FullRoleListRepValidationError) Cause() error
Cause function returns cause value.
func (FullRoleListRepValidationError) Error ¶
func (e FullRoleListRepValidationError) Error() string
Error satisfies the builtin error interface
func (FullRoleListRepValidationError) ErrorName ¶
func (e FullRoleListRepValidationError) ErrorName() string
ErrorName returns error name.
func (FullRoleListRepValidationError) Field ¶
func (e FullRoleListRepValidationError) Field() string
Field function returns field value.
func (FullRoleListRepValidationError) Key ¶
func (e FullRoleListRepValidationError) Key() bool
Key function returns key value.
func (FullRoleListRepValidationError) Reason ¶
func (e FullRoleListRepValidationError) Reason() string
Reason function returns reason value.
type GetRoleMenuBtnRep ¶ added in v0.0.15
type GetRoleMenuBtnRep struct { // 菜单按钮列表 List []*MenuBtn `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
角色菜单按钮列表
func (*GetRoleMenuBtnRep) Descriptor
deprecated
added in
v0.0.15
func (*GetRoleMenuBtnRep) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuBtnRep.ProtoReflect.Descriptor instead.
func (*GetRoleMenuBtnRep) GetList ¶ added in v0.0.15
func (x *GetRoleMenuBtnRep) GetList() []*MenuBtn
func (*GetRoleMenuBtnRep) ProtoMessage ¶ added in v0.0.15
func (*GetRoleMenuBtnRep) ProtoMessage()
func (*GetRoleMenuBtnRep) ProtoReflect ¶ added in v0.0.15
func (x *GetRoleMenuBtnRep) ProtoReflect() protoreflect.Message
func (*GetRoleMenuBtnRep) Reset ¶ added in v0.0.15
func (x *GetRoleMenuBtnRep) Reset()
func (*GetRoleMenuBtnRep) String ¶ added in v0.0.15
func (x *GetRoleMenuBtnRep) String() string
func (*GetRoleMenuBtnRep) Validate ¶ added in v0.0.15
func (m *GetRoleMenuBtnRep) Validate() error
Validate checks the field values on GetRoleMenuBtnRep 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 (*GetRoleMenuBtnRep) ValidateAll ¶ added in v0.0.15
func (m *GetRoleMenuBtnRep) ValidateAll() error
ValidateAll checks the field values on GetRoleMenuBtnRep 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 GetRoleMenuBtnRepMultiError, or nil if none found.
type GetRoleMenuBtnRepMultiError ¶ added in v0.0.15
type GetRoleMenuBtnRepMultiError []error
GetRoleMenuBtnRepMultiError is an error wrapping multiple validation errors returned by GetRoleMenuBtnRep.ValidateAll() if the designated constraints aren't met.
func (GetRoleMenuBtnRepMultiError) AllErrors ¶ added in v0.0.15
func (m GetRoleMenuBtnRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuBtnRepMultiError) Error ¶ added in v0.0.15
func (m GetRoleMenuBtnRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuBtnRepValidationError ¶ added in v0.0.15
type GetRoleMenuBtnRepValidationError struct {
// contains filtered or unexported fields
}
GetRoleMenuBtnRepValidationError is the validation error returned by GetRoleMenuBtnRep.Validate if the designated constraints aren't met.
func (GetRoleMenuBtnRepValidationError) Cause ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuBtnRepValidationError) Error ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuBtnRepValidationError) ErrorName ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuBtnRepValidationError) Field ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) Field() string
Field function returns field value.
func (GetRoleMenuBtnRepValidationError) Key ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuBtnRepValidationError) Reason ¶ added in v0.0.15
func (e GetRoleMenuBtnRepValidationError) Reason() string
Reason function returns reason value.
type GetRoleMenuBtnReq ¶ added in v0.0.14
type GetRoleMenuBtnReq struct { // 角色id RoleId uint64 `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 uint64 `protobuf:"varint,3,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"` // contains filtered or unexported fields }
获取角色菜单按钮
func (*GetRoleMenuBtnReq) Descriptor
deprecated
added in
v0.0.14
func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.
func (*GetRoleMenuBtnReq) GetMenuId ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) GetMenuId() uint64
func (*GetRoleMenuBtnReq) GetRoleId ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) GetRoleId() uint64
func (*GetRoleMenuBtnReq) GetRoleName ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) GetRoleName() string
func (*GetRoleMenuBtnReq) ProtoMessage ¶ added in v0.0.14
func (*GetRoleMenuBtnReq) ProtoMessage()
func (*GetRoleMenuBtnReq) ProtoReflect ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
func (*GetRoleMenuBtnReq) Reset ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) Reset()
func (*GetRoleMenuBtnReq) String ¶ added in v0.0.14
func (x *GetRoleMenuBtnReq) String() string
func (*GetRoleMenuBtnReq) Validate ¶ added in v0.0.14
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 ¶ added in v0.0.14
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 ¶ added in v0.0.14
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 ¶ added in v0.0.14
func (m GetRoleMenuBtnReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleMenuBtnReqMultiError) Error ¶ added in v0.0.14
func (m GetRoleMenuBtnReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleMenuBtnReqValidationError ¶ added in v0.0.14
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 ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) Cause() error
Cause function returns cause value.
func (GetRoleMenuBtnReqValidationError) Error ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleMenuBtnReqValidationError) ErrorName ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleMenuBtnReqValidationError) Field ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) Field() string
Field function returns field value.
func (GetRoleMenuBtnReqValidationError) Key ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) Key() bool
Key function returns key value.
func (GetRoleMenuBtnReqValidationError) Reason ¶ added in v0.0.14
func (e GetRoleMenuBtnReqValidationError) Reason() string
Reason function returns reason value.
type GetRolePoliciesRep ¶
type GetRolePoliciesRep struct { PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"` // contains filtered or unexported fields }
获取角色有那些权限 回复
func (*GetRolePoliciesRep) Descriptor
deprecated
func (*GetRolePoliciesRep) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePoliciesRep.ProtoReflect.Descriptor instead.
func (*GetRolePoliciesRep) GetPolicyRules ¶
func (x *GetRolePoliciesRep) GetPolicyRules() []*PolicyRules
func (*GetRolePoliciesRep) ProtoMessage ¶
func (*GetRolePoliciesRep) ProtoMessage()
func (*GetRolePoliciesRep) ProtoReflect ¶
func (x *GetRolePoliciesRep) ProtoReflect() protoreflect.Message
func (*GetRolePoliciesRep) Reset ¶
func (x *GetRolePoliciesRep) Reset()
func (*GetRolePoliciesRep) String ¶
func (x *GetRolePoliciesRep) String() string
func (*GetRolePoliciesRep) Validate ¶
func (m *GetRolePoliciesRep) Validate() error
Validate checks the field values on GetRolePoliciesRep 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 (*GetRolePoliciesRep) ValidateAll ¶
func (m *GetRolePoliciesRep) ValidateAll() error
ValidateAll checks the field values on GetRolePoliciesRep 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 GetRolePoliciesRepMultiError, or nil if none found.
type GetRolePoliciesRepMultiError ¶
type GetRolePoliciesRepMultiError []error
GetRolePoliciesRepMultiError is an error wrapping multiple validation errors returned by GetRolePoliciesRep.ValidateAll() if the designated constraints aren't met.
func (GetRolePoliciesRepMultiError) AllErrors ¶
func (m GetRolePoliciesRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePoliciesRepMultiError) Error ¶
func (m GetRolePoliciesRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePoliciesRepValidationError ¶
type GetRolePoliciesRepValidationError struct {
// contains filtered or unexported fields
}
GetRolePoliciesRepValidationError is the validation error returned by GetRolePoliciesRep.Validate if the designated constraints aren't met.
func (GetRolePoliciesRepValidationError) Cause ¶
func (e GetRolePoliciesRepValidationError) Cause() error
Cause function returns cause value.
func (GetRolePoliciesRepValidationError) Error ¶
func (e GetRolePoliciesRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePoliciesRepValidationError) ErrorName ¶
func (e GetRolePoliciesRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePoliciesRepValidationError) Field ¶
func (e GetRolePoliciesRepValidationError) Field() string
Field function returns field value.
func (GetRolePoliciesRepValidationError) Key ¶
func (e GetRolePoliciesRepValidationError) Key() bool
Key function returns key value.
func (GetRolePoliciesRepValidationError) Reason ¶
func (e GetRolePoliciesRepValidationError) Reason() string
Reason function returns reason value.
type GetRolePoliciesReq ¶
type GetRolePoliciesReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
获取角色有那些权限
func (*GetRolePoliciesReq) Descriptor
deprecated
func (*GetRolePoliciesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePoliciesReq.ProtoReflect.Descriptor instead.
func (*GetRolePoliciesReq) GetRole ¶
func (x *GetRolePoliciesReq) GetRole() string
func (*GetRolePoliciesReq) ProtoMessage ¶
func (*GetRolePoliciesReq) ProtoMessage()
func (*GetRolePoliciesReq) ProtoReflect ¶
func (x *GetRolePoliciesReq) ProtoReflect() protoreflect.Message
func (*GetRolePoliciesReq) Reset ¶
func (x *GetRolePoliciesReq) Reset()
func (*GetRolePoliciesReq) String ¶
func (x *GetRolePoliciesReq) String() string
func (*GetRolePoliciesReq) Validate ¶
func (m *GetRolePoliciesReq) Validate() error
Validate checks the field values on GetRolePoliciesReq 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 (*GetRolePoliciesReq) ValidateAll ¶
func (m *GetRolePoliciesReq) ValidateAll() error
ValidateAll checks the field values on GetRolePoliciesReq 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 GetRolePoliciesReqMultiError, or nil if none found.
type GetRolePoliciesReqMultiError ¶
type GetRolePoliciesReqMultiError []error
GetRolePoliciesReqMultiError is an error wrapping multiple validation errors returned by GetRolePoliciesReq.ValidateAll() if the designated constraints aren't met.
func (GetRolePoliciesReqMultiError) AllErrors ¶
func (m GetRolePoliciesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePoliciesReqMultiError) Error ¶
func (m GetRolePoliciesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePoliciesReqValidationError ¶
type GetRolePoliciesReqValidationError struct {
// contains filtered or unexported fields
}
GetRolePoliciesReqValidationError is the validation error returned by GetRolePoliciesReq.Validate if the designated constraints aren't met.
func (GetRolePoliciesReqValidationError) Cause ¶
func (e GetRolePoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (GetRolePoliciesReqValidationError) Error ¶
func (e GetRolePoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePoliciesReqValidationError) ErrorName ¶
func (e GetRolePoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePoliciesReqValidationError) Field ¶
func (e GetRolePoliciesReqValidationError) Field() string
Field function returns field value.
func (GetRolePoliciesReqValidationError) Key ¶
func (e GetRolePoliciesReqValidationError) Key() bool
Key function returns key value.
func (GetRolePoliciesReqValidationError) Reason ¶
func (e GetRolePoliciesReqValidationError) Reason() string
Reason function returns reason value.
type GetRolesForUserRep ¶
type GetRolesForUserRep struct { // 角色列表 Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
获取用户角色回复
func (*GetRolesForUserRep) Descriptor
deprecated
func (*GetRolesForUserRep) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesForUserRep.ProtoReflect.Descriptor instead.
func (*GetRolesForUserRep) GetRoles ¶
func (x *GetRolesForUserRep) GetRoles() []string
func (*GetRolesForUserRep) ProtoMessage ¶
func (*GetRolesForUserRep) ProtoMessage()
func (*GetRolesForUserRep) ProtoReflect ¶
func (x *GetRolesForUserRep) ProtoReflect() protoreflect.Message
func (*GetRolesForUserRep) Reset ¶
func (x *GetRolesForUserRep) Reset()
func (*GetRolesForUserRep) String ¶
func (x *GetRolesForUserRep) String() string
func (*GetRolesForUserRep) Validate ¶
func (m *GetRolesForUserRep) Validate() error
Validate checks the field values on GetRolesForUserRep 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 (*GetRolesForUserRep) ValidateAll ¶
func (m *GetRolesForUserRep) ValidateAll() error
ValidateAll checks the field values on GetRolesForUserRep 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 GetRolesForUserRepMultiError, or nil if none found.
type GetRolesForUserRepMultiError ¶
type GetRolesForUserRepMultiError []error
GetRolesForUserRepMultiError is an error wrapping multiple validation errors returned by GetRolesForUserRep.ValidateAll() if the designated constraints aren't met.
func (GetRolesForUserRepMultiError) AllErrors ¶
func (m GetRolesForUserRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolesForUserRepMultiError) Error ¶
func (m GetRolesForUserRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolesForUserRepValidationError ¶
type GetRolesForUserRepValidationError struct {
// contains filtered or unexported fields
}
GetRolesForUserRepValidationError is the validation error returned by GetRolesForUserRep.Validate if the designated constraints aren't met.
func (GetRolesForUserRepValidationError) Cause ¶
func (e GetRolesForUserRepValidationError) Cause() error
Cause function returns cause value.
func (GetRolesForUserRepValidationError) Error ¶
func (e GetRolesForUserRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolesForUserRepValidationError) ErrorName ¶
func (e GetRolesForUserRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolesForUserRepValidationError) Field ¶
func (e GetRolesForUserRepValidationError) Field() string
Field function returns field value.
func (GetRolesForUserRepValidationError) Key ¶
func (e GetRolesForUserRepValidationError) Key() bool
Key function returns key value.
func (GetRolesForUserRepValidationError) Reason ¶
func (e GetRolesForUserRepValidationError) 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 GetUsersForRoleRep ¶
type GetUsersForRoleRep struct { // 用户列表 Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
获取角色有那些用户 回复
func (*GetUsersForRoleRep) Descriptor
deprecated
func (*GetUsersForRoleRep) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersForRoleRep.ProtoReflect.Descriptor instead.
func (*GetUsersForRoleRep) GetUsers ¶
func (x *GetUsersForRoleRep) GetUsers() []string
func (*GetUsersForRoleRep) ProtoMessage ¶
func (*GetUsersForRoleRep) ProtoMessage()
func (*GetUsersForRoleRep) ProtoReflect ¶
func (x *GetUsersForRoleRep) ProtoReflect() protoreflect.Message
func (*GetUsersForRoleRep) Reset ¶
func (x *GetUsersForRoleRep) Reset()
func (*GetUsersForRoleRep) String ¶
func (x *GetUsersForRoleRep) String() string
func (*GetUsersForRoleRep) Validate ¶
func (m *GetUsersForRoleRep) Validate() error
Validate checks the field values on GetUsersForRoleRep 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 (*GetUsersForRoleRep) ValidateAll ¶
func (m *GetUsersForRoleRep) ValidateAll() error
ValidateAll checks the field values on GetUsersForRoleRep 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 GetUsersForRoleRepMultiError, or nil if none found.
type GetUsersForRoleRepMultiError ¶
type GetUsersForRoleRepMultiError []error
GetUsersForRoleRepMultiError is an error wrapping multiple validation errors returned by GetUsersForRoleRep.ValidateAll() if the designated constraints aren't met.
func (GetUsersForRoleRepMultiError) AllErrors ¶
func (m GetUsersForRoleRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersForRoleRepMultiError) Error ¶
func (m GetUsersForRoleRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersForRoleRepValidationError ¶
type GetUsersForRoleRepValidationError struct {
// contains filtered or unexported fields
}
GetUsersForRoleRepValidationError is the validation error returned by GetUsersForRoleRep.Validate if the designated constraints aren't met.
func (GetUsersForRoleRepValidationError) Cause ¶
func (e GetUsersForRoleRepValidationError) Cause() error
Cause function returns cause value.
func (GetUsersForRoleRepValidationError) Error ¶
func (e GetUsersForRoleRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersForRoleRepValidationError) ErrorName ¶
func (e GetUsersForRoleRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersForRoleRepValidationError) Field ¶
func (e GetUsersForRoleRepValidationError) Field() string
Field function returns field value.
func (GetUsersForRoleRepValidationError) Key ¶
func (e GetUsersForRoleRepValidationError) Key() bool
Key function returns key value.
func (GetUsersForRoleRepValidationError) Reason ¶
func (e GetUsersForRoleRepValidationError) Reason() string
Reason function returns reason value.
type GetUsersForRoleReq ¶
type GetUsersForRoleReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
获取角色有那些用户
func (*GetUsersForRoleReq) Descriptor
deprecated
func (*GetUsersForRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersForRoleReq.ProtoReflect.Descriptor instead.
func (*GetUsersForRoleReq) GetRole ¶
func (x *GetUsersForRoleReq) GetRole() string
func (*GetUsersForRoleReq) ProtoMessage ¶
func (*GetUsersForRoleReq) ProtoMessage()
func (*GetUsersForRoleReq) ProtoReflect ¶
func (x *GetUsersForRoleReq) ProtoReflect() protoreflect.Message
func (*GetUsersForRoleReq) Reset ¶
func (x *GetUsersForRoleReq) Reset()
func (*GetUsersForRoleReq) String ¶
func (x *GetUsersForRoleReq) String() string
func (*GetUsersForRoleReq) Validate ¶
func (m *GetUsersForRoleReq) Validate() error
Validate checks the field values on GetUsersForRoleReq 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 (*GetUsersForRoleReq) ValidateAll ¶
func (m *GetUsersForRoleReq) ValidateAll() error
ValidateAll checks the field values on GetUsersForRoleReq 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 GetUsersForRoleReqMultiError, or nil if none found.
type GetUsersForRoleReqMultiError ¶
type GetUsersForRoleReqMultiError []error
GetUsersForRoleReqMultiError is an error wrapping multiple validation errors returned by GetUsersForRoleReq.ValidateAll() if the designated constraints aren't met.
func (GetUsersForRoleReqMultiError) AllErrors ¶
func (m GetUsersForRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersForRoleReqMultiError) Error ¶
func (m GetUsersForRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersForRoleReqValidationError ¶
type GetUsersForRoleReqValidationError struct {
// contains filtered or unexported fields
}
GetUsersForRoleReqValidationError is the validation error returned by GetUsersForRoleReq.Validate if the designated constraints aren't met.
func (GetUsersForRoleReqValidationError) Cause ¶
func (e GetUsersForRoleReqValidationError) Cause() error
Cause function returns cause value.
func (GetUsersForRoleReqValidationError) Error ¶
func (e GetUsersForRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersForRoleReqValidationError) ErrorName ¶
func (e GetUsersForRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersForRoleReqValidationError) Field ¶
func (e GetUsersForRoleReqValidationError) Field() string
Field function returns field value.
func (GetUsersForRoleReqValidationError) Key ¶
func (e GetUsersForRoleReqValidationError) Key() bool
Key function returns key value.
func (GetUsersForRoleReqValidationError) Reason ¶
func (e GetUsersForRoleReqValidationError) Reason() string
Reason function returns reason value.
type IdReq ¶ added in v0.0.8
type IdReq struct { // 主键id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
请求
func (*IdReq) Descriptor
deprecated
added in
v0.0.8
func (*IdReq) ProtoMessage ¶ added in v0.0.8
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶ added in v0.0.8
func (x *IdReq) ProtoReflect() protoreflect.Message
func (*IdReq) Validate ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (m IdReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdReqMultiError) Error ¶ added in v0.0.8
func (m IdReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdReqValidationError ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (e IdReqValidationError) Cause() error
Cause function returns cause value.
func (IdReqValidationError) Error ¶ added in v0.0.8
func (e IdReqValidationError) Error() string
Error satisfies the builtin error interface
func (IdReqValidationError) ErrorName ¶ added in v0.0.8
func (e IdReqValidationError) ErrorName() string
ErrorName returns error name.
func (IdReqValidationError) Field ¶ added in v0.0.8
func (e IdReqValidationError) Field() string
Field function returns field value.
func (IdReqValidationError) Key ¶ added in v0.0.8
func (e IdReqValidationError) Key() bool
Key function returns key value.
func (IdReqValidationError) Reason ¶ added in v0.0.8
func (e IdReqValidationError) Reason() string
Reason function returns reason value.
type ListMenuRep ¶ added in v0.0.8
type ListMenuRep struct { List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
菜单返回
func (*ListMenuRep) Descriptor
deprecated
added in
v0.0.8
func (*ListMenuRep) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuRep.ProtoReflect.Descriptor instead.
func (*ListMenuRep) GetList ¶ added in v0.0.8
func (x *ListMenuRep) GetList() []*Menu
func (*ListMenuRep) ProtoMessage ¶ added in v0.0.8
func (*ListMenuRep) ProtoMessage()
func (*ListMenuRep) ProtoReflect ¶ added in v0.0.8
func (x *ListMenuRep) ProtoReflect() protoreflect.Message
func (*ListMenuRep) Reset ¶ added in v0.0.8
func (x *ListMenuRep) Reset()
func (*ListMenuRep) String ¶ added in v0.0.8
func (x *ListMenuRep) String() string
func (*ListMenuRep) Validate ¶ added in v0.0.8
func (m *ListMenuRep) Validate() error
Validate checks the field values on ListMenuRep 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 (*ListMenuRep) ValidateAll ¶ added in v0.0.8
func (m *ListMenuRep) ValidateAll() error
ValidateAll checks the field values on ListMenuRep 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 ListMenuRepMultiError, or nil if none found.
type ListMenuRepMultiError ¶ added in v0.0.8
type ListMenuRepMultiError []error
ListMenuRepMultiError is an error wrapping multiple validation errors returned by ListMenuRep.ValidateAll() if the designated constraints aren't met.
func (ListMenuRepMultiError) AllErrors ¶ added in v0.0.8
func (m ListMenuRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuRepMultiError) Error ¶ added in v0.0.8
func (m ListMenuRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuRepValidationError ¶ added in v0.0.8
type ListMenuRepValidationError struct {
// contains filtered or unexported fields
}
ListMenuRepValidationError is the validation error returned by ListMenuRep.Validate if the designated constraints aren't met.
func (ListMenuRepValidationError) Cause ¶ added in v0.0.8
func (e ListMenuRepValidationError) Cause() error
Cause function returns cause value.
func (ListMenuRepValidationError) Error ¶ added in v0.0.8
func (e ListMenuRepValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuRepValidationError) ErrorName ¶ added in v0.0.8
func (e ListMenuRepValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuRepValidationError) Field ¶ added in v0.0.8
func (e ListMenuRepValidationError) Field() string
Field function returns field value.
func (ListMenuRepValidationError) Key ¶ added in v0.0.8
func (e ListMenuRepValidationError) Key() bool
Key function returns key value.
func (ListMenuRepValidationError) Reason ¶ added in v0.0.8
func (e ListMenuRepValidationError) Reason() string
Reason function returns reason value.
type ListRoleMenuReq ¶ added in v0.0.14
type ListRoleMenuReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
角色菜单列表
func (*ListRoleMenuReq) Descriptor
deprecated
added in
v0.0.14
func (*ListRoleMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleMenuReq.ProtoReflect.Descriptor instead.
func (*ListRoleMenuReq) GetRole ¶ added in v0.0.14
func (x *ListRoleMenuReq) GetRole() string
func (*ListRoleMenuReq) ProtoMessage ¶ added in v0.0.14
func (*ListRoleMenuReq) ProtoMessage()
func (*ListRoleMenuReq) ProtoReflect ¶ added in v0.0.14
func (x *ListRoleMenuReq) ProtoReflect() protoreflect.Message
func (*ListRoleMenuReq) Reset ¶ added in v0.0.14
func (x *ListRoleMenuReq) Reset()
func (*ListRoleMenuReq) String ¶ added in v0.0.14
func (x *ListRoleMenuReq) String() string
func (*ListRoleMenuReq) Validate ¶ added in v0.0.14
func (m *ListRoleMenuReq) Validate() error
Validate checks the field values on ListRoleMenuReq 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 (*ListRoleMenuReq) ValidateAll ¶ added in v0.0.14
func (m *ListRoleMenuReq) ValidateAll() error
ValidateAll checks the field values on ListRoleMenuReq 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 ListRoleMenuReqMultiError, or nil if none found.
type ListRoleMenuReqMultiError ¶ added in v0.0.14
type ListRoleMenuReqMultiError []error
ListRoleMenuReqMultiError is an error wrapping multiple validation errors returned by ListRoleMenuReq.ValidateAll() if the designated constraints aren't met.
func (ListRoleMenuReqMultiError) AllErrors ¶ added in v0.0.14
func (m ListRoleMenuReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleMenuReqMultiError) Error ¶ added in v0.0.14
func (m ListRoleMenuReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleMenuReqValidationError ¶ added in v0.0.14
type ListRoleMenuReqValidationError struct {
// contains filtered or unexported fields
}
ListRoleMenuReqValidationError is the validation error returned by ListRoleMenuReq.Validate if the designated constraints aren't met.
func (ListRoleMenuReqValidationError) Cause ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) Cause() error
Cause function returns cause value.
func (ListRoleMenuReqValidationError) Error ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleMenuReqValidationError) ErrorName ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleMenuReqValidationError) Field ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) Field() string
Field function returns field value.
func (ListRoleMenuReqValidationError) Key ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) Key() bool
Key function returns key value.
func (ListRoleMenuReqValidationError) Reason ¶ added in v0.0.14
func (e ListRoleMenuReqValidationError) Reason() string
Reason function returns reason value.
type Menu ¶ added in v0.0.8
type Menu struct { // 主键id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 父级id ParentId uint64 `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 uint64 `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
added in
v0.0.8
func (*Menu) GetChildren ¶ added in v0.0.8
func (*Menu) GetComponent ¶ added in v0.0.8
func (*Menu) GetCreatedAt ¶ added in v0.0.8
func (*Menu) GetMenuBtns ¶ added in v0.0.8
func (*Menu) GetParentId ¶ added in v0.0.8
func (*Menu) GetParentIds ¶ added in v0.0.8
func (*Menu) GetUpdatedAt ¶ added in v0.0.8
func (*Menu) ProtoMessage ¶ added in v0.0.8
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶ added in v0.0.8
func (x *Menu) ProtoReflect() protoreflect.Message
func (*Menu) Validate ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
type MenuBtn struct { // 主键id Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 菜单id MenuId uint64 `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
added in
v0.0.8
func (*MenuBtn) GetCreatedAt ¶ added in v0.0.8
func (*MenuBtn) GetDescription ¶ added in v0.0.8
func (*MenuBtn) GetIdentifier ¶ added in v0.0.8
func (*MenuBtn) GetUpdatedAt ¶ added in v0.0.8
func (*MenuBtn) ProtoMessage ¶ added in v0.0.8
func (*MenuBtn) ProtoMessage()
func (*MenuBtn) ProtoReflect ¶ added in v0.0.8
func (x *MenuBtn) ProtoReflect() protoreflect.Message
func (*MenuBtn) Validate ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (m MenuBtnMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuBtnMultiError) Error ¶ added in v0.0.8
func (m MenuBtnMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuBtnValidationError ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (e MenuBtnValidationError) Cause() error
Cause function returns cause value.
func (MenuBtnValidationError) Error ¶ added in v0.0.8
func (e MenuBtnValidationError) Error() string
Error satisfies the builtin error interface
func (MenuBtnValidationError) ErrorName ¶ added in v0.0.8
func (e MenuBtnValidationError) ErrorName() string
ErrorName returns error name.
func (MenuBtnValidationError) Field ¶ added in v0.0.8
func (e MenuBtnValidationError) Field() string
Field function returns field value.
func (MenuBtnValidationError) Key ¶ added in v0.0.8
func (e MenuBtnValidationError) Key() bool
Key function returns key value.
func (MenuBtnValidationError) Reason ¶ added in v0.0.8
func (e MenuBtnValidationError) Reason() string
Reason function returns reason value.
type MenuMultiError ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (m MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuMultiError) Error ¶ added in v0.0.8
func (m MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuValidationError ¶ added in v0.0.8
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 ¶ added in v0.0.8
func (e MenuValidationError) Cause() error
Cause function returns cause value.
func (MenuValidationError) Error ¶ added in v0.0.8
func (e MenuValidationError) Error() string
Error satisfies the builtin error interface
func (MenuValidationError) ErrorName ¶ added in v0.0.8
func (e MenuValidationError) ErrorName() string
ErrorName returns error name.
func (MenuValidationError) Field ¶ added in v0.0.8
func (e MenuValidationError) Field() string
Field function returns field value.
func (MenuValidationError) Key ¶ added in v0.0.8
func (e MenuValidationError) Key() bool
Key function returns key value.
func (MenuValidationError) Reason ¶ added in v0.0.8
func (e MenuValidationError) Reason() string
Reason function returns reason value.
type PageRoleListRep ¶
type PageRoleListRep struct { Total uint64 `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 (*PageRoleListRep) Descriptor
deprecated
func (*PageRoleListRep) Descriptor() ([]byte, []int)
Deprecated: Use PageRoleListRep.ProtoReflect.Descriptor instead.
func (*PageRoleListRep) GetList ¶
func (x *PageRoleListRep) GetList() []*Role
func (*PageRoleListRep) GetTotal ¶
func (x *PageRoleListRep) GetTotal() uint64
func (*PageRoleListRep) ProtoMessage ¶
func (*PageRoleListRep) ProtoMessage()
func (*PageRoleListRep) ProtoReflect ¶
func (x *PageRoleListRep) ProtoReflect() protoreflect.Message
func (*PageRoleListRep) Reset ¶
func (x *PageRoleListRep) Reset()
func (*PageRoleListRep) String ¶
func (x *PageRoleListRep) String() string
func (*PageRoleListRep) Validate ¶
func (m *PageRoleListRep) Validate() error
Validate checks the field values on PageRoleListRep 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 (*PageRoleListRep) ValidateAll ¶
func (m *PageRoleListRep) ValidateAll() error
ValidateAll checks the field values on PageRoleListRep 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 PageRoleListRepMultiError, or nil if none found.
type PageRoleListRepMultiError ¶
type PageRoleListRepMultiError []error
PageRoleListRepMultiError is an error wrapping multiple validation errors returned by PageRoleListRep.ValidateAll() if the designated constraints aren't met.
func (PageRoleListRepMultiError) AllErrors ¶
func (m PageRoleListRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageRoleListRepMultiError) Error ¶
func (m PageRoleListRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageRoleListRepValidationError ¶
type PageRoleListRepValidationError struct {
// contains filtered or unexported fields
}
PageRoleListRepValidationError is the validation error returned by PageRoleListRep.Validate if the designated constraints aren't met.
func (PageRoleListRepValidationError) Cause ¶
func (e PageRoleListRepValidationError) Cause() error
Cause function returns cause value.
func (PageRoleListRepValidationError) Error ¶
func (e PageRoleListRepValidationError) Error() string
Error satisfies the builtin error interface
func (PageRoleListRepValidationError) ErrorName ¶
func (e PageRoleListRepValidationError) ErrorName() string
ErrorName returns error name.
func (PageRoleListRepValidationError) Field ¶
func (e PageRoleListRepValidationError) Field() string
Field function returns field value.
func (PageRoleListRepValidationError) Key ¶
func (e PageRoleListRepValidationError) Key() bool
Key function returns key value.
func (PageRoleListRepValidationError) Reason ¶
func (e PageRoleListRepValidationError) Reason() string
Reason function returns reason value.
type PageRoleListReq ¶
type PageRoleListReq struct { Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` RoleName string `protobuf:"bytes,3,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
请求 分页角色列表
func (*PageRoleListReq) Descriptor
deprecated
func (*PageRoleListReq) Descriptor() ([]byte, []int)
Deprecated: Use PageRoleListReq.ProtoReflect.Descriptor instead.
func (*PageRoleListReq) GetPage ¶
func (x *PageRoleListReq) GetPage() uint64
func (*PageRoleListReq) GetPageSize ¶
func (x *PageRoleListReq) GetPageSize() uint64
func (*PageRoleListReq) GetRoleName ¶
func (x *PageRoleListReq) GetRoleName() string
func (*PageRoleListReq) ProtoMessage ¶
func (*PageRoleListReq) ProtoMessage()
func (*PageRoleListReq) ProtoReflect ¶
func (x *PageRoleListReq) ProtoReflect() protoreflect.Message
func (*PageRoleListReq) Reset ¶
func (x *PageRoleListReq) Reset()
func (*PageRoleListReq) String ¶
func (x *PageRoleListReq) String() string
func (*PageRoleListReq) Validate ¶
func (m *PageRoleListReq) Validate() error
Validate checks the field values on PageRoleListReq 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 (*PageRoleListReq) ValidateAll ¶
func (m *PageRoleListReq) ValidateAll() error
ValidateAll checks the field values on PageRoleListReq 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 PageRoleListReqMultiError, or nil if none found.
type PageRoleListReqMultiError ¶
type PageRoleListReqMultiError []error
PageRoleListReqMultiError is an error wrapping multiple validation errors returned by PageRoleListReq.ValidateAll() if the designated constraints aren't met.
func (PageRoleListReqMultiError) AllErrors ¶
func (m PageRoleListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageRoleListReqMultiError) Error ¶
func (m PageRoleListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageRoleListReqValidationError ¶
type PageRoleListReqValidationError struct {
// contains filtered or unexported fields
}
PageRoleListReqValidationError is the validation error returned by PageRoleListReq.Validate if the designated constraints aren't met.
func (PageRoleListReqValidationError) Cause ¶
func (e PageRoleListReqValidationError) Cause() error
Cause function returns cause value.
func (PageRoleListReqValidationError) Error ¶
func (e PageRoleListReqValidationError) Error() string
Error satisfies the builtin error interface
func (PageRoleListReqValidationError) ErrorName ¶
func (e PageRoleListReqValidationError) ErrorName() string
ErrorName returns error name.
func (PageRoleListReqValidationError) Field ¶
func (e PageRoleListReqValidationError) Field() string
Field function returns field value.
func (PageRoleListReqValidationError) Key ¶
func (e PageRoleListReqValidationError) Key() bool
Key function returns key value.
func (PageRoleListReqValidationError) Reason ¶
func (e PageRoleListReqValidationError) Reason() string
Reason function returns reason value.
type PolicyRules ¶
type PolicyRules struct { 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 RepStatus ¶ added in v0.0.8
type RepStatus struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
角色状态回复
func (*RepStatus) Descriptor
deprecated
added in
v0.0.8
func (*RepStatus) GetSuccess ¶ added in v0.0.8
func (*RepStatus) ProtoMessage ¶ added in v0.0.8
func (*RepStatus) ProtoMessage()
func (*RepStatus) ProtoReflect ¶ added in v0.0.8
func (x *RepStatus) ProtoReflect() protoreflect.Message
func (*RepStatus) Validate ¶ added in v0.0.8
Validate checks the field values on RepStatus 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 (*RepStatus) ValidateAll ¶ added in v0.0.8
ValidateAll checks the field values on RepStatus 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 RepStatusMultiError, or nil if none found.
type RepStatusMultiError ¶ added in v0.0.8
type RepStatusMultiError []error
RepStatusMultiError is an error wrapping multiple validation errors returned by RepStatus.ValidateAll() if the designated constraints aren't met.
func (RepStatusMultiError) AllErrors ¶ added in v0.0.8
func (m RepStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RepStatusMultiError) Error ¶ added in v0.0.8
func (m RepStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RepStatusValidationError ¶ added in v0.0.8
type RepStatusValidationError struct {
// contains filtered or unexported fields
}
RepStatusValidationError is the validation error returned by RepStatus.Validate if the designated constraints aren't met.
func (RepStatusValidationError) Cause ¶ added in v0.0.8
func (e RepStatusValidationError) Cause() error
Cause function returns cause value.
func (RepStatusValidationError) Error ¶ added in v0.0.8
func (e RepStatusValidationError) Error() string
Error satisfies the builtin error interface
func (RepStatusValidationError) ErrorName ¶ added in v0.0.8
func (e RepStatusValidationError) ErrorName() string
ErrorName returns error name.
func (RepStatusValidationError) Field ¶ added in v0.0.8
func (e RepStatusValidationError) Field() string
Field function returns field value.
func (RepStatusValidationError) Key ¶ added in v0.0.8
func (e RepStatusValidationError) Key() bool
Key function returns key value.
func (RepStatusValidationError) Reason ¶ added in v0.0.8
func (e RepStatusValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,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 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 SetRolePoliciesReq ¶
type SetRolePoliciesReq 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 (*SetRolePoliciesReq) Descriptor
deprecated
func (*SetRolePoliciesReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRolePoliciesReq.ProtoReflect.Descriptor instead.
func (*SetRolePoliciesReq) GetPolicyRules ¶
func (x *SetRolePoliciesReq) GetPolicyRules() []*PolicyRules
func (*SetRolePoliciesReq) GetRole ¶
func (x *SetRolePoliciesReq) GetRole() string
func (*SetRolePoliciesReq) ProtoMessage ¶
func (*SetRolePoliciesReq) ProtoMessage()
func (*SetRolePoliciesReq) ProtoReflect ¶
func (x *SetRolePoliciesReq) ProtoReflect() protoreflect.Message
func (*SetRolePoliciesReq) Reset ¶
func (x *SetRolePoliciesReq) Reset()
func (*SetRolePoliciesReq) String ¶
func (x *SetRolePoliciesReq) String() string
func (*SetRolePoliciesReq) Validate ¶
func (m *SetRolePoliciesReq) Validate() error
Validate checks the field values on SetRolePoliciesReq 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 (*SetRolePoliciesReq) ValidateAll ¶
func (m *SetRolePoliciesReq) ValidateAll() error
ValidateAll checks the field values on SetRolePoliciesReq 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 SetRolePoliciesReqMultiError, or nil if none found.
type SetRolePoliciesReqMultiError ¶
type SetRolePoliciesReqMultiError []error
SetRolePoliciesReqMultiError is an error wrapping multiple validation errors returned by SetRolePoliciesReq.ValidateAll() if the designated constraints aren't met.
func (SetRolePoliciesReqMultiError) AllErrors ¶
func (m SetRolePoliciesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRolePoliciesReqMultiError) Error ¶
func (m SetRolePoliciesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRolePoliciesReqValidationError ¶
type SetRolePoliciesReqValidationError struct {
// contains filtered or unexported fields
}
SetRolePoliciesReqValidationError is the validation error returned by SetRolePoliciesReq.Validate if the designated constraints aren't met.
func (SetRolePoliciesReqValidationError) Cause ¶
func (e SetRolePoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (SetRolePoliciesReqValidationError) Error ¶
func (e SetRolePoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetRolePoliciesReqValidationError) ErrorName ¶
func (e SetRolePoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetRolePoliciesReqValidationError) Field ¶
func (e SetRolePoliciesReqValidationError) Field() string
Field function returns field value.
func (SetRolePoliciesReqValidationError) Key ¶
func (e SetRolePoliciesReqValidationError) Key() bool
Key function returns key value.
func (SetRolePoliciesReqValidationError) Reason ¶
func (e SetRolePoliciesReqValidationError) Reason() string
Reason function returns reason value.
type SetUserForRoleReq ¶
type SetUserForRoleReq 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 (*SetUserForRoleReq) Descriptor
deprecated
func (*SetUserForRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUserForRoleReq.ProtoReflect.Descriptor instead.
func (*SetUserForRoleReq) GetRoles ¶
func (x *SetUserForRoleReq) GetRoles() []string
func (*SetUserForRoleReq) GetUsername ¶
func (x *SetUserForRoleReq) GetUsername() string
func (*SetUserForRoleReq) ProtoMessage ¶
func (*SetUserForRoleReq) ProtoMessage()
func (*SetUserForRoleReq) ProtoReflect ¶
func (x *SetUserForRoleReq) ProtoReflect() protoreflect.Message
func (*SetUserForRoleReq) Reset ¶
func (x *SetUserForRoleReq) Reset()
func (*SetUserForRoleReq) String ¶
func (x *SetUserForRoleReq) String() string
func (*SetUserForRoleReq) Validate ¶
func (m *SetUserForRoleReq) Validate() error
Validate checks the field values on SetUserForRoleReq 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 (*SetUserForRoleReq) ValidateAll ¶
func (m *SetUserForRoleReq) ValidateAll() error
ValidateAll checks the field values on SetUserForRoleReq 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 SetUserForRoleReqMultiError, or nil if none found.
type SetUserForRoleReqMultiError ¶
type SetUserForRoleReqMultiError []error
SetUserForRoleReqMultiError is an error wrapping multiple validation errors returned by SetUserForRoleReq.ValidateAll() if the designated constraints aren't met.
func (SetUserForRoleReqMultiError) AllErrors ¶
func (m SetUserForRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetUserForRoleReqMultiError) Error ¶
func (m SetUserForRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetUserForRoleReqValidationError ¶
type SetUserForRoleReqValidationError struct {
// contains filtered or unexported fields
}
SetUserForRoleReqValidationError is the validation error returned by SetUserForRoleReq.Validate if the designated constraints aren't met.
func (SetUserForRoleReqValidationError) Cause ¶
func (e SetUserForRoleReqValidationError) Cause() error
Cause function returns cause value.
func (SetUserForRoleReqValidationError) Error ¶
func (e SetUserForRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetUserForRoleReqValidationError) ErrorName ¶
func (e SetUserForRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetUserForRoleReqValidationError) Field ¶
func (e SetUserForRoleReqValidationError) Field() string
Field function returns field value.
func (SetUserForRoleReqValidationError) Key ¶
func (e SetUserForRoleReqValidationError) Key() bool
Key function returns key value.
func (SetUserForRoleReqValidationError) Reason ¶
func (e SetUserForRoleReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) AddRole ¶
func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
func (UnimplementedAuthServer) AddRolesForUser ¶
func (UnimplementedAuthServer) AddRolesForUser(context.Context, *SetUserForRoleReq) (*RepStatus, error)
func (UnimplementedAuthServer) CheckAuth ¶
func (UnimplementedAuthServer) CheckAuth(context.Context, *CheckAuthReq) (*RepStatus, error)
func (UnimplementedAuthServer) CreateMenu ¶ added in v0.0.8
func (UnimplementedAuthServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
func (UnimplementedAuthServer) CreateRoleMenu ¶ added in v0.0.14
func (UnimplementedAuthServer) CreateRoleMenu(context.Context, *CreateRoleMenuReq) (*RepStatus, error)
func (UnimplementedAuthServer) CreateRoleMenuBtn ¶ added in v0.0.14
func (UnimplementedAuthServer) CreateRoleMenuBtn(context.Context, *CreateRoleMenuBtnReq) (*RepStatus, error)
func (UnimplementedAuthServer) DelRole ¶
func (UnimplementedAuthServer) DelRole(context.Context, *DelRoleReq) (*RepStatus, error)
func (UnimplementedAuthServer) DeleteMenu ¶ added in v0.0.8
func (UnimplementedAuthServer) DeleteRoleForUser ¶
func (UnimplementedAuthServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RepStatus, error)
func (UnimplementedAuthServer) DeleteRolesForUser ¶
func (UnimplementedAuthServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RepStatus, error)
func (UnimplementedAuthServer) EditMenu ¶ added in v0.0.8
func (UnimplementedAuthServer) EditMenu(context.Context, *EditMenuReq) (*RepStatus, error)
func (UnimplementedAuthServer) EditRole ¶
func (UnimplementedAuthServer) EditRole(context.Context, *EditRoleReq) (*RepStatus, error)
func (UnimplementedAuthServer) FullRoleList ¶
func (UnimplementedAuthServer) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
func (UnimplementedAuthServer) GetRoleMenuBtn ¶ added in v0.0.14
func (UnimplementedAuthServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRep, error)
func (UnimplementedAuthServer) GetRolePolicies ¶
func (UnimplementedAuthServer) GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
func (UnimplementedAuthServer) GetRolesForUser ¶
func (UnimplementedAuthServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
func (UnimplementedAuthServer) GetUsersForRole ¶
func (UnimplementedAuthServer) GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
func (UnimplementedAuthServer) ListMenu ¶ added in v0.0.8
func (UnimplementedAuthServer) ListMenu(context.Context, *emptypb.Empty) (*ListMenuRep, error)
func (UnimplementedAuthServer) ListMenuTree ¶ added in v0.0.8
func (UnimplementedAuthServer) ListMenuTree(context.Context, *emptypb.Empty) (*ListMenuRep, error)
func (UnimplementedAuthServer) ListRoleMenu ¶ added in v0.0.14
func (UnimplementedAuthServer) ListRoleMenu(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
func (UnimplementedAuthServer) ListRoleMenuTree ¶ added in v0.0.14
func (UnimplementedAuthServer) ListRoleMenuTree(context.Context, *ListRoleMenuReq) (*ListMenuRep, error)
func (UnimplementedAuthServer) PageRoleList ¶
func (UnimplementedAuthServer) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
func (UnimplementedAuthServer) SetRolePolicies ¶
func (UnimplementedAuthServer) SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RepStatus, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.