deptrole

package
v0.0.0-...-d36d6b6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeptRole_ListDeptRole_FullMethodName   = "/manager.api.deptrole.DeptRole/ListDeptRole"
	DeptRole_CreateDeptRole_FullMethodName = "/manager.api.deptrole.DeptRole/CreateDeptRole"
	DeptRole_DeleteDeptRole_FullMethodName = "/manager.api.deptrole.DeptRole/DeleteDeptRole"
)
View Source
const (
	OperationDeptRoleCreateDeptRole = "/manager.api.deptrole.DeptRole/CreateDeptRole"
	OperationDeptRoleDeleteDeptRole = "/manager.api.deptrole.DeptRole/DeleteDeptRole"
	OperationDeptRoleListDeptRole   = "/manager.api.deptrole.DeptRole/ListDeptRole"
)

Variables

View Source
var DeptRole_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.deptrole.DeptRole",
	HandlerType: (*DeptRoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDeptRole",
			Handler:    _DeptRole_ListDeptRole_Handler,
		},
		{
			MethodName: "CreateDeptRole",
			Handler:    _DeptRole_CreateDeptRole_Handler,
		},
		{
			MethodName: "DeleteDeptRole",
			Handler:    _DeptRole_DeleteDeptRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/deptrole/proto/deptrole_service.proto",
}

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

View Source
var File_api_deptrole_proto_deptrole_proto protoreflect.FileDescriptor
View Source
var File_api_deptrole_proto_deptrole_service_proto protoreflect.FileDescriptor

Functions

func RegisterDeptRoleHTTPServer

func RegisterDeptRoleHTTPServer(s *http.Server, srv DeptRoleHTTPServer)

func RegisterDeptRoleServer

func RegisterDeptRoleServer(s grpc.ServiceRegistrar, srv DeptRoleServer)

Types

type CreateDeptRoleReply

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

func (*CreateDeptRoleReply) Descriptor deprecated

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

Deprecated: Use CreateDeptRoleReply.ProtoReflect.Descriptor instead.

func (*CreateDeptRoleReply) ProtoMessage

func (*CreateDeptRoleReply) ProtoMessage()

func (*CreateDeptRoleReply) ProtoReflect

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

func (*CreateDeptRoleReply) Reset

func (x *CreateDeptRoleReply) Reset()

func (*CreateDeptRoleReply) String

func (x *CreateDeptRoleReply) String() string

func (*CreateDeptRoleReply) Validate

func (m *CreateDeptRoleReply) Validate() error

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

func (m *CreateDeptRoleReply) ValidateAll() error

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

type CreateDeptRoleReplyMultiError

type CreateDeptRoleReplyMultiError []error

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

func (CreateDeptRoleReplyMultiError) AllErrors

func (m CreateDeptRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDeptRoleReplyMultiError) Error

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

type CreateDeptRoleReplyValidationError

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

CreateDeptRoleReplyValidationError is the validation error returned by CreateDeptRoleReply.Validate if the designated constraints aren't met.

func (CreateDeptRoleReplyValidationError) Cause

Cause function returns cause value.

func (CreateDeptRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateDeptRoleReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateDeptRoleReplyValidationError) Field

Field function returns field value.

func (CreateDeptRoleReplyValidationError) Key

Key function returns key value.

func (CreateDeptRoleReplyValidationError) Reason

Reason function returns reason value.

type CreateDeptRoleRequest

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

func (*CreateDeptRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateDeptRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateDeptRoleRequest) GetDeptId

func (x *CreateDeptRoleRequest) GetDeptId() uint32

func (*CreateDeptRoleRequest) GetRoleId

func (x *CreateDeptRoleRequest) GetRoleId() uint32

func (*CreateDeptRoleRequest) ProtoMessage

func (*CreateDeptRoleRequest) ProtoMessage()

func (*CreateDeptRoleRequest) ProtoReflect

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

func (*CreateDeptRoleRequest) Reset

func (x *CreateDeptRoleRequest) Reset()

func (*CreateDeptRoleRequest) String

func (x *CreateDeptRoleRequest) String() string

func (*CreateDeptRoleRequest) Validate

func (m *CreateDeptRoleRequest) Validate() error

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

func (m *CreateDeptRoleRequest) ValidateAll() error

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

type CreateDeptRoleRequestMultiError

type CreateDeptRoleRequestMultiError []error

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

func (CreateDeptRoleRequestMultiError) AllErrors

func (m CreateDeptRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDeptRoleRequestMultiError) Error

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

type CreateDeptRoleRequestValidationError

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

CreateDeptRoleRequestValidationError is the validation error returned by CreateDeptRoleRequest.Validate if the designated constraints aren't met.

func (CreateDeptRoleRequestValidationError) Cause

Cause function returns cause value.

func (CreateDeptRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDeptRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDeptRoleRequestValidationError) Field

Field function returns field value.

func (CreateDeptRoleRequestValidationError) Key

Key function returns key value.

func (CreateDeptRoleRequestValidationError) Reason

Reason function returns reason value.

type DeleteDeptRoleReply

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

func (*DeleteDeptRoleReply) Descriptor deprecated

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

Deprecated: Use DeleteDeptRoleReply.ProtoReflect.Descriptor instead.

func (*DeleteDeptRoleReply) ProtoMessage

func (*DeleteDeptRoleReply) ProtoMessage()

func (*DeleteDeptRoleReply) ProtoReflect

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

func (*DeleteDeptRoleReply) Reset

func (x *DeleteDeptRoleReply) Reset()

func (*DeleteDeptRoleReply) String

func (x *DeleteDeptRoleReply) String() string

func (*DeleteDeptRoleReply) Validate

func (m *DeleteDeptRoleReply) Validate() error

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

func (m *DeleteDeptRoleReply) ValidateAll() error

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

type DeleteDeptRoleReplyMultiError

type DeleteDeptRoleReplyMultiError []error

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

func (DeleteDeptRoleReplyMultiError) AllErrors

func (m DeleteDeptRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDeptRoleReplyMultiError) Error

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

type DeleteDeptRoleReplyValidationError

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

DeleteDeptRoleReplyValidationError is the validation error returned by DeleteDeptRoleReply.Validate if the designated constraints aren't met.

func (DeleteDeptRoleReplyValidationError) Cause

Cause function returns cause value.

func (DeleteDeptRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeptRoleReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeptRoleReplyValidationError) Field

Field function returns field value.

func (DeleteDeptRoleReplyValidationError) Key

Key function returns key value.

func (DeleteDeptRoleReplyValidationError) Reason

Reason function returns reason value.

type DeleteDeptRoleRequest

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

func (*DeleteDeptRoleRequest) Descriptor deprecated

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

Deprecated: Use DeleteDeptRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteDeptRoleRequest) GetDeptId

func (x *DeleteDeptRoleRequest) GetDeptId() uint32

func (*DeleteDeptRoleRequest) GetRoleId

func (x *DeleteDeptRoleRequest) GetRoleId() uint32

func (*DeleteDeptRoleRequest) ProtoMessage

func (*DeleteDeptRoleRequest) ProtoMessage()

func (*DeleteDeptRoleRequest) ProtoReflect

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

func (*DeleteDeptRoleRequest) Reset

func (x *DeleteDeptRoleRequest) Reset()

func (*DeleteDeptRoleRequest) String

func (x *DeleteDeptRoleRequest) String() string

func (*DeleteDeptRoleRequest) Validate

func (m *DeleteDeptRoleRequest) Validate() error

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

func (m *DeleteDeptRoleRequest) ValidateAll() error

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

type DeleteDeptRoleRequestMultiError

type DeleteDeptRoleRequestMultiError []error

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

func (DeleteDeptRoleRequestMultiError) AllErrors

func (m DeleteDeptRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDeptRoleRequestMultiError) Error

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

type DeleteDeptRoleRequestValidationError

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

DeleteDeptRoleRequestValidationError is the validation error returned by DeleteDeptRoleRequest.Validate if the designated constraints aren't met.

func (DeleteDeptRoleRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDeptRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDeptRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDeptRoleRequestValidationError) Field

Field function returns field value.

func (DeleteDeptRoleRequestValidationError) Key

Key function returns key value.

func (DeleteDeptRoleRequestValidationError) Reason

Reason function returns reason value.

type DeptRoleClient

type DeptRoleClient interface {
	ListDeptRole(ctx context.Context, in *ListDeptRoleRequest, opts ...grpc.CallOption) (*ListDeptRoleReply, error)
	CreateDeptRole(ctx context.Context, in *CreateDeptRoleRequest, opts ...grpc.CallOption) (*CreateDeptRoleReply, error)
	DeleteDeptRole(ctx context.Context, in *DeleteDeptRoleRequest, opts ...grpc.CallOption) (*DeleteDeptRoleReply, error)
}

DeptRoleClient is the client API for DeptRole 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 NewDeptRoleClient

func NewDeptRoleClient(cc grpc.ClientConnInterface) DeptRoleClient

type DeptRoleHTTPClient

type DeptRoleHTTPClient interface {
	CreateDeptRole(ctx context.Context, req *CreateDeptRoleRequest, opts ...http.CallOption) (rsp *CreateDeptRoleReply, err error)
	DeleteDeptRole(ctx context.Context, req *DeleteDeptRoleRequest, opts ...http.CallOption) (rsp *DeleteDeptRoleReply, err error)
	ListDeptRole(ctx context.Context, req *ListDeptRoleRequest, opts ...http.CallOption) (rsp *ListDeptRoleReply, err error)
}

func NewDeptRoleHTTPClient

func NewDeptRoleHTTPClient(client *http.Client) DeptRoleHTTPClient

type DeptRoleHTTPClientImpl

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

func (*DeptRoleHTTPClientImpl) CreateDeptRole

func (*DeptRoleHTTPClientImpl) DeleteDeptRole

func (*DeptRoleHTTPClientImpl) ListDeptRole

type DeptRoleServer

type DeptRoleServer interface {
	ListDeptRole(context.Context, *ListDeptRoleRequest) (*ListDeptRoleReply, error)
	CreateDeptRole(context.Context, *CreateDeptRoleRequest) (*CreateDeptRoleReply, error)
	DeleteDeptRole(context.Context, *DeleteDeptRoleRequest) (*DeleteDeptRoleReply, error)
	// contains filtered or unexported methods
}

DeptRoleServer is the server API for DeptRole service. All implementations must embed UnimplementedDeptRoleServer for forward compatibility

type ListDeptRoleReply

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

func (*ListDeptRoleReply) Descriptor deprecated

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

Deprecated: Use ListDeptRoleReply.ProtoReflect.Descriptor instead.

func (*ListDeptRoleReply) GetList

func (x *ListDeptRoleReply) GetList() []*ListDeptRoleReply_Role

func (*ListDeptRoleReply) GetTotal

func (x *ListDeptRoleReply) GetTotal() uint32

func (*ListDeptRoleReply) ProtoMessage

func (*ListDeptRoleReply) ProtoMessage()

func (*ListDeptRoleReply) ProtoReflect

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

func (*ListDeptRoleReply) Reset

func (x *ListDeptRoleReply) Reset()

func (*ListDeptRoleReply) String

func (x *ListDeptRoleReply) String() string

func (*ListDeptRoleReply) Validate

func (m *ListDeptRoleReply) Validate() error

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

func (m *ListDeptRoleReply) ValidateAll() error

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

type ListDeptRoleReplyMultiError

type ListDeptRoleReplyMultiError []error

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

func (ListDeptRoleReplyMultiError) AllErrors

func (m ListDeptRoleReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDeptRoleReplyMultiError) Error

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

type ListDeptRoleReplyValidationError

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

ListDeptRoleReplyValidationError is the validation error returned by ListDeptRoleReply.Validate if the designated constraints aren't met.

func (ListDeptRoleReplyValidationError) Cause

Cause function returns cause value.

func (ListDeptRoleReplyValidationError) Error

Error satisfies the builtin error interface

func (ListDeptRoleReplyValidationError) ErrorName

ErrorName returns error name.

func (ListDeptRoleReplyValidationError) Field

Field function returns field value.

func (ListDeptRoleReplyValidationError) Key

Key function returns key value.

func (ListDeptRoleReplyValidationError) Reason

Reason function returns reason value.

type ListDeptRoleReply_Role

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

func (*ListDeptRoleReply_Role) Descriptor deprecated

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

Deprecated: Use ListDeptRoleReply_Role.ProtoReflect.Descriptor instead.

func (*ListDeptRoleReply_Role) GetId

func (x *ListDeptRoleReply_Role) GetId() uint32

func (*ListDeptRoleReply_Role) GetKeyword

func (x *ListDeptRoleReply_Role) GetKeyword() string

func (*ListDeptRoleReply_Role) GetName

func (x *ListDeptRoleReply_Role) GetName() string

func (*ListDeptRoleReply_Role) ProtoMessage

func (*ListDeptRoleReply_Role) ProtoMessage()

func (*ListDeptRoleReply_Role) ProtoReflect

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

func (*ListDeptRoleReply_Role) Reset

func (x *ListDeptRoleReply_Role) Reset()

func (*ListDeptRoleReply_Role) String

func (x *ListDeptRoleReply_Role) String() string

func (*ListDeptRoleReply_Role) Validate

func (m *ListDeptRoleReply_Role) Validate() error

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

func (m *ListDeptRoleReply_Role) ValidateAll() error

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

type ListDeptRoleReply_RoleMultiError

type ListDeptRoleReply_RoleMultiError []error

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

func (ListDeptRoleReply_RoleMultiError) AllErrors

func (m ListDeptRoleReply_RoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDeptRoleReply_RoleMultiError) Error

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

type ListDeptRoleReply_RoleValidationError

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

ListDeptRoleReply_RoleValidationError is the validation error returned by ListDeptRoleReply_Role.Validate if the designated constraints aren't met.

func (ListDeptRoleReply_RoleValidationError) Cause

Cause function returns cause value.

func (ListDeptRoleReply_RoleValidationError) Error

Error satisfies the builtin error interface

func (ListDeptRoleReply_RoleValidationError) ErrorName

ErrorName returns error name.

func (ListDeptRoleReply_RoleValidationError) Field

Field function returns field value.

func (ListDeptRoleReply_RoleValidationError) Key

Key function returns key value.

func (ListDeptRoleReply_RoleValidationError) Reason

Reason function returns reason value.

type ListDeptRoleRequest

type ListDeptRoleRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	DeptId   uint32  `protobuf:"varint,3,opt,name=deptId,proto3" json:"deptId,omitempty"`
	Name     *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDeptRoleRequest) Descriptor deprecated

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

Deprecated: Use ListDeptRoleRequest.ProtoReflect.Descriptor instead.

func (*ListDeptRoleRequest) GetDeptId

func (x *ListDeptRoleRequest) GetDeptId() uint32

func (*ListDeptRoleRequest) GetName

func (x *ListDeptRoleRequest) GetName() string

func (*ListDeptRoleRequest) GetPage

func (x *ListDeptRoleRequest) GetPage() uint32

func (*ListDeptRoleRequest) GetPageSize

func (x *ListDeptRoleRequest) GetPageSize() uint32

func (*ListDeptRoleRequest) ProtoMessage

func (*ListDeptRoleRequest) ProtoMessage()

func (*ListDeptRoleRequest) ProtoReflect

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

func (*ListDeptRoleRequest) Reset

func (x *ListDeptRoleRequest) Reset()

func (*ListDeptRoleRequest) String

func (x *ListDeptRoleRequest) String() string

func (*ListDeptRoleRequest) Validate

func (m *ListDeptRoleRequest) Validate() error

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

func (m *ListDeptRoleRequest) ValidateAll() error

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

type ListDeptRoleRequestMultiError

type ListDeptRoleRequestMultiError []error

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

func (ListDeptRoleRequestMultiError) AllErrors

func (m ListDeptRoleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDeptRoleRequestMultiError) Error

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

type ListDeptRoleRequestValidationError

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

ListDeptRoleRequestValidationError is the validation error returned by ListDeptRoleRequest.Validate if the designated constraints aren't met.

func (ListDeptRoleRequestValidationError) Cause

Cause function returns cause value.

func (ListDeptRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDeptRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDeptRoleRequestValidationError) Field

Field function returns field value.

func (ListDeptRoleRequestValidationError) Key

Key function returns key value.

func (ListDeptRoleRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedDeptRoleServer

type UnimplementedDeptRoleServer struct{}

UnimplementedDeptRoleServer must be embedded to have forward compatible implementations.

func (UnimplementedDeptRoleServer) CreateDeptRole

func (UnimplementedDeptRoleServer) DeleteDeptRole

func (UnimplementedDeptRoleServer) ListDeptRole

type UnsafeDeptRoleServer

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

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

Jump to

Keyboard shortcuts

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