Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDeptRoleHTTPServer(s *http.Server, srv DeptRoleHTTPServer)
- func RegisterDeptRoleServer(s grpc.ServiceRegistrar, srv DeptRoleServer)
- type CreateDeptRoleReply
- func (*CreateDeptRoleReply) Descriptor() ([]byte, []int)deprecated
- func (*CreateDeptRoleReply) ProtoMessage()
- func (x *CreateDeptRoleReply) ProtoReflect() protoreflect.Message
- func (x *CreateDeptRoleReply) Reset()
- func (x *CreateDeptRoleReply) String() string
- func (m *CreateDeptRoleReply) Validate() error
- func (m *CreateDeptRoleReply) ValidateAll() error
- type CreateDeptRoleReplyMultiError
- type CreateDeptRoleReplyValidationError
- func (e CreateDeptRoleReplyValidationError) Cause() error
- func (e CreateDeptRoleReplyValidationError) Error() string
- func (e CreateDeptRoleReplyValidationError) ErrorName() string
- func (e CreateDeptRoleReplyValidationError) Field() string
- func (e CreateDeptRoleReplyValidationError) Key() bool
- func (e CreateDeptRoleReplyValidationError) Reason() string
- type CreateDeptRoleRequest
- func (*CreateDeptRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeptRoleRequest) GetDeptId() uint32
- func (x *CreateDeptRoleRequest) GetRoleId() uint32
- func (*CreateDeptRoleRequest) ProtoMessage()
- func (x *CreateDeptRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDeptRoleRequest) Reset()
- func (x *CreateDeptRoleRequest) String() string
- func (m *CreateDeptRoleRequest) Validate() error
- func (m *CreateDeptRoleRequest) ValidateAll() error
- type CreateDeptRoleRequestMultiError
- type CreateDeptRoleRequestValidationError
- func (e CreateDeptRoleRequestValidationError) Cause() error
- func (e CreateDeptRoleRequestValidationError) Error() string
- func (e CreateDeptRoleRequestValidationError) ErrorName() string
- func (e CreateDeptRoleRequestValidationError) Field() string
- func (e CreateDeptRoleRequestValidationError) Key() bool
- func (e CreateDeptRoleRequestValidationError) Reason() string
- type DeleteDeptRoleReply
- func (*DeleteDeptRoleReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteDeptRoleReply) ProtoMessage()
- func (x *DeleteDeptRoleReply) ProtoReflect() protoreflect.Message
- func (x *DeleteDeptRoleReply) Reset()
- func (x *DeleteDeptRoleReply) String() string
- func (m *DeleteDeptRoleReply) Validate() error
- func (m *DeleteDeptRoleReply) ValidateAll() error
- type DeleteDeptRoleReplyMultiError
- type DeleteDeptRoleReplyValidationError
- func (e DeleteDeptRoleReplyValidationError) Cause() error
- func (e DeleteDeptRoleReplyValidationError) Error() string
- func (e DeleteDeptRoleReplyValidationError) ErrorName() string
- func (e DeleteDeptRoleReplyValidationError) Field() string
- func (e DeleteDeptRoleReplyValidationError) Key() bool
- func (e DeleteDeptRoleReplyValidationError) Reason() string
- type DeleteDeptRoleRequest
- func (*DeleteDeptRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDeptRoleRequest) GetDeptId() uint32
- func (x *DeleteDeptRoleRequest) GetRoleId() uint32
- func (*DeleteDeptRoleRequest) ProtoMessage()
- func (x *DeleteDeptRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDeptRoleRequest) Reset()
- func (x *DeleteDeptRoleRequest) String() string
- func (m *DeleteDeptRoleRequest) Validate() error
- func (m *DeleteDeptRoleRequest) ValidateAll() error
- type DeleteDeptRoleRequestMultiError
- type DeleteDeptRoleRequestValidationError
- func (e DeleteDeptRoleRequestValidationError) Cause() error
- func (e DeleteDeptRoleRequestValidationError) Error() string
- func (e DeleteDeptRoleRequestValidationError) ErrorName() string
- func (e DeleteDeptRoleRequestValidationError) Field() string
- func (e DeleteDeptRoleRequestValidationError) Key() bool
- func (e DeleteDeptRoleRequestValidationError) Reason() string
- type DeptRoleClient
- type DeptRoleHTTPClient
- type DeptRoleHTTPClientImpl
- func (c *DeptRoleHTTPClientImpl) CreateDeptRole(ctx context.Context, in *CreateDeptRoleRequest, opts ...http.CallOption) (*CreateDeptRoleReply, error)
- func (c *DeptRoleHTTPClientImpl) DeleteDeptRole(ctx context.Context, in *DeleteDeptRoleRequest, opts ...http.CallOption) (*DeleteDeptRoleReply, error)
- func (c *DeptRoleHTTPClientImpl) ListDeptRole(ctx context.Context, in *ListDeptRoleRequest, opts ...http.CallOption) (*ListDeptRoleReply, error)
- type DeptRoleHTTPServer
- type DeptRoleServer
- type ListDeptRoleReply
- func (*ListDeptRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeptRoleReply) GetList() []*ListDeptRoleReply_Role
- func (x *ListDeptRoleReply) GetTotal() uint32
- func (*ListDeptRoleReply) ProtoMessage()
- func (x *ListDeptRoleReply) ProtoReflect() protoreflect.Message
- func (x *ListDeptRoleReply) Reset()
- func (x *ListDeptRoleReply) String() string
- func (m *ListDeptRoleReply) Validate() error
- func (m *ListDeptRoleReply) ValidateAll() error
- type ListDeptRoleReplyMultiError
- type ListDeptRoleReplyValidationError
- func (e ListDeptRoleReplyValidationError) Cause() error
- func (e ListDeptRoleReplyValidationError) Error() string
- func (e ListDeptRoleReplyValidationError) ErrorName() string
- func (e ListDeptRoleReplyValidationError) Field() string
- func (e ListDeptRoleReplyValidationError) Key() bool
- func (e ListDeptRoleReplyValidationError) Reason() string
- type ListDeptRoleReply_Role
- func (*ListDeptRoleReply_Role) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeptRoleReply_Role) GetId() uint32
- func (x *ListDeptRoleReply_Role) GetKeyword() string
- func (x *ListDeptRoleReply_Role) GetName() string
- func (*ListDeptRoleReply_Role) ProtoMessage()
- func (x *ListDeptRoleReply_Role) ProtoReflect() protoreflect.Message
- func (x *ListDeptRoleReply_Role) Reset()
- func (x *ListDeptRoleReply_Role) String() string
- func (m *ListDeptRoleReply_Role) Validate() error
- func (m *ListDeptRoleReply_Role) ValidateAll() error
- type ListDeptRoleReply_RoleMultiError
- type ListDeptRoleReply_RoleValidationError
- func (e ListDeptRoleReply_RoleValidationError) Cause() error
- func (e ListDeptRoleReply_RoleValidationError) Error() string
- func (e ListDeptRoleReply_RoleValidationError) ErrorName() string
- func (e ListDeptRoleReply_RoleValidationError) Field() string
- func (e ListDeptRoleReply_RoleValidationError) Key() bool
- func (e ListDeptRoleReply_RoleValidationError) Reason() string
- type ListDeptRoleRequest
- func (*ListDeptRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDeptRoleRequest) GetDeptId() uint32
- func (x *ListDeptRoleRequest) GetName() string
- func (x *ListDeptRoleRequest) GetPage() uint32
- func (x *ListDeptRoleRequest) GetPageSize() uint32
- func (*ListDeptRoleRequest) ProtoMessage()
- func (x *ListDeptRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListDeptRoleRequest) Reset()
- func (x *ListDeptRoleRequest) String() string
- func (m *ListDeptRoleRequest) Validate() error
- func (m *ListDeptRoleRequest) ValidateAll() error
- type ListDeptRoleRequestMultiError
- type ListDeptRoleRequestValidationError
- func (e ListDeptRoleRequestValidationError) Cause() error
- func (e ListDeptRoleRequestValidationError) Error() string
- func (e ListDeptRoleRequestValidationError) ErrorName() string
- func (e ListDeptRoleRequestValidationError) Field() string
- func (e ListDeptRoleRequestValidationError) Key() bool
- func (e ListDeptRoleRequestValidationError) Reason() string
- type UnimplementedDeptRoleServer
- func (UnimplementedDeptRoleServer) CreateDeptRole(context.Context, *CreateDeptRoleRequest) (*CreateDeptRoleReply, error)
- func (UnimplementedDeptRoleServer) DeleteDeptRole(context.Context, *DeleteDeptRoleRequest) (*DeleteDeptRoleReply, error)
- func (UnimplementedDeptRoleServer) ListDeptRole(context.Context, *ListDeptRoleRequest) (*ListDeptRoleReply, error)
- type UnsafeDeptRoleServer
Constants ¶
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" )
const ( OperationDeptRoleCreateDeptRole = "/manager.api.deptrole.DeptRole/CreateDeptRole" OperationDeptRoleDeleteDeptRole = "/manager.api.deptrole.DeptRole/DeleteDeptRole" OperationDeptRoleListDeptRole = "/manager.api.deptrole.DeptRole/ListDeptRole" )
Variables ¶
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)
var File_api_deptrole_proto_deptrole_proto protoreflect.FileDescriptor
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 ¶
func (m CreateDeptRoleReplyMultiError) Error() string
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 ¶
func (e CreateDeptRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateDeptRoleReplyValidationError) Error ¶
func (e CreateDeptRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeptRoleReplyValidationError) ErrorName ¶
func (e CreateDeptRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeptRoleReplyValidationError) Field ¶
func (e CreateDeptRoleReplyValidationError) Field() string
Field function returns field value.
func (CreateDeptRoleReplyValidationError) Key ¶
func (e CreateDeptRoleReplyValidationError) Key() bool
Key function returns key value.
func (CreateDeptRoleReplyValidationError) Reason ¶
func (e CreateDeptRoleReplyValidationError) Reason() string
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 ¶
func (m CreateDeptRoleRequestMultiError) Error() string
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 ¶
func (e CreateDeptRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDeptRoleRequestValidationError) Error ¶
func (e CreateDeptRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDeptRoleRequestValidationError) ErrorName ¶
func (e CreateDeptRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDeptRoleRequestValidationError) Field ¶
func (e CreateDeptRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateDeptRoleRequestValidationError) Key ¶
func (e CreateDeptRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateDeptRoleRequestValidationError) Reason ¶
func (e CreateDeptRoleRequestValidationError) Reason() string
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 ¶
func (m DeleteDeptRoleReplyMultiError) Error() string
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 ¶
func (e DeleteDeptRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeptRoleReplyValidationError) Error ¶
func (e DeleteDeptRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeptRoleReplyValidationError) ErrorName ¶
func (e DeleteDeptRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeptRoleReplyValidationError) Field ¶
func (e DeleteDeptRoleReplyValidationError) Field() string
Field function returns field value.
func (DeleteDeptRoleReplyValidationError) Key ¶
func (e DeleteDeptRoleReplyValidationError) Key() bool
Key function returns key value.
func (DeleteDeptRoleReplyValidationError) Reason ¶
func (e DeleteDeptRoleReplyValidationError) Reason() string
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 ¶
func (m DeleteDeptRoleRequestMultiError) Error() string
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 ¶
func (e DeleteDeptRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDeptRoleRequestValidationError) Error ¶
func (e DeleteDeptRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDeptRoleRequestValidationError) ErrorName ¶
func (e DeleteDeptRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDeptRoleRequestValidationError) Field ¶
func (e DeleteDeptRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteDeptRoleRequestValidationError) Key ¶
func (e DeleteDeptRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDeptRoleRequestValidationError) Reason ¶
func (e DeleteDeptRoleRequestValidationError) Reason() string
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 (c *DeptRoleHTTPClientImpl) CreateDeptRole(ctx context.Context, in *CreateDeptRoleRequest, opts ...http.CallOption) (*CreateDeptRoleReply, error)
func (*DeptRoleHTTPClientImpl) DeleteDeptRole ¶
func (c *DeptRoleHTTPClientImpl) DeleteDeptRole(ctx context.Context, in *DeleteDeptRoleRequest, opts ...http.CallOption) (*DeleteDeptRoleReply, error)
func (*DeptRoleHTTPClientImpl) ListDeptRole ¶
func (c *DeptRoleHTTPClientImpl) ListDeptRole(ctx context.Context, in *ListDeptRoleRequest, opts ...http.CallOption) (*ListDeptRoleReply, error)
type DeptRoleHTTPServer ¶
type DeptRoleHTTPServer interface {
CreateDeptRole(context.Context, *CreateDeptRoleRequest) (*CreateDeptRoleReply, error)
DeleteDeptRole(context.Context, *DeleteDeptRoleRequest) (*DeleteDeptRoleReply, error)
ListDeptRole(context.Context, *ListDeptRoleRequest) (*ListDeptRoleReply, error)
}
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 ¶
func (m ListDeptRoleReplyMultiError) Error() string
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 ¶
func (e ListDeptRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (ListDeptRoleReplyValidationError) Error ¶
func (e ListDeptRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListDeptRoleReplyValidationError) ErrorName ¶
func (e ListDeptRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListDeptRoleReplyValidationError) Field ¶
func (e ListDeptRoleReplyValidationError) Field() string
Field function returns field value.
func (ListDeptRoleReplyValidationError) Key ¶
func (e ListDeptRoleReplyValidationError) Key() bool
Key function returns key value.
func (ListDeptRoleReplyValidationError) Reason ¶
func (e ListDeptRoleReplyValidationError) Reason() string
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 ¶
func (m ListDeptRoleReply_RoleMultiError) Error() string
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 ¶
func (e ListDeptRoleReply_RoleValidationError) Cause() error
Cause function returns cause value.
func (ListDeptRoleReply_RoleValidationError) Error ¶
func (e ListDeptRoleReply_RoleValidationError) Error() string
Error satisfies the builtin error interface
func (ListDeptRoleReply_RoleValidationError) ErrorName ¶
func (e ListDeptRoleReply_RoleValidationError) ErrorName() string
ErrorName returns error name.
func (ListDeptRoleReply_RoleValidationError) Field ¶
func (e ListDeptRoleReply_RoleValidationError) Field() string
Field function returns field value.
func (ListDeptRoleReply_RoleValidationError) Key ¶
func (e ListDeptRoleReply_RoleValidationError) Key() bool
Key function returns key value.
func (ListDeptRoleReply_RoleValidationError) Reason ¶
func (e ListDeptRoleReply_RoleValidationError) Reason() string
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 ¶
func (m ListDeptRoleRequestMultiError) Error() string
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 ¶
func (e ListDeptRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDeptRoleRequestValidationError) Error ¶
func (e ListDeptRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDeptRoleRequestValidationError) ErrorName ¶
func (e ListDeptRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDeptRoleRequestValidationError) Field ¶
func (e ListDeptRoleRequestValidationError) Field() string
Field function returns field value.
func (ListDeptRoleRequestValidationError) Key ¶
func (e ListDeptRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListDeptRoleRequestValidationError) Reason ¶
func (e ListDeptRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedDeptRoleServer ¶
type UnimplementedDeptRoleServer struct{}
UnimplementedDeptRoleServer must be embedded to have forward compatible implementations.
func (UnimplementedDeptRoleServer) CreateDeptRole ¶
func (UnimplementedDeptRoleServer) CreateDeptRole(context.Context, *CreateDeptRoleRequest) (*CreateDeptRoleReply, error)
func (UnimplementedDeptRoleServer) DeleteDeptRole ¶
func (UnimplementedDeptRoleServer) DeleteDeptRole(context.Context, *DeleteDeptRoleRequest) (*DeleteDeptRoleReply, error)
func (UnimplementedDeptRoleServer) ListDeptRole ¶
func (UnimplementedDeptRoleServer) ListDeptRole(context.Context, *ListDeptRoleRequest) (*ListDeptRoleReply, error)
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.