v1

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Role_GetRoleMenuIds_FullMethodName   = "/manager.api.manager.role.v1.Role/GetRoleMenuIds"
	Role_ListRole_FullMethodName         = "/manager.api.manager.role.v1.Role/ListRole"
	Role_CreateRole_FullMethodName       = "/manager.api.manager.role.v1.Role/CreateRole"
	Role_UpdateRole_FullMethodName       = "/manager.api.manager.role.v1.Role/UpdateRole"
	Role_UpdateRoleMenu_FullMethodName   = "/manager.api.manager.role.v1.Role/UpdateRoleMenu"
	Role_UpdateRoleStatus_FullMethodName = "/manager.api.manager.role.v1.Role/UpdateRoleStatus"
	Role_DeleteRole_FullMethodName       = "/manager.api.manager.role.v1.Role/DeleteRole"
	Role_GetRole_FullMethodName          = "/manager.api.manager.role.v1.Role/GetRole"
)
View Source
const OperationRoleCreateRole = "/manager.api.manager.role.v1.Role/CreateRole"
View Source
const OperationRoleDeleteRole = "/manager.api.manager.role.v1.Role/DeleteRole"
View Source
const OperationRoleGetRole = "/manager.api.manager.role.v1.Role/GetRole"
View Source
const OperationRoleGetRoleMenuIds = "/manager.api.manager.role.v1.Role/GetRoleMenuIds"
View Source
const OperationRoleListRole = "/manager.api.manager.role.v1.Role/ListRole"
View Source
const OperationRoleUpdateRole = "/manager.api.manager.role.v1.Role/UpdateRole"
View Source
const OperationRoleUpdateRoleMenu = "/manager.api.manager.role.v1.Role/UpdateRoleMenu"
View Source
const OperationRoleUpdateRoleStatus = "/manager.api.manager.role.v1.Role/UpdateRoleStatus"

Variables

View Source
var File_api_manager_role_manager_role_proto protoreflect.FileDescriptor
View Source
var File_api_manager_role_manager_role_service_proto protoreflect.FileDescriptor
View Source
var Role_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.manager.role.v1.Role",
	HandlerType: (*RoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRoleMenuIds",
			Handler:    _Role_GetRoleMenuIds_Handler,
		},
		{
			MethodName: "ListRole",
			Handler:    _Role_ListRole_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _Role_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _Role_UpdateRole_Handler,
		},
		{
			MethodName: "UpdateRoleMenu",
			Handler:    _Role_UpdateRoleMenu_Handler,
		},
		{
			MethodName: "UpdateRoleStatus",
			Handler:    _Role_UpdateRoleStatus_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _Role_DeleteRole_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _Role_GetRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/manager/role/manager_role_service.proto",
}

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

Functions

func RegisterRoleHTTPServer

func RegisterRoleHTTPServer(s *http.Server, srv RoleHTTPServer)

func RegisterRoleServer

func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)

Types

type CreateRoleReply

type CreateRoleReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleReply) Descriptor deprecated

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

Deprecated: Use CreateRoleReply.ProtoReflect.Descriptor instead.

func (*CreateRoleReply) GetId

func (x *CreateRoleReply) GetId() uint32

func (*CreateRoleReply) ProtoMessage

func (*CreateRoleReply) ProtoMessage()

func (*CreateRoleReply) ProtoReflect

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

func (*CreateRoleReply) Reset

func (x *CreateRoleReply) Reset()

func (*CreateRoleReply) String

func (x *CreateRoleReply) String() string

func (*CreateRoleReply) Validate

func (m *CreateRoleReply) Validate() error

Validate checks the field values on CreateRoleReply 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 (*CreateRoleReply) ValidateAll

func (m *CreateRoleReply) ValidateAll() error

ValidateAll checks the field values on CreateRoleReply 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 CreateRoleReplyMultiError, or nil if none found.

type CreateRoleReplyMultiError

type CreateRoleReplyMultiError []error

CreateRoleReplyMultiError is an error wrapping multiple validation errors returned by CreateRoleReply.ValidateAll() if the designated constraints aren't met.

func (CreateRoleReplyMultiError) AllErrors

func (m CreateRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleReplyValidationError

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

CreateRoleReplyValidationError is the validation error returned by CreateRoleReply.Validate if the designated constraints aren't met.

func (CreateRoleReplyValidationError) Cause

Cause function returns cause value.

func (CreateRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleReplyValidationError) ErrorName

func (e CreateRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRoleReplyValidationError) Field

Field function returns field value.

func (CreateRoleReplyValidationError) Key

Key function returns key value.

func (CreateRoleReplyValidationError) Reason

Reason function returns reason value.

type CreateRoleRequest

type CreateRoleRequest struct {
	ParentId      uint32  `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name          string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Keyword       string  `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Status        *bool   `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
	DataScope     string  `protobuf:"bytes,5,opt,name=dataScope,proto3" json:"dataScope,omitempty"`
	DepartmentIds *string `protobuf:"bytes,6,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"`
	Description   *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetDataScope

func (x *CreateRoleRequest) GetDataScope() string

func (*CreateRoleRequest) GetDepartmentIds

func (x *CreateRoleRequest) GetDepartmentIds() string

func (*CreateRoleRequest) GetDescription

func (x *CreateRoleRequest) GetDescription() string

func (*CreateRoleRequest) GetKeyword

func (x *CreateRoleRequest) GetKeyword() string

func (*CreateRoleRequest) GetName

func (x *CreateRoleRequest) GetName() string

func (*CreateRoleRequest) GetParentId

func (x *CreateRoleRequest) GetParentId() uint32

func (*CreateRoleRequest) GetStatus

func (x *CreateRoleRequest) GetStatus() bool

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) ProtoReflect

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

func (*CreateRoleRequest) Reset

func (x *CreateRoleRequest) Reset()

func (*CreateRoleRequest) String

func (x *CreateRoleRequest) String() string

func (*CreateRoleRequest) Validate

func (m *CreateRoleRequest) Validate() error

Validate checks the field values on CreateRoleRequest 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 (*CreateRoleRequest) ValidateAll

func (m *CreateRoleRequest) ValidateAll() error

ValidateAll checks the field values on CreateRoleRequest 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 CreateRoleRequestMultiError, or nil if none found.

type CreateRoleRequestMultiError

type CreateRoleRequestMultiError []error

CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (CreateRoleRequestMultiError) AllErrors

func (m CreateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateRoleRequestValidationError

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

CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.

func (CreateRoleRequestValidationError) Cause

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteRoleReply

type DeleteRoleReply struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRoleReply) Descriptor deprecated

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

Deprecated: Use DeleteRoleReply.ProtoReflect.Descriptor instead.

func (*DeleteRoleReply) GetTotal

func (x *DeleteRoleReply) GetTotal() uint32

func (*DeleteRoleReply) ProtoMessage

func (*DeleteRoleReply) ProtoMessage()

func (*DeleteRoleReply) ProtoReflect

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

func (*DeleteRoleReply) Reset

func (x *DeleteRoleReply) Reset()

func (*DeleteRoleReply) String

func (x *DeleteRoleReply) String() string

func (*DeleteRoleReply) Validate

func (m *DeleteRoleReply) Validate() error

Validate checks the field values on DeleteRoleReply 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 (*DeleteRoleReply) ValidateAll

func (m *DeleteRoleReply) ValidateAll() error

ValidateAll checks the field values on DeleteRoleReply 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 DeleteRoleReplyMultiError, or nil if none found.

type DeleteRoleReplyMultiError

type DeleteRoleReplyMultiError []error

DeleteRoleReplyMultiError is an error wrapping multiple validation errors returned by DeleteRoleReply.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleReplyMultiError) AllErrors

func (m DeleteRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleReplyValidationError

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

DeleteRoleReplyValidationError is the validation error returned by DeleteRoleReply.Validate if the designated constraints aren't met.

func (DeleteRoleReplyValidationError) Cause

Cause function returns cause value.

func (DeleteRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleReplyValidationError) ErrorName

func (e DeleteRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRoleReplyValidationError) Field

Field function returns field value.

func (DeleteRoleReplyValidationError) Key

Key function returns key value.

func (DeleteRoleReplyValidationError) Reason

Reason function returns reason value.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRoleRequest) Descriptor deprecated

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

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetIds

func (x *DeleteRoleRequest) GetIds() []uint32

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

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

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

func (*DeleteRoleRequest) Validate

func (m *DeleteRoleRequest) Validate() error

Validate checks the field values on DeleteRoleRequest 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 (*DeleteRoleRequest) ValidateAll

func (m *DeleteRoleRequest) ValidateAll() error

ValidateAll checks the field values on DeleteRoleRequest 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 DeleteRoleRequestMultiError, or nil if none found.

type DeleteRoleRequestMultiError

type DeleteRoleRequestMultiError []error

DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteRoleRequestMultiError) AllErrors

func (m DeleteRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteRoleRequestValidationError

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

DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.

func (DeleteRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

Reason function returns reason value.

type GetRoleMenuIdsReply

type GetRoleMenuIdsReply struct {
	List []uint32 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleMenuIdsReply) Descriptor deprecated

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

Deprecated: Use GetRoleMenuIdsReply.ProtoReflect.Descriptor instead.

func (*GetRoleMenuIdsReply) GetList

func (x *GetRoleMenuIdsReply) GetList() []uint32

func (*GetRoleMenuIdsReply) ProtoMessage

func (*GetRoleMenuIdsReply) ProtoMessage()

func (*GetRoleMenuIdsReply) ProtoReflect

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

func (*GetRoleMenuIdsReply) Reset

func (x *GetRoleMenuIdsReply) Reset()

func (*GetRoleMenuIdsReply) String

func (x *GetRoleMenuIdsReply) String() string

func (*GetRoleMenuIdsReply) Validate

func (m *GetRoleMenuIdsReply) Validate() error

Validate checks the field values on GetRoleMenuIdsReply 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 (*GetRoleMenuIdsReply) ValidateAll

func (m *GetRoleMenuIdsReply) ValidateAll() error

ValidateAll checks the field values on GetRoleMenuIdsReply 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 GetRoleMenuIdsReplyMultiError, or nil if none found.

type GetRoleMenuIdsReplyMultiError

type GetRoleMenuIdsReplyMultiError []error

GetRoleMenuIdsReplyMultiError is an error wrapping multiple validation errors returned by GetRoleMenuIdsReply.ValidateAll() if the designated constraints aren't met.

func (GetRoleMenuIdsReplyMultiError) AllErrors

func (m GetRoleMenuIdsReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuIdsReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRoleMenuIdsReplyValidationError

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

GetRoleMenuIdsReplyValidationError is the validation error returned by GetRoleMenuIdsReply.Validate if the designated constraints aren't met.

func (GetRoleMenuIdsReplyValidationError) Cause

Cause function returns cause value.

func (GetRoleMenuIdsReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRoleMenuIdsReplyValidationError) ErrorName

ErrorName returns error name.

func (GetRoleMenuIdsReplyValidationError) Field

Field function returns field value.

func (GetRoleMenuIdsReplyValidationError) Key

Key function returns key value.

func (GetRoleMenuIdsReplyValidationError) Reason

Reason function returns reason value.

type GetRoleMenuIdsRequest

type GetRoleMenuIdsRequest struct {
	RoleId uint32 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleMenuIdsRequest) Descriptor deprecated

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

Deprecated: Use GetRoleMenuIdsRequest.ProtoReflect.Descriptor instead.

func (*GetRoleMenuIdsRequest) GetRoleId

func (x *GetRoleMenuIdsRequest) GetRoleId() uint32

func (*GetRoleMenuIdsRequest) ProtoMessage

func (*GetRoleMenuIdsRequest) ProtoMessage()

func (*GetRoleMenuIdsRequest) ProtoReflect

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

func (*GetRoleMenuIdsRequest) Reset

func (x *GetRoleMenuIdsRequest) Reset()

func (*GetRoleMenuIdsRequest) String

func (x *GetRoleMenuIdsRequest) String() string

func (*GetRoleMenuIdsRequest) Validate

func (m *GetRoleMenuIdsRequest) Validate() error

Validate checks the field values on GetRoleMenuIdsRequest 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 (*GetRoleMenuIdsRequest) ValidateAll

func (m *GetRoleMenuIdsRequest) ValidateAll() error

ValidateAll checks the field values on GetRoleMenuIdsRequest 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 GetRoleMenuIdsRequestMultiError, or nil if none found.

type GetRoleMenuIdsRequestMultiError

type GetRoleMenuIdsRequestMultiError []error

GetRoleMenuIdsRequestMultiError is an error wrapping multiple validation errors returned by GetRoleMenuIdsRequest.ValidateAll() if the designated constraints aren't met.

func (GetRoleMenuIdsRequestMultiError) AllErrors

func (m GetRoleMenuIdsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleMenuIdsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetRoleMenuIdsRequestValidationError

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

GetRoleMenuIdsRequestValidationError is the validation error returned by GetRoleMenuIdsRequest.Validate if the designated constraints aren't met.

func (GetRoleMenuIdsRequestValidationError) Cause

Cause function returns cause value.

func (GetRoleMenuIdsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleMenuIdsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRoleMenuIdsRequestValidationError) Field

Field function returns field value.

func (GetRoleMenuIdsRequestValidationError) Key

Key function returns key value.

func (GetRoleMenuIdsRequestValidationError) Reason

Reason function returns reason value.

type GetRoleReply

type GetRoleReply struct {
	Id            uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId      uint32  `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name          string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword       string  `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Status        *bool   `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	DataScope     string  `protobuf:"bytes,6,opt,name=dataScope,proto3" json:"dataScope,omitempty"`
	DepartmentIds *string `protobuf:"bytes,7,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"`
	Description   *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt     uint32  `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt     uint32  `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleReply) Descriptor deprecated

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

Deprecated: Use GetRoleReply.ProtoReflect.Descriptor instead.

func (*GetRoleReply) GetCreatedAt

func (x *GetRoleReply) GetCreatedAt() uint32

func (*GetRoleReply) GetDataScope

func (x *GetRoleReply) GetDataScope() string

func (*GetRoleReply) GetDepartmentIds

func (x *GetRoleReply) GetDepartmentIds() string

func (*GetRoleReply) GetDescription

func (x *GetRoleReply) GetDescription() string

func (*GetRoleReply) GetId

func (x *GetRoleReply) GetId() uint32

func (*GetRoleReply) GetKeyword

func (x *GetRoleReply) GetKeyword() string

func (*GetRoleReply) GetName

func (x *GetRoleReply) GetName() string

func (*GetRoleReply) GetParentId

func (x *GetRoleReply) GetParentId() uint32

func (*GetRoleReply) GetStatus

func (x *GetRoleReply) GetStatus() bool

func (*GetRoleReply) GetUpdatedAt

func (x *GetRoleReply) GetUpdatedAt() uint32

func (*GetRoleReply) ProtoMessage

func (*GetRoleReply) ProtoMessage()

func (*GetRoleReply) ProtoReflect

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

func (*GetRoleReply) Reset

func (x *GetRoleReply) Reset()

func (*GetRoleReply) String

func (x *GetRoleReply) String() string

func (*GetRoleReply) Validate

func (m *GetRoleReply) Validate() error

Validate checks the field values on GetRoleReply 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 (*GetRoleReply) ValidateAll

func (m *GetRoleReply) ValidateAll() error

ValidateAll checks the field values on GetRoleReply 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 GetRoleReplyMultiError, or nil if none found.

type GetRoleReplyMultiError

type GetRoleReplyMultiError []error

GetRoleReplyMultiError is an error wrapping multiple validation errors returned by GetRoleReply.ValidateAll() if the designated constraints aren't met.

func (GetRoleReplyMultiError) AllErrors

func (m GetRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleReplyMultiError) Error

func (m GetRoleReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRoleReplyValidationError

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

GetRoleReplyValidationError is the validation error returned by GetRoleReply.Validate if the designated constraints aren't met.

func (GetRoleReplyValidationError) Cause

Cause function returns cause value.

func (GetRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRoleReplyValidationError) ErrorName

func (e GetRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleReplyValidationError) Field

Field function returns field value.

func (GetRoleReplyValidationError) Key

Key function returns key value.

func (GetRoleReplyValidationError) Reason

Reason function returns reason value.

type GetRoleRequest

type GetRoleRequest struct {
	Id      *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetId

func (x *GetRoleRequest) GetId() uint32

func (*GetRoleRequest) GetKeyword

func (x *GetRoleRequest) GetKeyword() string

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

func (*GetRoleRequest) Validate

func (m *GetRoleRequest) Validate() error

Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll

func (m *GetRoleRequest) ValidateAll() error

ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.

type GetRoleRequestMultiError

type GetRoleRequestMultiError []error

GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.

func (GetRoleRequestMultiError) AllErrors

func (m GetRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRoleRequestMultiError) Error

func (m GetRoleRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetRoleRequestValidationError

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

GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.

func (GetRoleRequestValidationError) Cause

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

Reason function returns reason value.

type ListRoleReply

type ListRoleReply struct {
	Total uint32                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListRoleReply_Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleReply) Descriptor deprecated

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

Deprecated: Use ListRoleReply.ProtoReflect.Descriptor instead.

func (*ListRoleReply) GetList

func (x *ListRoleReply) GetList() []*ListRoleReply_Role

func (*ListRoleReply) GetTotal

func (x *ListRoleReply) GetTotal() uint32

func (*ListRoleReply) ProtoMessage

func (*ListRoleReply) ProtoMessage()

func (*ListRoleReply) ProtoReflect

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

func (*ListRoleReply) Reset

func (x *ListRoleReply) Reset()

func (*ListRoleReply) String

func (x *ListRoleReply) String() string

func (*ListRoleReply) Validate

func (m *ListRoleReply) Validate() error

Validate checks the field values on ListRoleReply 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 (*ListRoleReply) ValidateAll

func (m *ListRoleReply) ValidateAll() error

ValidateAll checks the field values on ListRoleReply 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 ListRoleReplyMultiError, or nil if none found.

type ListRoleReplyMultiError

type ListRoleReplyMultiError []error

ListRoleReplyMultiError is an error wrapping multiple validation errors returned by ListRoleReply.ValidateAll() if the designated constraints aren't met.

func (ListRoleReplyMultiError) AllErrors

func (m ListRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleReplyMultiError) Error

func (m ListRoleReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListRoleReplyValidationError

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

ListRoleReplyValidationError is the validation error returned by ListRoleReply.Validate if the designated constraints aren't met.

func (ListRoleReplyValidationError) Cause

Cause function returns cause value.

func (ListRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (ListRoleReplyValidationError) ErrorName

func (e ListRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleReplyValidationError) Field

Field function returns field value.

func (ListRoleReplyValidationError) Key

Key function returns key value.

func (ListRoleReplyValidationError) Reason

Reason function returns reason value.

type ListRoleReply_Role

type ListRoleReply_Role struct {
	Id            uint32                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId      uint32                `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name          string                `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword       string                `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Status        *bool                 `protobuf:"varint,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	DataScope     string                `protobuf:"bytes,6,opt,name=dataScope,proto3" json:"dataScope,omitempty"`
	DepartmentIds *string               `protobuf:"bytes,7,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"`
	Description   *string               `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt     uint32                `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt     uint32                `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	Children      []*ListRoleReply_Role `protobuf:"bytes,11,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleReply_Role) Descriptor deprecated

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

Deprecated: Use ListRoleReply_Role.ProtoReflect.Descriptor instead.

func (*ListRoleReply_Role) GetChildren

func (x *ListRoleReply_Role) GetChildren() []*ListRoleReply_Role

func (*ListRoleReply_Role) GetCreatedAt

func (x *ListRoleReply_Role) GetCreatedAt() uint32

func (*ListRoleReply_Role) GetDataScope

func (x *ListRoleReply_Role) GetDataScope() string

func (*ListRoleReply_Role) GetDepartmentIds

func (x *ListRoleReply_Role) GetDepartmentIds() string

func (*ListRoleReply_Role) GetDescription

func (x *ListRoleReply_Role) GetDescription() string

func (*ListRoleReply_Role) GetId

func (x *ListRoleReply_Role) GetId() uint32

func (*ListRoleReply_Role) GetKeyword

func (x *ListRoleReply_Role) GetKeyword() string

func (*ListRoleReply_Role) GetName

func (x *ListRoleReply_Role) GetName() string

func (*ListRoleReply_Role) GetParentId

func (x *ListRoleReply_Role) GetParentId() uint32

func (*ListRoleReply_Role) GetStatus

func (x *ListRoleReply_Role) GetStatus() bool

func (*ListRoleReply_Role) GetUpdatedAt

func (x *ListRoleReply_Role) GetUpdatedAt() uint32

func (*ListRoleReply_Role) ProtoMessage

func (*ListRoleReply_Role) ProtoMessage()

func (*ListRoleReply_Role) ProtoReflect

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

func (*ListRoleReply_Role) Reset

func (x *ListRoleReply_Role) Reset()

func (*ListRoleReply_Role) String

func (x *ListRoleReply_Role) String() string

func (*ListRoleReply_Role) Validate

func (m *ListRoleReply_Role) Validate() error

Validate checks the field values on ListRoleReply_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 (*ListRoleReply_Role) ValidateAll

func (m *ListRoleReply_Role) ValidateAll() error

ValidateAll checks the field values on ListRoleReply_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 ListRoleReply_RoleMultiError, or nil if none found.

type ListRoleReply_RoleMultiError

type ListRoleReply_RoleMultiError []error

ListRoleReply_RoleMultiError is an error wrapping multiple validation errors returned by ListRoleReply_Role.ValidateAll() if the designated constraints aren't met.

func (ListRoleReply_RoleMultiError) AllErrors

func (m ListRoleReply_RoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleReply_RoleMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRoleReply_RoleValidationError

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

ListRoleReply_RoleValidationError is the validation error returned by ListRoleReply_Role.Validate if the designated constraints aren't met.

func (ListRoleReply_RoleValidationError) Cause

Cause function returns cause value.

func (ListRoleReply_RoleValidationError) Error

Error satisfies the builtin error interface

func (ListRoleReply_RoleValidationError) ErrorName

ErrorName returns error name.

func (ListRoleReply_RoleValidationError) Field

Field function returns field value.

func (ListRoleReply_RoleValidationError) Key

Key function returns key value.

func (ListRoleReply_RoleValidationError) Reason

Reason function returns reason value.

type ListRoleRequest

type ListRoleRequest struct {
	Order   *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Name    *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRoleRequest) Descriptor deprecated

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

Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.

func (*ListRoleRequest) GetKeyword

func (x *ListRoleRequest) GetKeyword() string

func (*ListRoleRequest) GetName

func (x *ListRoleRequest) GetName() string

func (*ListRoleRequest) GetOrder

func (x *ListRoleRequest) GetOrder() string

func (*ListRoleRequest) GetOrderBy

func (x *ListRoleRequest) GetOrderBy() string

func (*ListRoleRequest) ProtoMessage

func (*ListRoleRequest) ProtoMessage()

func (*ListRoleRequest) ProtoReflect

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

func (*ListRoleRequest) Reset

func (x *ListRoleRequest) Reset()

func (*ListRoleRequest) String

func (x *ListRoleRequest) String() string

func (*ListRoleRequest) Validate

func (m *ListRoleRequest) Validate() error

Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll

func (m *ListRoleRequest) ValidateAll() error

ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.

type ListRoleRequestMultiError

type ListRoleRequestMultiError []error

ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.

func (ListRoleRequestMultiError) AllErrors

func (m ListRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListRoleRequestValidationError

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

ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.

func (ListRoleRequestValidationError) Cause

Cause function returns cause value.

func (ListRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleRequestValidationError) ErrorName

func (e ListRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleRequestValidationError) Field

Field function returns field value.

func (ListRoleRequestValidationError) Key

Key function returns key value.

func (ListRoleRequestValidationError) Reason

Reason function returns reason value.

type RoleClient

type RoleClient interface {
	// GetRoleMenuIds 获取指定角色的菜单id列表
	GetRoleMenuIds(ctx context.Context, in *GetRoleMenuIdsRequest, opts ...grpc.CallOption) (*GetRoleMenuIdsReply, error)
	// ListRole 获取角色信息列表
	ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleReply, error)
	// CreateRole 创建角色信息
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRoleMenu(ctx context.Context, in *UpdateRoleMenuRequest, opts ...grpc.CallOption) (*UpdateRoleMenuReply, error)
	// UpdateRoleStatus 更新角色信息状态
	UpdateRoleStatus(ctx context.Context, in *UpdateRoleStatusRequest, opts ...grpc.CallOption) (*UpdateRoleStatusReply, error)
	// DeleteRole 删除角色信息
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleReply, error)
	// GetRole 获取指定的角色信息
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleReply, error)
}

RoleClient is the client API for Role 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 NewRoleClient

func NewRoleClient(cc grpc.ClientConnInterface) RoleClient

type RoleHTTPClient

type RoleHTTPClient interface {
	CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *CreateRoleReply, err error)
	DeleteRole(ctx context.Context, req *DeleteRoleRequest, opts ...http.CallOption) (rsp *DeleteRoleReply, err error)
	GetRole(ctx context.Context, req *GetRoleRequest, opts ...http.CallOption) (rsp *GetRoleReply, err error)
	GetRoleMenuIds(ctx context.Context, req *GetRoleMenuIdsRequest, opts ...http.CallOption) (rsp *GetRoleMenuIdsReply, err error)
	ListRole(ctx context.Context, req *ListRoleRequest, opts ...http.CallOption) (rsp *ListRoleReply, err error)
	UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *UpdateRoleReply, err error)
	UpdateRoleMenu(ctx context.Context, req *UpdateRoleMenuRequest, opts ...http.CallOption) (rsp *UpdateRoleMenuReply, err error)
	UpdateRoleStatus(ctx context.Context, req *UpdateRoleStatusRequest, opts ...http.CallOption) (rsp *UpdateRoleStatusReply, err error)
}

func NewRoleHTTPClient

func NewRoleHTTPClient(client *http.Client) RoleHTTPClient

type RoleHTTPClientImpl

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

func (*RoleHTTPClientImpl) CreateRole

func (*RoleHTTPClientImpl) DeleteRole

func (*RoleHTTPClientImpl) GetRole

func (*RoleHTTPClientImpl) GetRoleMenuIds

func (*RoleHTTPClientImpl) ListRole

func (*RoleHTTPClientImpl) UpdateRole

func (*RoleHTTPClientImpl) UpdateRoleMenu

func (*RoleHTTPClientImpl) UpdateRoleStatus

type RoleHTTPServer

type RoleHTTPServer interface {
	// CreateRole CreateRole 创建角色信息
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
	// DeleteRole DeleteRole 删除角色信息
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
	// GetRole GetRole 获取指定的角色信息
	GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
	// GetRoleMenuIds GetRoleMenuIds 获取指定角色的菜单id列表
	GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error)
	// ListRole ListRole 获取角色信息列表
	ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
	// UpdateRole UpdateRole 更新角色信息
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
	// UpdateRoleMenu UpdateRole 更新角色信息
	UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error)
	// UpdateRoleStatus UpdateRoleStatus 更新角色信息状态
	UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error)
}

type RoleServer

type RoleServer interface {
	// GetRoleMenuIds 获取指定角色的菜单id列表
	GetRoleMenuIds(context.Context, *GetRoleMenuIdsRequest) (*GetRoleMenuIdsReply, error)
	// ListRole 获取角色信息列表
	ListRole(context.Context, *ListRoleRequest) (*ListRoleReply, error)
	// CreateRole 创建角色信息
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleReply, error)
	// UpdateRole 更新角色信息
	UpdateRoleMenu(context.Context, *UpdateRoleMenuRequest) (*UpdateRoleMenuReply, error)
	// UpdateRoleStatus 更新角色信息状态
	UpdateRoleStatus(context.Context, *UpdateRoleStatusRequest) (*UpdateRoleStatusReply, error)
	// DeleteRole 删除角色信息
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleReply, error)
	// GetRole 获取指定的角色信息
	GetRole(context.Context, *GetRoleRequest) (*GetRoleReply, error)
	// contains filtered or unexported methods
}

RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility

type UnimplementedRoleServer

type UnimplementedRoleServer struct {
}

UnimplementedRoleServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServer) CreateRole

func (UnimplementedRoleServer) DeleteRole

func (UnimplementedRoleServer) GetRole

func (UnimplementedRoleServer) GetRoleMenuIds

func (UnimplementedRoleServer) ListRole

func (UnimplementedRoleServer) UpdateRole

func (UnimplementedRoleServer) UpdateRoleMenu

func (UnimplementedRoleServer) UpdateRoleStatus

type UnsafeRoleServer

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

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

type UpdateRoleMenuReply

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

func (*UpdateRoleMenuReply) Descriptor deprecated

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

Deprecated: Use UpdateRoleMenuReply.ProtoReflect.Descriptor instead.

func (*UpdateRoleMenuReply) ProtoMessage

func (*UpdateRoleMenuReply) ProtoMessage()

func (*UpdateRoleMenuReply) ProtoReflect

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

func (*UpdateRoleMenuReply) Reset

func (x *UpdateRoleMenuReply) Reset()

func (*UpdateRoleMenuReply) String

func (x *UpdateRoleMenuReply) String() string

func (*UpdateRoleMenuReply) Validate

func (m *UpdateRoleMenuReply) Validate() error

Validate checks the field values on UpdateRoleMenuReply 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 (*UpdateRoleMenuReply) ValidateAll

func (m *UpdateRoleMenuReply) ValidateAll() error

ValidateAll checks the field values on UpdateRoleMenuReply 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 UpdateRoleMenuReplyMultiError, or nil if none found.

type UpdateRoleMenuReplyMultiError

type UpdateRoleMenuReplyMultiError []error

UpdateRoleMenuReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleMenuReply.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleMenuReplyMultiError) AllErrors

func (m UpdateRoleMenuReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleMenuReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleMenuReplyValidationError

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

UpdateRoleMenuReplyValidationError is the validation error returned by UpdateRoleMenuReply.Validate if the designated constraints aren't met.

func (UpdateRoleMenuReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRoleMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleMenuReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleMenuReplyValidationError) Field

Field function returns field value.

func (UpdateRoleMenuReplyValidationError) Key

Key function returns key value.

func (UpdateRoleMenuReplyValidationError) Reason

Reason function returns reason value.

type UpdateRoleMenuRequest

type UpdateRoleMenuRequest struct {
	RoleId  uint32   `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"`
	MenuIds []uint32 `protobuf:"varint,2,rep,packed,name=menuIds,proto3" json:"menuIds,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleMenuRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleMenuRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleMenuRequest) GetMenuIds

func (x *UpdateRoleMenuRequest) GetMenuIds() []uint32

func (*UpdateRoleMenuRequest) GetRoleId

func (x *UpdateRoleMenuRequest) GetRoleId() uint32

func (*UpdateRoleMenuRequest) ProtoMessage

func (*UpdateRoleMenuRequest) ProtoMessage()

func (*UpdateRoleMenuRequest) ProtoReflect

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

func (*UpdateRoleMenuRequest) Reset

func (x *UpdateRoleMenuRequest) Reset()

func (*UpdateRoleMenuRequest) String

func (x *UpdateRoleMenuRequest) String() string

func (*UpdateRoleMenuRequest) Validate

func (m *UpdateRoleMenuRequest) Validate() error

Validate checks the field values on UpdateRoleMenuRequest 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 (*UpdateRoleMenuRequest) ValidateAll

func (m *UpdateRoleMenuRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleMenuRequest 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 UpdateRoleMenuRequestMultiError, or nil if none found.

type UpdateRoleMenuRequestMultiError

type UpdateRoleMenuRequestMultiError []error

UpdateRoleMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleMenuRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleMenuRequestMultiError) AllErrors

func (m UpdateRoleMenuRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleMenuRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleMenuRequestValidationError

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

UpdateRoleMenuRequestValidationError is the validation error returned by UpdateRoleMenuRequest.Validate if the designated constraints aren't met.

func (UpdateRoleMenuRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleMenuRequestValidationError) Field

Field function returns field value.

func (UpdateRoleMenuRequestValidationError) Key

Key function returns key value.

func (UpdateRoleMenuRequestValidationError) Reason

Reason function returns reason value.

type UpdateRoleReply

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

func (*UpdateRoleReply) Descriptor deprecated

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

Deprecated: Use UpdateRoleReply.ProtoReflect.Descriptor instead.

func (*UpdateRoleReply) ProtoMessage

func (*UpdateRoleReply) ProtoMessage()

func (*UpdateRoleReply) ProtoReflect

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

func (*UpdateRoleReply) Reset

func (x *UpdateRoleReply) Reset()

func (*UpdateRoleReply) String

func (x *UpdateRoleReply) String() string

func (*UpdateRoleReply) Validate

func (m *UpdateRoleReply) Validate() error

Validate checks the field values on UpdateRoleReply 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 (*UpdateRoleReply) ValidateAll

func (m *UpdateRoleReply) ValidateAll() error

ValidateAll checks the field values on UpdateRoleReply 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 UpdateRoleReplyMultiError, or nil if none found.

type UpdateRoleReplyMultiError

type UpdateRoleReplyMultiError []error

UpdateRoleReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleReply.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleReplyMultiError) AllErrors

func (m UpdateRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleReplyValidationError

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

UpdateRoleReplyValidationError is the validation error returned by UpdateRoleReply.Validate if the designated constraints aren't met.

func (UpdateRoleReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleReplyValidationError) ErrorName

func (e UpdateRoleReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRoleReplyValidationError) Field

Field function returns field value.

func (UpdateRoleReplyValidationError) Key

Key function returns key value.

func (UpdateRoleReplyValidationError) Reason

Reason function returns reason value.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Id            uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId      uint32  `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name          string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	DataScope     string  `protobuf:"bytes,4,opt,name=dataScope,proto3" json:"dataScope,omitempty"`
	DepartmentIds *string `protobuf:"bytes,5,opt,name=departmentIds,proto3,oneof" json:"departmentIds,omitempty"`
	Description   *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetDataScope

func (x *UpdateRoleRequest) GetDataScope() string

func (*UpdateRoleRequest) GetDepartmentIds

func (x *UpdateRoleRequest) GetDepartmentIds() string

func (*UpdateRoleRequest) GetDescription

func (x *UpdateRoleRequest) GetDescription() string

func (*UpdateRoleRequest) GetId

func (x *UpdateRoleRequest) GetId() uint32

func (*UpdateRoleRequest) GetName

func (x *UpdateRoleRequest) GetName() string

func (*UpdateRoleRequest) GetParentId

func (x *UpdateRoleRequest) GetParentId() uint32

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

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

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

func (*UpdateRoleRequest) Validate

func (m *UpdateRoleRequest) Validate() error

Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll

func (m *UpdateRoleRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleRequest 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 UpdateRoleRequestMultiError, or nil if none found.

type UpdateRoleRequestMultiError

type UpdateRoleRequestMultiError []error

UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleRequestMultiError) AllErrors

func (m UpdateRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleRequestValidationError

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

UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.

func (UpdateRoleRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

Reason function returns reason value.

type UpdateRoleStatusReply

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

func (*UpdateRoleStatusReply) Descriptor deprecated

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

Deprecated: Use UpdateRoleStatusReply.ProtoReflect.Descriptor instead.

func (*UpdateRoleStatusReply) ProtoMessage

func (*UpdateRoleStatusReply) ProtoMessage()

func (*UpdateRoleStatusReply) ProtoReflect

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

func (*UpdateRoleStatusReply) Reset

func (x *UpdateRoleStatusReply) Reset()

func (*UpdateRoleStatusReply) String

func (x *UpdateRoleStatusReply) String() string

func (*UpdateRoleStatusReply) Validate

func (m *UpdateRoleStatusReply) Validate() error

Validate checks the field values on UpdateRoleStatusReply 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 (*UpdateRoleStatusReply) ValidateAll

func (m *UpdateRoleStatusReply) ValidateAll() error

ValidateAll checks the field values on UpdateRoleStatusReply 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 UpdateRoleStatusReplyMultiError, or nil if none found.

type UpdateRoleStatusReplyMultiError

type UpdateRoleStatusReplyMultiError []error

UpdateRoleStatusReplyMultiError is an error wrapping multiple validation errors returned by UpdateRoleStatusReply.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleStatusReplyMultiError) AllErrors

func (m UpdateRoleStatusReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleStatusReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleStatusReplyValidationError

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

UpdateRoleStatusReplyValidationError is the validation error returned by UpdateRoleStatusReply.Validate if the designated constraints aren't met.

func (UpdateRoleStatusReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRoleStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleStatusReplyValidationError) Field

Field function returns field value.

func (UpdateRoleStatusReplyValidationError) Key

Key function returns key value.

func (UpdateRoleStatusReplyValidationError) Reason

Reason function returns reason value.

type UpdateRoleStatusRequest

type UpdateRoleStatusRequest struct {
	Id     uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleStatusRequest) GetId

func (x *UpdateRoleStatusRequest) GetId() uint32

func (*UpdateRoleStatusRequest) GetStatus

func (x *UpdateRoleStatusRequest) GetStatus() bool

func (*UpdateRoleStatusRequest) ProtoMessage

func (*UpdateRoleStatusRequest) ProtoMessage()

func (*UpdateRoleStatusRequest) ProtoReflect

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

func (*UpdateRoleStatusRequest) Reset

func (x *UpdateRoleStatusRequest) Reset()

func (*UpdateRoleStatusRequest) String

func (x *UpdateRoleStatusRequest) String() string

func (*UpdateRoleStatusRequest) Validate

func (m *UpdateRoleStatusRequest) Validate() error

Validate checks the field values on UpdateRoleStatusRequest 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 (*UpdateRoleStatusRequest) ValidateAll

func (m *UpdateRoleStatusRequest) ValidateAll() error

ValidateAll checks the field values on UpdateRoleStatusRequest 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 UpdateRoleStatusRequestMultiError, or nil if none found.

type UpdateRoleStatusRequestMultiError

type UpdateRoleStatusRequestMultiError []error

UpdateRoleStatusRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleStatusRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateRoleStatusRequestMultiError) AllErrors

func (m UpdateRoleStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRoleStatusRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateRoleStatusRequestValidationError

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

UpdateRoleStatusRequestValidationError is the validation error returned by UpdateRoleStatusRequest.Validate if the designated constraints aren't met.

func (UpdateRoleStatusRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRoleStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleStatusRequestValidationError) Field

Field function returns field value.

func (UpdateRoleStatusRequestValidationError) Key

Key function returns key value.

func (UpdateRoleStatusRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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