Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddDepartmentObjectReply
- func (*AddDepartmentObjectReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddDepartmentObjectReply) GetId() uint32
- func (*AddDepartmentObjectReply) ProtoMessage()
- func (x *AddDepartmentObjectReply) ProtoReflect() protoreflect.Message
- func (x *AddDepartmentObjectReply) Reset()
- func (x *AddDepartmentObjectReply) String() string
- func (m *AddDepartmentObjectReply) Validate() error
- func (m *AddDepartmentObjectReply) ValidateAll() error
- type AddDepartmentObjectReplyMultiError
- type AddDepartmentObjectReplyValidationError
- func (e AddDepartmentObjectReplyValidationError) Cause() error
- func (e AddDepartmentObjectReplyValidationError) Error() string
- func (e AddDepartmentObjectReplyValidationError) ErrorName() string
- func (e AddDepartmentObjectReplyValidationError) Field() string
- func (e AddDepartmentObjectReplyValidationError) Key() bool
- func (e AddDepartmentObjectReplyValidationError) Reason() string
- type AddDepartmentObjectRequest
- func (*AddDepartmentObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDepartmentObjectRequest) GetObjectKeyword() string
- func (x *AddDepartmentObjectRequest) GetValue() string
- func (*AddDepartmentObjectRequest) ProtoMessage()
- func (x *AddDepartmentObjectRequest) ProtoReflect() protoreflect.Message
- func (x *AddDepartmentObjectRequest) Reset()
- func (x *AddDepartmentObjectRequest) String() string
- func (m *AddDepartmentObjectRequest) Validate() error
- func (m *AddDepartmentObjectRequest) ValidateAll() error
- type AddDepartmentObjectRequestMultiError
- type AddDepartmentObjectRequestValidationError
- func (e AddDepartmentObjectRequestValidationError) Cause() error
- func (e AddDepartmentObjectRequestValidationError) Error() string
- func (e AddDepartmentObjectRequestValidationError) ErrorName() string
- func (e AddDepartmentObjectRequestValidationError) Field() string
- func (e AddDepartmentObjectRequestValidationError) Key() bool
- func (e AddDepartmentObjectRequestValidationError) Reason() string
- type AddDepartmentReply
- func (*AddDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddDepartmentReply) GetId() uint32
- func (*AddDepartmentReply) ProtoMessage()
- func (x *AddDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *AddDepartmentReply) Reset()
- func (x *AddDepartmentReply) String() string
- func (m *AddDepartmentReply) Validate() error
- func (m *AddDepartmentReply) ValidateAll() error
- type AddDepartmentReplyMultiError
- type AddDepartmentReplyValidationError
- func (e AddDepartmentReplyValidationError) Cause() error
- func (e AddDepartmentReplyValidationError) Error() string
- func (e AddDepartmentReplyValidationError) ErrorName() string
- func (e AddDepartmentReplyValidationError) Field() string
- func (e AddDepartmentReplyValidationError) Key() bool
- func (e AddDepartmentReplyValidationError) Reason() string
- type AddDepartmentRequest
- func (*AddDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDepartmentRequest) GetDescription() string
- func (x *AddDepartmentRequest) GetKeyword() string
- func (x *AddDepartmentRequest) GetName() string
- func (x *AddDepartmentRequest) GetParentId() uint32
- func (*AddDepartmentRequest) ProtoMessage()
- func (x *AddDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *AddDepartmentRequest) Reset()
- func (x *AddDepartmentRequest) String() string
- func (m *AddDepartmentRequest) Validate() error
- func (m *AddDepartmentRequest) ValidateAll() error
- type AddDepartmentRequestMultiError
- type AddDepartmentRequestValidationError
- func (e AddDepartmentRequestValidationError) Cause() error
- func (e AddDepartmentRequestValidationError) Error() string
- func (e AddDepartmentRequestValidationError) ErrorName() string
- func (e AddDepartmentRequestValidationError) Field() string
- func (e AddDepartmentRequestValidationError) Key() bool
- func (e AddDepartmentRequestValidationError) Reason() string
- type AllDepartmentObjectValueReply
- func (*AllDepartmentObjectValueReply) Descriptor() ([]byte, []int)deprecated
- func (x *AllDepartmentObjectValueReply) GetValues() []string
- func (*AllDepartmentObjectValueReply) ProtoMessage()
- func (x *AllDepartmentObjectValueReply) ProtoReflect() protoreflect.Message
- func (x *AllDepartmentObjectValueReply) Reset()
- func (x *AllDepartmentObjectValueReply) String() string
- func (m *AllDepartmentObjectValueReply) Validate() error
- func (m *AllDepartmentObjectValueReply) ValidateAll() error
- type AllDepartmentObjectValueReplyMultiError
- type AllDepartmentObjectValueReplyValidationError
- func (e AllDepartmentObjectValueReplyValidationError) Cause() error
- func (e AllDepartmentObjectValueReplyValidationError) Error() string
- func (e AllDepartmentObjectValueReplyValidationError) ErrorName() string
- func (e AllDepartmentObjectValueReplyValidationError) Field() string
- func (e AllDepartmentObjectValueReplyValidationError) Key() bool
- func (e AllDepartmentObjectValueReplyValidationError) Reason() string
- type AllDepartmentObjectValueRequest
- func (*AllDepartmentObjectValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllDepartmentObjectValueRequest) GetDepartmentId() uint32
- func (x *AllDepartmentObjectValueRequest) GetObjectId() uint32
- func (*AllDepartmentObjectValueRequest) ProtoMessage()
- func (x *AllDepartmentObjectValueRequest) ProtoReflect() protoreflect.Message
- func (x *AllDepartmentObjectValueRequest) Reset()
- func (x *AllDepartmentObjectValueRequest) String() string
- func (m *AllDepartmentObjectValueRequest) Validate() error
- func (m *AllDepartmentObjectValueRequest) ValidateAll() error
- type AllDepartmentObjectValueRequestMultiError
- type AllDepartmentObjectValueRequestValidationError
- func (e AllDepartmentObjectValueRequestValidationError) Cause() error
- func (e AllDepartmentObjectValueRequestValidationError) Error() string
- func (e AllDepartmentObjectValueRequestValidationError) ErrorName() string
- func (e AllDepartmentObjectValueRequestValidationError) Field() string
- func (e AllDepartmentObjectValueRequestValidationError) Key() bool
- func (e AllDepartmentObjectValueRequestValidationError) Reason() string
- type DeleteDepartmentObjectRequest
- func (*DeleteDepartmentObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDepartmentObjectRequest) GetObjectKeyword() string
- func (x *DeleteDepartmentObjectRequest) GetValue() string
- func (*DeleteDepartmentObjectRequest) ProtoMessage()
- func (x *DeleteDepartmentObjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDepartmentObjectRequest) Reset()
- func (x *DeleteDepartmentObjectRequest) String() string
- func (m *DeleteDepartmentObjectRequest) Validate() error
- func (m *DeleteDepartmentObjectRequest) ValidateAll() error
- type DeleteDepartmentObjectRequestMultiError
- type DeleteDepartmentObjectRequestValidationError
- func (e DeleteDepartmentObjectRequestValidationError) Cause() error
- func (e DeleteDepartmentObjectRequestValidationError) Error() string
- func (e DeleteDepartmentObjectRequestValidationError) ErrorName() string
- func (e DeleteDepartmentObjectRequestValidationError) Field() string
- func (e DeleteDepartmentObjectRequestValidationError) Key() bool
- func (e DeleteDepartmentObjectRequestValidationError) Reason() string
- type DeleteDepartmentRequest
- func (*DeleteDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDepartmentRequest) GetId() uint32
- func (*DeleteDepartmentRequest) ProtoMessage()
- func (x *DeleteDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDepartmentRequest) Reset()
- func (x *DeleteDepartmentRequest) String() string
- func (m *DeleteDepartmentRequest) Validate() error
- func (m *DeleteDepartmentRequest) ValidateAll() error
- type DeleteDepartmentRequestMultiError
- type DeleteDepartmentRequestValidationError
- func (e DeleteDepartmentRequestValidationError) Cause() error
- func (e DeleteDepartmentRequestValidationError) Error() string
- func (e DeleteDepartmentRequestValidationError) ErrorName() string
- func (e DeleteDepartmentRequestValidationError) Field() string
- func (e DeleteDepartmentRequestValidationError) Key() bool
- func (e DeleteDepartmentRequestValidationError) Reason() string
- type Department
- func (*Department) Descriptor() ([]byte, []int)deprecated
- func (x *Department) GetChildren() []*Department
- func (x *Department) GetCreatedAt() uint32
- func (x *Department) GetDescription() string
- func (x *Department) GetId() uint32
- func (x *Department) GetKeyword() string
- func (x *Department) GetName() string
- func (x *Department) GetParentId() uint32
- func (x *Department) GetUpdatedAt() uint32
- func (*Department) ProtoMessage()
- func (x *Department) ProtoReflect() protoreflect.Message
- func (x *Department) Reset()
- func (x *Department) String() string
- func (m *Department) Validate() error
- func (m *Department) ValidateAll() error
- type DepartmentMultiError
- type DepartmentValidationError
- type GetDepartmentReply
- func (*GetDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDepartmentReply) GetDepartment() *Department
- func (*GetDepartmentReply) ProtoMessage()
- func (x *GetDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *GetDepartmentReply) Reset()
- func (x *GetDepartmentReply) String() string
- func (m *GetDepartmentReply) Validate() error
- func (m *GetDepartmentReply) ValidateAll() error
- type GetDepartmentReplyMultiError
- type GetDepartmentReplyValidationError
- func (e GetDepartmentReplyValidationError) Cause() error
- func (e GetDepartmentReplyValidationError) Error() string
- func (e GetDepartmentReplyValidationError) ErrorName() string
- func (e GetDepartmentReplyValidationError) Field() string
- func (e GetDepartmentReplyValidationError) Key() bool
- func (e GetDepartmentReplyValidationError) Reason() string
- type GetDepartmentRequest
- func (*GetDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDepartmentRequest) GetId() uint32
- func (*GetDepartmentRequest) ProtoMessage()
- func (x *GetDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *GetDepartmentRequest) Reset()
- func (x *GetDepartmentRequest) String() string
- func (m *GetDepartmentRequest) Validate() error
- func (m *GetDepartmentRequest) ValidateAll() error
- type GetDepartmentRequestMultiError
- type GetDepartmentRequestValidationError
- func (e GetDepartmentRequestValidationError) Cause() error
- func (e GetDepartmentRequestValidationError) Error() string
- func (e GetDepartmentRequestValidationError) ErrorName() string
- func (e GetDepartmentRequestValidationError) Field() string
- func (e GetDepartmentRequestValidationError) Key() bool
- func (e GetDepartmentRequestValidationError) Reason() string
- type GetDepartmentTreeReply
- func (*GetDepartmentTreeReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDepartmentTreeReply) GetList() []*Department
- func (*GetDepartmentTreeReply) ProtoMessage()
- func (x *GetDepartmentTreeReply) ProtoReflect() protoreflect.Message
- func (x *GetDepartmentTreeReply) Reset()
- func (x *GetDepartmentTreeReply) String() string
- func (m *GetDepartmentTreeReply) Validate() error
- func (m *GetDepartmentTreeReply) ValidateAll() error
- type GetDepartmentTreeReplyMultiError
- type GetDepartmentTreeReplyValidationError
- func (e GetDepartmentTreeReplyValidationError) Cause() error
- func (e GetDepartmentTreeReplyValidationError) Error() string
- func (e GetDepartmentTreeReplyValidationError) ErrorName() string
- func (e GetDepartmentTreeReplyValidationError) Field() string
- func (e GetDepartmentTreeReplyValidationError) Key() bool
- func (e GetDepartmentTreeReplyValidationError) Reason() string
- type ImportDepartmentObjectRequest
- func (*ImportDepartmentObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportDepartmentObjectRequest) GetDepartmentId() uint32
- func (x *ImportDepartmentObjectRequest) GetObjectId() uint32
- func (x *ImportDepartmentObjectRequest) GetValues() []string
- func (*ImportDepartmentObjectRequest) ProtoMessage()
- func (x *ImportDepartmentObjectRequest) ProtoReflect() protoreflect.Message
- func (x *ImportDepartmentObjectRequest) Reset()
- func (x *ImportDepartmentObjectRequest) String() string
- func (m *ImportDepartmentObjectRequest) Validate() error
- func (m *ImportDepartmentObjectRequest) ValidateAll() error
- type ImportDepartmentObjectRequestMultiError
- type ImportDepartmentObjectRequestValidationError
- func (e ImportDepartmentObjectRequestValidationError) Cause() error
- func (e ImportDepartmentObjectRequestValidationError) Error() string
- func (e ImportDepartmentObjectRequestValidationError) ErrorName() string
- func (e ImportDepartmentObjectRequestValidationError) Field() string
- func (e ImportDepartmentObjectRequestValidationError) Key() bool
- func (e ImportDepartmentObjectRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddDepartment(ctx context.Context, in *AddDepartmentRequest, opts ...http.CallOption) (*AddDepartmentReply, error)
- func (c *ServiceHTTPClientImpl) AddDepartmentObject(ctx context.Context, in *AddDepartmentObjectRequest, opts ...http.CallOption) (*AddDepartmentObjectReply, error)
- func (c *ServiceHTTPClientImpl) AllDepartmentObjectValue(ctx context.Context, in *AllDepartmentObjectValueRequest, ...) (*AllDepartmentObjectValueReply, error)
- func (c *ServiceHTTPClientImpl) DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) DeleteDepartmentObject(ctx context.Context, in *DeleteDepartmentObjectRequest, ...) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetDepartmentTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetDepartmentTreeReply, error)
- func (c *ServiceHTTPClientImpl) ImportDepartmentObject(ctx context.Context, in *ImportDepartmentObjectRequest, ...) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error)
- func (UnimplementedServiceServer) AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error)
- func (UnimplementedServiceServer) AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error)
- func (UnimplementedServiceServer) DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error)
- func (UnimplementedServiceServer) ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateDepartmentRequest
- func (*UpdateDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDepartmentRequest) GetDescription() string
- func (x *UpdateDepartmentRequest) GetId() uint32
- func (x *UpdateDepartmentRequest) GetName() string
- func (x *UpdateDepartmentRequest) GetParentId() uint32
- func (*UpdateDepartmentRequest) ProtoMessage()
- func (x *UpdateDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDepartmentRequest) Reset()
- func (x *UpdateDepartmentRequest) String() string
- func (m *UpdateDepartmentRequest) Validate() error
- func (m *UpdateDepartmentRequest) ValidateAll() error
- type UpdateDepartmentRequestMultiError
- type UpdateDepartmentRequestValidationError
- func (e UpdateDepartmentRequestValidationError) Cause() error
- func (e UpdateDepartmentRequestValidationError) Error() string
- func (e UpdateDepartmentRequestValidationError) ErrorName() string
- func (e UpdateDepartmentRequestValidationError) Field() string
- func (e UpdateDepartmentRequestValidationError) Key() bool
- func (e UpdateDepartmentRequestValidationError) Reason() string
Constants ¶
const ( Service_GetDepartmentTree_FullMethodName = "/manager_department.Service/GetDepartmentTree" Service_AddDepartment_FullMethodName = "/manager_department.Service/AddDepartment" Service_UpdateDepartment_FullMethodName = "/manager_department.Service/UpdateDepartment" Service_DeleteDepartment_FullMethodName = "/manager_department.Service/DeleteDepartment" Service_AllDepartmentObjectValue_FullMethodName = "/manager_department.Service/AllDepartmentObjectValue" Service_AddDepartmentObject_FullMethodName = "/manager_department.Service/AddDepartmentObject" Service_ImportDepartmentObject_FullMethodName = "/manager_department.Service/ImportDepartmentObject" Service_DeleteDepartmentObject_FullMethodName = "/manager_department.Service/DeleteDepartmentObject" )
const OperationServiceAddDepartment = "/manager_department.Service/AddDepartment"
const OperationServiceAddDepartmentObject = "/manager_department.Service/AddDepartmentObject"
const OperationServiceAllDepartmentObjectValue = "/manager_department.Service/AllDepartmentObjectValue"
const OperationServiceDeleteDepartment = "/manager_department.Service/DeleteDepartment"
const OperationServiceDeleteDepartmentObject = "/manager_department.Service/DeleteDepartmentObject"
const OperationServiceGetDepartmentTree = "/manager_department.Service/GetDepartmentTree"
const OperationServiceImportDepartmentObject = "/manager_department.Service/ImportDepartmentObject"
const OperationServiceUpdateDepartment = "/manager_department.Service/UpdateDepartment"
Variables ¶
var File_manager_department_proto protoreflect.FileDescriptor
var File_manager_department_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_department.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDepartmentTree", Handler: _Service_GetDepartmentTree_Handler, }, { MethodName: "AddDepartment", Handler: _Service_AddDepartment_Handler, }, { MethodName: "UpdateDepartment", Handler: _Service_UpdateDepartment_Handler, }, { MethodName: "DeleteDepartment", Handler: _Service_DeleteDepartment_Handler, }, { MethodName: "AllDepartmentObjectValue", Handler: _Service_AllDepartmentObjectValue_Handler, }, { MethodName: "AddDepartmentObject", Handler: _Service_AddDepartmentObject_Handler, }, { MethodName: "ImportDepartmentObject", Handler: _Service_ImportDepartmentObject_Handler, }, { MethodName: "DeleteDepartmentObject", Handler: _Service_DeleteDepartmentObject_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_department_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddDepartmentObjectReply ¶
type AddDepartmentObjectReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddDepartmentObjectReply) Descriptor
deprecated
func (*AddDepartmentObjectReply) Descriptor() ([]byte, []int)
Deprecated: Use AddDepartmentObjectReply.ProtoReflect.Descriptor instead.
func (*AddDepartmentObjectReply) GetId ¶
func (x *AddDepartmentObjectReply) GetId() uint32
func (*AddDepartmentObjectReply) ProtoMessage ¶
func (*AddDepartmentObjectReply) ProtoMessage()
func (*AddDepartmentObjectReply) ProtoReflect ¶
func (x *AddDepartmentObjectReply) ProtoReflect() protoreflect.Message
func (*AddDepartmentObjectReply) Reset ¶
func (x *AddDepartmentObjectReply) Reset()
func (*AddDepartmentObjectReply) String ¶
func (x *AddDepartmentObjectReply) String() string
func (*AddDepartmentObjectReply) Validate ¶
func (m *AddDepartmentObjectReply) Validate() error
Validate checks the field values on AddDepartmentObjectReply 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 (*AddDepartmentObjectReply) ValidateAll ¶
func (m *AddDepartmentObjectReply) ValidateAll() error
ValidateAll checks the field values on AddDepartmentObjectReply 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 AddDepartmentObjectReplyMultiError, or nil if none found.
type AddDepartmentObjectReplyMultiError ¶
type AddDepartmentObjectReplyMultiError []error
AddDepartmentObjectReplyMultiError is an error wrapping multiple validation errors returned by AddDepartmentObjectReply.ValidateAll() if the designated constraints aren't met.
func (AddDepartmentObjectReplyMultiError) AllErrors ¶
func (m AddDepartmentObjectReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddDepartmentObjectReplyMultiError) Error ¶
func (m AddDepartmentObjectReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddDepartmentObjectReplyValidationError ¶
type AddDepartmentObjectReplyValidationError struct {
// contains filtered or unexported fields
}
AddDepartmentObjectReplyValidationError is the validation error returned by AddDepartmentObjectReply.Validate if the designated constraints aren't met.
func (AddDepartmentObjectReplyValidationError) Cause ¶
func (e AddDepartmentObjectReplyValidationError) Cause() error
Cause function returns cause value.
func (AddDepartmentObjectReplyValidationError) Error ¶
func (e AddDepartmentObjectReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddDepartmentObjectReplyValidationError) ErrorName ¶
func (e AddDepartmentObjectReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddDepartmentObjectReplyValidationError) Field ¶
func (e AddDepartmentObjectReplyValidationError) Field() string
Field function returns field value.
func (AddDepartmentObjectReplyValidationError) Key ¶
func (e AddDepartmentObjectReplyValidationError) Key() bool
Key function returns key value.
func (AddDepartmentObjectReplyValidationError) Reason ¶
func (e AddDepartmentObjectReplyValidationError) Reason() string
Reason function returns reason value.
type AddDepartmentObjectRequest ¶
type AddDepartmentObjectRequest struct { ObjectKeyword string `protobuf:"bytes,1,opt,name=object_keyword,json=objectKeyword,proto3" json:"object_keyword,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AddDepartmentObjectRequest) Descriptor
deprecated
func (*AddDepartmentObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDepartmentObjectRequest.ProtoReflect.Descriptor instead.
func (*AddDepartmentObjectRequest) GetObjectKeyword ¶
func (x *AddDepartmentObjectRequest) GetObjectKeyword() string
func (*AddDepartmentObjectRequest) GetValue ¶
func (x *AddDepartmentObjectRequest) GetValue() string
func (*AddDepartmentObjectRequest) ProtoMessage ¶
func (*AddDepartmentObjectRequest) ProtoMessage()
func (*AddDepartmentObjectRequest) ProtoReflect ¶
func (x *AddDepartmentObjectRequest) ProtoReflect() protoreflect.Message
func (*AddDepartmentObjectRequest) Reset ¶
func (x *AddDepartmentObjectRequest) Reset()
func (*AddDepartmentObjectRequest) String ¶
func (x *AddDepartmentObjectRequest) String() string
func (*AddDepartmentObjectRequest) Validate ¶
func (m *AddDepartmentObjectRequest) Validate() error
Validate checks the field values on AddDepartmentObjectRequest 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 (*AddDepartmentObjectRequest) ValidateAll ¶
func (m *AddDepartmentObjectRequest) ValidateAll() error
ValidateAll checks the field values on AddDepartmentObjectRequest 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 AddDepartmentObjectRequestMultiError, or nil if none found.
type AddDepartmentObjectRequestMultiError ¶
type AddDepartmentObjectRequestMultiError []error
AddDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by AddDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.
func (AddDepartmentObjectRequestMultiError) AllErrors ¶
func (m AddDepartmentObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddDepartmentObjectRequestMultiError) Error ¶
func (m AddDepartmentObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddDepartmentObjectRequestValidationError ¶
type AddDepartmentObjectRequestValidationError struct {
// contains filtered or unexported fields
}
AddDepartmentObjectRequestValidationError is the validation error returned by AddDepartmentObjectRequest.Validate if the designated constraints aren't met.
func (AddDepartmentObjectRequestValidationError) Cause ¶
func (e AddDepartmentObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (AddDepartmentObjectRequestValidationError) Error ¶
func (e AddDepartmentObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddDepartmentObjectRequestValidationError) ErrorName ¶
func (e AddDepartmentObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddDepartmentObjectRequestValidationError) Field ¶
func (e AddDepartmentObjectRequestValidationError) Field() string
Field function returns field value.
func (AddDepartmentObjectRequestValidationError) Key ¶
func (e AddDepartmentObjectRequestValidationError) Key() bool
Key function returns key value.
func (AddDepartmentObjectRequestValidationError) Reason ¶
func (e AddDepartmentObjectRequestValidationError) Reason() string
Reason function returns reason value.
type AddDepartmentReply ¶
type AddDepartmentReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddDepartmentReply) Descriptor
deprecated
func (*AddDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use AddDepartmentReply.ProtoReflect.Descriptor instead.
func (*AddDepartmentReply) GetId ¶
func (x *AddDepartmentReply) GetId() uint32
func (*AddDepartmentReply) ProtoMessage ¶
func (*AddDepartmentReply) ProtoMessage()
func (*AddDepartmentReply) ProtoReflect ¶
func (x *AddDepartmentReply) ProtoReflect() protoreflect.Message
func (*AddDepartmentReply) Reset ¶
func (x *AddDepartmentReply) Reset()
func (*AddDepartmentReply) String ¶
func (x *AddDepartmentReply) String() string
func (*AddDepartmentReply) Validate ¶
func (m *AddDepartmentReply) Validate() error
Validate checks the field values on AddDepartmentReply 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 (*AddDepartmentReply) ValidateAll ¶
func (m *AddDepartmentReply) ValidateAll() error
ValidateAll checks the field values on AddDepartmentReply 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 AddDepartmentReplyMultiError, or nil if none found.
type AddDepartmentReplyMultiError ¶
type AddDepartmentReplyMultiError []error
AddDepartmentReplyMultiError is an error wrapping multiple validation errors returned by AddDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (AddDepartmentReplyMultiError) AllErrors ¶
func (m AddDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddDepartmentReplyMultiError) Error ¶
func (m AddDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddDepartmentReplyValidationError ¶
type AddDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
AddDepartmentReplyValidationError is the validation error returned by AddDepartmentReply.Validate if the designated constraints aren't met.
func (AddDepartmentReplyValidationError) Cause ¶
func (e AddDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (AddDepartmentReplyValidationError) Error ¶
func (e AddDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddDepartmentReplyValidationError) ErrorName ¶
func (e AddDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddDepartmentReplyValidationError) Field ¶
func (e AddDepartmentReplyValidationError) Field() string
Field function returns field value.
func (AddDepartmentReplyValidationError) Key ¶
func (e AddDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (AddDepartmentReplyValidationError) Reason ¶
func (e AddDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type AddDepartmentRequest ¶
type AddDepartmentRequest struct { ParentId uint32 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,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"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*AddDepartmentRequest) Descriptor
deprecated
func (*AddDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDepartmentRequest.ProtoReflect.Descriptor instead.
func (*AddDepartmentRequest) GetDescription ¶
func (x *AddDepartmentRequest) GetDescription() string
func (*AddDepartmentRequest) GetKeyword ¶
func (x *AddDepartmentRequest) GetKeyword() string
func (*AddDepartmentRequest) GetName ¶
func (x *AddDepartmentRequest) GetName() string
func (*AddDepartmentRequest) GetParentId ¶
func (x *AddDepartmentRequest) GetParentId() uint32
func (*AddDepartmentRequest) ProtoMessage ¶
func (*AddDepartmentRequest) ProtoMessage()
func (*AddDepartmentRequest) ProtoReflect ¶
func (x *AddDepartmentRequest) ProtoReflect() protoreflect.Message
func (*AddDepartmentRequest) Reset ¶
func (x *AddDepartmentRequest) Reset()
func (*AddDepartmentRequest) String ¶
func (x *AddDepartmentRequest) String() string
func (*AddDepartmentRequest) Validate ¶
func (m *AddDepartmentRequest) Validate() error
Validate checks the field values on AddDepartmentRequest 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 (*AddDepartmentRequest) ValidateAll ¶
func (m *AddDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on AddDepartmentRequest 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 AddDepartmentRequestMultiError, or nil if none found.
type AddDepartmentRequestMultiError ¶
type AddDepartmentRequestMultiError []error
AddDepartmentRequestMultiError is an error wrapping multiple validation errors returned by AddDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (AddDepartmentRequestMultiError) AllErrors ¶
func (m AddDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddDepartmentRequestMultiError) Error ¶
func (m AddDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddDepartmentRequestValidationError ¶
type AddDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
AddDepartmentRequestValidationError is the validation error returned by AddDepartmentRequest.Validate if the designated constraints aren't met.
func (AddDepartmentRequestValidationError) Cause ¶
func (e AddDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (AddDepartmentRequestValidationError) Error ¶
func (e AddDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddDepartmentRequestValidationError) ErrorName ¶
func (e AddDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddDepartmentRequestValidationError) Field ¶
func (e AddDepartmentRequestValidationError) Field() string
Field function returns field value.
func (AddDepartmentRequestValidationError) Key ¶
func (e AddDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (AddDepartmentRequestValidationError) Reason ¶
func (e AddDepartmentRequestValidationError) Reason() string
Reason function returns reason value.
type AllDepartmentObjectValueReply ¶
type AllDepartmentObjectValueReply struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*AllDepartmentObjectValueReply) Descriptor
deprecated
func (*AllDepartmentObjectValueReply) Descriptor() ([]byte, []int)
Deprecated: Use AllDepartmentObjectValueReply.ProtoReflect.Descriptor instead.
func (*AllDepartmentObjectValueReply) GetValues ¶
func (x *AllDepartmentObjectValueReply) GetValues() []string
func (*AllDepartmentObjectValueReply) ProtoMessage ¶
func (*AllDepartmentObjectValueReply) ProtoMessage()
func (*AllDepartmentObjectValueReply) ProtoReflect ¶
func (x *AllDepartmentObjectValueReply) ProtoReflect() protoreflect.Message
func (*AllDepartmentObjectValueReply) Reset ¶
func (x *AllDepartmentObjectValueReply) Reset()
func (*AllDepartmentObjectValueReply) String ¶
func (x *AllDepartmentObjectValueReply) String() string
func (*AllDepartmentObjectValueReply) Validate ¶
func (m *AllDepartmentObjectValueReply) Validate() error
Validate checks the field values on AllDepartmentObjectValueReply 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 (*AllDepartmentObjectValueReply) ValidateAll ¶
func (m *AllDepartmentObjectValueReply) ValidateAll() error
ValidateAll checks the field values on AllDepartmentObjectValueReply 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 AllDepartmentObjectValueReplyMultiError, or nil if none found.
type AllDepartmentObjectValueReplyMultiError ¶
type AllDepartmentObjectValueReplyMultiError []error
AllDepartmentObjectValueReplyMultiError is an error wrapping multiple validation errors returned by AllDepartmentObjectValueReply.ValidateAll() if the designated constraints aren't met.
func (AllDepartmentObjectValueReplyMultiError) AllErrors ¶
func (m AllDepartmentObjectValueReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllDepartmentObjectValueReplyMultiError) Error ¶
func (m AllDepartmentObjectValueReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllDepartmentObjectValueReplyValidationError ¶
type AllDepartmentObjectValueReplyValidationError struct {
// contains filtered or unexported fields
}
AllDepartmentObjectValueReplyValidationError is the validation error returned by AllDepartmentObjectValueReply.Validate if the designated constraints aren't met.
func (AllDepartmentObjectValueReplyValidationError) Cause ¶
func (e AllDepartmentObjectValueReplyValidationError) Cause() error
Cause function returns cause value.
func (AllDepartmentObjectValueReplyValidationError) Error ¶
func (e AllDepartmentObjectValueReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AllDepartmentObjectValueReplyValidationError) ErrorName ¶
func (e AllDepartmentObjectValueReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AllDepartmentObjectValueReplyValidationError) Field ¶
func (e AllDepartmentObjectValueReplyValidationError) Field() string
Field function returns field value.
func (AllDepartmentObjectValueReplyValidationError) Key ¶
func (e AllDepartmentObjectValueReplyValidationError) Key() bool
Key function returns key value.
func (AllDepartmentObjectValueReplyValidationError) Reason ¶
func (e AllDepartmentObjectValueReplyValidationError) Reason() string
Reason function returns reason value.
type AllDepartmentObjectValueRequest ¶
type AllDepartmentObjectValueRequest struct { ObjectId uint32 `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` DepartmentId uint32 `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"` // contains filtered or unexported fields }
func (*AllDepartmentObjectValueRequest) Descriptor
deprecated
func (*AllDepartmentObjectValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllDepartmentObjectValueRequest.ProtoReflect.Descriptor instead.
func (*AllDepartmentObjectValueRequest) GetDepartmentId ¶
func (x *AllDepartmentObjectValueRequest) GetDepartmentId() uint32
func (*AllDepartmentObjectValueRequest) GetObjectId ¶
func (x *AllDepartmentObjectValueRequest) GetObjectId() uint32
func (*AllDepartmentObjectValueRequest) ProtoMessage ¶
func (*AllDepartmentObjectValueRequest) ProtoMessage()
func (*AllDepartmentObjectValueRequest) ProtoReflect ¶
func (x *AllDepartmentObjectValueRequest) ProtoReflect() protoreflect.Message
func (*AllDepartmentObjectValueRequest) Reset ¶
func (x *AllDepartmentObjectValueRequest) Reset()
func (*AllDepartmentObjectValueRequest) String ¶
func (x *AllDepartmentObjectValueRequest) String() string
func (*AllDepartmentObjectValueRequest) Validate ¶
func (m *AllDepartmentObjectValueRequest) Validate() error
Validate checks the field values on AllDepartmentObjectValueRequest 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 (*AllDepartmentObjectValueRequest) ValidateAll ¶
func (m *AllDepartmentObjectValueRequest) ValidateAll() error
ValidateAll checks the field values on AllDepartmentObjectValueRequest 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 AllDepartmentObjectValueRequestMultiError, or nil if none found.
type AllDepartmentObjectValueRequestMultiError ¶
type AllDepartmentObjectValueRequestMultiError []error
AllDepartmentObjectValueRequestMultiError is an error wrapping multiple validation errors returned by AllDepartmentObjectValueRequest.ValidateAll() if the designated constraints aren't met.
func (AllDepartmentObjectValueRequestMultiError) AllErrors ¶
func (m AllDepartmentObjectValueRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllDepartmentObjectValueRequestMultiError) Error ¶
func (m AllDepartmentObjectValueRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllDepartmentObjectValueRequestValidationError ¶
type AllDepartmentObjectValueRequestValidationError struct {
// contains filtered or unexported fields
}
AllDepartmentObjectValueRequestValidationError is the validation error returned by AllDepartmentObjectValueRequest.Validate if the designated constraints aren't met.
func (AllDepartmentObjectValueRequestValidationError) Cause ¶
func (e AllDepartmentObjectValueRequestValidationError) Cause() error
Cause function returns cause value.
func (AllDepartmentObjectValueRequestValidationError) Error ¶
func (e AllDepartmentObjectValueRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AllDepartmentObjectValueRequestValidationError) ErrorName ¶
func (e AllDepartmentObjectValueRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AllDepartmentObjectValueRequestValidationError) Field ¶
func (e AllDepartmentObjectValueRequestValidationError) Field() string
Field function returns field value.
func (AllDepartmentObjectValueRequestValidationError) Key ¶
func (e AllDepartmentObjectValueRequestValidationError) Key() bool
Key function returns key value.
func (AllDepartmentObjectValueRequestValidationError) Reason ¶
func (e AllDepartmentObjectValueRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDepartmentObjectRequest ¶
type DeleteDepartmentObjectRequest struct { ObjectKeyword string `protobuf:"bytes,1,opt,name=object_keyword,json=objectKeyword,proto3" json:"object_keyword,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DeleteDepartmentObjectRequest) Descriptor
deprecated
func (*DeleteDepartmentObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDepartmentObjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteDepartmentObjectRequest) GetObjectKeyword ¶
func (x *DeleteDepartmentObjectRequest) GetObjectKeyword() string
func (*DeleteDepartmentObjectRequest) GetValue ¶
func (x *DeleteDepartmentObjectRequest) GetValue() string
func (*DeleteDepartmentObjectRequest) ProtoMessage ¶
func (*DeleteDepartmentObjectRequest) ProtoMessage()
func (*DeleteDepartmentObjectRequest) ProtoReflect ¶
func (x *DeleteDepartmentObjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteDepartmentObjectRequest) Reset ¶
func (x *DeleteDepartmentObjectRequest) Reset()
func (*DeleteDepartmentObjectRequest) String ¶
func (x *DeleteDepartmentObjectRequest) String() string
func (*DeleteDepartmentObjectRequest) Validate ¶
func (m *DeleteDepartmentObjectRequest) Validate() error
Validate checks the field values on DeleteDepartmentObjectRequest 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 (*DeleteDepartmentObjectRequest) ValidateAll ¶
func (m *DeleteDepartmentObjectRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDepartmentObjectRequest 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 DeleteDepartmentObjectRequestMultiError, or nil if none found.
type DeleteDepartmentObjectRequestMultiError ¶
type DeleteDepartmentObjectRequestMultiError []error
DeleteDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by DeleteDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDepartmentObjectRequestMultiError) AllErrors ¶
func (m DeleteDepartmentObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDepartmentObjectRequestMultiError) Error ¶
func (m DeleteDepartmentObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDepartmentObjectRequestValidationError ¶
type DeleteDepartmentObjectRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDepartmentObjectRequestValidationError is the validation error returned by DeleteDepartmentObjectRequest.Validate if the designated constraints aren't met.
func (DeleteDepartmentObjectRequestValidationError) Cause ¶
func (e DeleteDepartmentObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDepartmentObjectRequestValidationError) Error ¶
func (e DeleteDepartmentObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDepartmentObjectRequestValidationError) ErrorName ¶
func (e DeleteDepartmentObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDepartmentObjectRequestValidationError) Field ¶
func (e DeleteDepartmentObjectRequestValidationError) Field() string
Field function returns field value.
func (DeleteDepartmentObjectRequestValidationError) Key ¶
func (e DeleteDepartmentObjectRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDepartmentObjectRequestValidationError) Reason ¶
func (e DeleteDepartmentObjectRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDepartmentRequest ¶
type DeleteDepartmentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDepartmentRequest) Descriptor
deprecated
func (*DeleteDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDepartmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDepartmentRequest) GetId ¶
func (x *DeleteDepartmentRequest) GetId() uint32
func (*DeleteDepartmentRequest) ProtoMessage ¶
func (*DeleteDepartmentRequest) ProtoMessage()
func (*DeleteDepartmentRequest) ProtoReflect ¶
func (x *DeleteDepartmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteDepartmentRequest) Reset ¶
func (x *DeleteDepartmentRequest) Reset()
func (*DeleteDepartmentRequest) String ¶
func (x *DeleteDepartmentRequest) String() string
func (*DeleteDepartmentRequest) Validate ¶
func (m *DeleteDepartmentRequest) Validate() error
Validate checks the field values on DeleteDepartmentRequest 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 (*DeleteDepartmentRequest) ValidateAll ¶
func (m *DeleteDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDepartmentRequest 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 DeleteDepartmentRequestMultiError, or nil if none found.
type DeleteDepartmentRequestMultiError ¶
type DeleteDepartmentRequestMultiError []error
DeleteDepartmentRequestMultiError is an error wrapping multiple validation errors returned by DeleteDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDepartmentRequestMultiError) AllErrors ¶
func (m DeleteDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDepartmentRequestMultiError) Error ¶
func (m DeleteDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDepartmentRequestValidationError ¶
type DeleteDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDepartmentRequestValidationError is the validation error returned by DeleteDepartmentRequest.Validate if the designated constraints aren't met.
func (DeleteDepartmentRequestValidationError) Cause ¶
func (e DeleteDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDepartmentRequestValidationError) Error ¶
func (e DeleteDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDepartmentRequestValidationError) ErrorName ¶
func (e DeleteDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDepartmentRequestValidationError) Field ¶
func (e DeleteDepartmentRequestValidationError) Field() string
Field function returns field value.
func (DeleteDepartmentRequestValidationError) Key ¶
func (e DeleteDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDepartmentRequestValidationError) Reason ¶
func (e DeleteDepartmentRequestValidationError) Reason() string
Reason function returns reason value.
type Department ¶
type Department struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,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"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Children []*Department `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*Department) Descriptor
deprecated
func (*Department) Descriptor() ([]byte, []int)
Deprecated: Use Department.ProtoReflect.Descriptor instead.
func (*Department) GetChildren ¶
func (x *Department) GetChildren() []*Department
func (*Department) GetCreatedAt ¶
func (x *Department) GetCreatedAt() uint32
func (*Department) GetDescription ¶
func (x *Department) GetDescription() string
func (*Department) GetId ¶
func (x *Department) GetId() uint32
func (*Department) GetKeyword ¶
func (x *Department) GetKeyword() string
func (*Department) GetName ¶
func (x *Department) GetName() string
func (*Department) GetParentId ¶
func (x *Department) GetParentId() uint32
func (*Department) GetUpdatedAt ¶
func (x *Department) GetUpdatedAt() uint32
func (*Department) ProtoMessage ¶
func (*Department) ProtoMessage()
func (*Department) ProtoReflect ¶
func (x *Department) ProtoReflect() protoreflect.Message
func (*Department) Reset ¶
func (x *Department) Reset()
func (*Department) String ¶
func (x *Department) String() string
func (*Department) Validate ¶
func (m *Department) Validate() error
Validate checks the field values on Department 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 (*Department) ValidateAll ¶
func (m *Department) ValidateAll() error
ValidateAll checks the field values on Department 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 DepartmentMultiError, or nil if none found.
type DepartmentMultiError ¶
type DepartmentMultiError []error
DepartmentMultiError is an error wrapping multiple validation errors returned by Department.ValidateAll() if the designated constraints aren't met.
func (DepartmentMultiError) AllErrors ¶
func (m DepartmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DepartmentMultiError) Error ¶
func (m DepartmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DepartmentValidationError ¶
type DepartmentValidationError struct {
// contains filtered or unexported fields
}
DepartmentValidationError is the validation error returned by Department.Validate if the designated constraints aren't met.
func (DepartmentValidationError) Cause ¶
func (e DepartmentValidationError) Cause() error
Cause function returns cause value.
func (DepartmentValidationError) Error ¶
func (e DepartmentValidationError) Error() string
Error satisfies the builtin error interface
func (DepartmentValidationError) ErrorName ¶
func (e DepartmentValidationError) ErrorName() string
ErrorName returns error name.
func (DepartmentValidationError) Field ¶
func (e DepartmentValidationError) Field() string
Field function returns field value.
func (DepartmentValidationError) Key ¶
func (e DepartmentValidationError) Key() bool
Key function returns key value.
func (DepartmentValidationError) Reason ¶
func (e DepartmentValidationError) Reason() string
Reason function returns reason value.
type GetDepartmentReply ¶
type GetDepartmentReply struct { Department *Department `protobuf:"bytes,1,opt,name=department,proto3" json:"department,omitempty"` // contains filtered or unexported fields }
func (*GetDepartmentReply) Descriptor
deprecated
func (*GetDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDepartmentReply.ProtoReflect.Descriptor instead.
func (*GetDepartmentReply) GetDepartment ¶
func (x *GetDepartmentReply) GetDepartment() *Department
func (*GetDepartmentReply) ProtoMessage ¶
func (*GetDepartmentReply) ProtoMessage()
func (*GetDepartmentReply) ProtoReflect ¶
func (x *GetDepartmentReply) ProtoReflect() protoreflect.Message
func (*GetDepartmentReply) Reset ¶
func (x *GetDepartmentReply) Reset()
func (*GetDepartmentReply) String ¶
func (x *GetDepartmentReply) String() string
func (*GetDepartmentReply) Validate ¶
func (m *GetDepartmentReply) Validate() error
Validate checks the field values on GetDepartmentReply 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 (*GetDepartmentReply) ValidateAll ¶
func (m *GetDepartmentReply) ValidateAll() error
ValidateAll checks the field values on GetDepartmentReply 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 GetDepartmentReplyMultiError, or nil if none found.
type GetDepartmentReplyMultiError ¶
type GetDepartmentReplyMultiError []error
GetDepartmentReplyMultiError is an error wrapping multiple validation errors returned by GetDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (GetDepartmentReplyMultiError) AllErrors ¶
func (m GetDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDepartmentReplyMultiError) Error ¶
func (m GetDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDepartmentReplyValidationError ¶
type GetDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
GetDepartmentReplyValidationError is the validation error returned by GetDepartmentReply.Validate if the designated constraints aren't met.
func (GetDepartmentReplyValidationError) Cause ¶
func (e GetDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDepartmentReplyValidationError) Error ¶
func (e GetDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDepartmentReplyValidationError) ErrorName ¶
func (e GetDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDepartmentReplyValidationError) Field ¶
func (e GetDepartmentReplyValidationError) Field() string
Field function returns field value.
func (GetDepartmentReplyValidationError) Key ¶
func (e GetDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (GetDepartmentReplyValidationError) Reason ¶
func (e GetDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type GetDepartmentRequest ¶
type GetDepartmentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetDepartmentRequest) Descriptor
deprecated
func (*GetDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDepartmentRequest.ProtoReflect.Descriptor instead.
func (*GetDepartmentRequest) GetId ¶
func (x *GetDepartmentRequest) GetId() uint32
func (*GetDepartmentRequest) ProtoMessage ¶
func (*GetDepartmentRequest) ProtoMessage()
func (*GetDepartmentRequest) ProtoReflect ¶
func (x *GetDepartmentRequest) ProtoReflect() protoreflect.Message
func (*GetDepartmentRequest) Reset ¶
func (x *GetDepartmentRequest) Reset()
func (*GetDepartmentRequest) String ¶
func (x *GetDepartmentRequest) String() string
func (*GetDepartmentRequest) Validate ¶
func (m *GetDepartmentRequest) Validate() error
Validate checks the field values on GetDepartmentRequest 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 (*GetDepartmentRequest) ValidateAll ¶
func (m *GetDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on GetDepartmentRequest 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 GetDepartmentRequestMultiError, or nil if none found.
type GetDepartmentRequestMultiError ¶
type GetDepartmentRequestMultiError []error
GetDepartmentRequestMultiError is an error wrapping multiple validation errors returned by GetDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (GetDepartmentRequestMultiError) AllErrors ¶
func (m GetDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDepartmentRequestMultiError) Error ¶
func (m GetDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDepartmentRequestValidationError ¶
type GetDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
GetDepartmentRequestValidationError is the validation error returned by GetDepartmentRequest.Validate if the designated constraints aren't met.
func (GetDepartmentRequestValidationError) Cause ¶
func (e GetDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDepartmentRequestValidationError) Error ¶
func (e GetDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDepartmentRequestValidationError) ErrorName ¶
func (e GetDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDepartmentRequestValidationError) Field ¶
func (e GetDepartmentRequestValidationError) Field() string
Field function returns field value.
func (GetDepartmentRequestValidationError) Key ¶
func (e GetDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (GetDepartmentRequestValidationError) Reason ¶
func (e GetDepartmentRequestValidationError) Reason() string
Reason function returns reason value.
type GetDepartmentTreeReply ¶
type GetDepartmentTreeReply struct { List []*Department `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetDepartmentTreeReply) Descriptor
deprecated
func (*GetDepartmentTreeReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDepartmentTreeReply.ProtoReflect.Descriptor instead.
func (*GetDepartmentTreeReply) GetList ¶
func (x *GetDepartmentTreeReply) GetList() []*Department
func (*GetDepartmentTreeReply) ProtoMessage ¶
func (*GetDepartmentTreeReply) ProtoMessage()
func (*GetDepartmentTreeReply) ProtoReflect ¶
func (x *GetDepartmentTreeReply) ProtoReflect() protoreflect.Message
func (*GetDepartmentTreeReply) Reset ¶
func (x *GetDepartmentTreeReply) Reset()
func (*GetDepartmentTreeReply) String ¶
func (x *GetDepartmentTreeReply) String() string
func (*GetDepartmentTreeReply) Validate ¶
func (m *GetDepartmentTreeReply) Validate() error
Validate checks the field values on GetDepartmentTreeReply 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 (*GetDepartmentTreeReply) ValidateAll ¶
func (m *GetDepartmentTreeReply) ValidateAll() error
ValidateAll checks the field values on GetDepartmentTreeReply 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 GetDepartmentTreeReplyMultiError, or nil if none found.
type GetDepartmentTreeReplyMultiError ¶
type GetDepartmentTreeReplyMultiError []error
GetDepartmentTreeReplyMultiError is an error wrapping multiple validation errors returned by GetDepartmentTreeReply.ValidateAll() if the designated constraints aren't met.
func (GetDepartmentTreeReplyMultiError) AllErrors ¶
func (m GetDepartmentTreeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDepartmentTreeReplyMultiError) Error ¶
func (m GetDepartmentTreeReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDepartmentTreeReplyValidationError ¶
type GetDepartmentTreeReplyValidationError struct {
// contains filtered or unexported fields
}
GetDepartmentTreeReplyValidationError is the validation error returned by GetDepartmentTreeReply.Validate if the designated constraints aren't met.
func (GetDepartmentTreeReplyValidationError) Cause ¶
func (e GetDepartmentTreeReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDepartmentTreeReplyValidationError) Error ¶
func (e GetDepartmentTreeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDepartmentTreeReplyValidationError) ErrorName ¶
func (e GetDepartmentTreeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDepartmentTreeReplyValidationError) Field ¶
func (e GetDepartmentTreeReplyValidationError) Field() string
Field function returns field value.
func (GetDepartmentTreeReplyValidationError) Key ¶
func (e GetDepartmentTreeReplyValidationError) Key() bool
Key function returns key value.
func (GetDepartmentTreeReplyValidationError) Reason ¶
func (e GetDepartmentTreeReplyValidationError) Reason() string
Reason function returns reason value.
type ImportDepartmentObjectRequest ¶
type ImportDepartmentObjectRequest struct { ObjectId uint32 `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` DepartmentId uint32 `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"` Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*ImportDepartmentObjectRequest) Descriptor
deprecated
func (*ImportDepartmentObjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportDepartmentObjectRequest.ProtoReflect.Descriptor instead.
func (*ImportDepartmentObjectRequest) GetDepartmentId ¶
func (x *ImportDepartmentObjectRequest) GetDepartmentId() uint32
func (*ImportDepartmentObjectRequest) GetObjectId ¶
func (x *ImportDepartmentObjectRequest) GetObjectId() uint32
func (*ImportDepartmentObjectRequest) GetValues ¶
func (x *ImportDepartmentObjectRequest) GetValues() []string
func (*ImportDepartmentObjectRequest) ProtoMessage ¶
func (*ImportDepartmentObjectRequest) ProtoMessage()
func (*ImportDepartmentObjectRequest) ProtoReflect ¶
func (x *ImportDepartmentObjectRequest) ProtoReflect() protoreflect.Message
func (*ImportDepartmentObjectRequest) Reset ¶
func (x *ImportDepartmentObjectRequest) Reset()
func (*ImportDepartmentObjectRequest) String ¶
func (x *ImportDepartmentObjectRequest) String() string
func (*ImportDepartmentObjectRequest) Validate ¶
func (m *ImportDepartmentObjectRequest) Validate() error
Validate checks the field values on ImportDepartmentObjectRequest 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 (*ImportDepartmentObjectRequest) ValidateAll ¶
func (m *ImportDepartmentObjectRequest) ValidateAll() error
ValidateAll checks the field values on ImportDepartmentObjectRequest 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 ImportDepartmentObjectRequestMultiError, or nil if none found.
type ImportDepartmentObjectRequestMultiError ¶
type ImportDepartmentObjectRequestMultiError []error
ImportDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by ImportDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.
func (ImportDepartmentObjectRequestMultiError) AllErrors ¶
func (m ImportDepartmentObjectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImportDepartmentObjectRequestMultiError) Error ¶
func (m ImportDepartmentObjectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImportDepartmentObjectRequestValidationError ¶
type ImportDepartmentObjectRequestValidationError struct {
// contains filtered or unexported fields
}
ImportDepartmentObjectRequestValidationError is the validation error returned by ImportDepartmentObjectRequest.Validate if the designated constraints aren't met.
func (ImportDepartmentObjectRequestValidationError) Cause ¶
func (e ImportDepartmentObjectRequestValidationError) Cause() error
Cause function returns cause value.
func (ImportDepartmentObjectRequestValidationError) Error ¶
func (e ImportDepartmentObjectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ImportDepartmentObjectRequestValidationError) ErrorName ¶
func (e ImportDepartmentObjectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ImportDepartmentObjectRequestValidationError) Field ¶
func (e ImportDepartmentObjectRequestValidationError) Field() string
Field function returns field value.
func (ImportDepartmentObjectRequestValidationError) Key ¶
func (e ImportDepartmentObjectRequestValidationError) Key() bool
Key function returns key value.
func (ImportDepartmentObjectRequestValidationError) Reason ¶
func (e ImportDepartmentObjectRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // GetDepartmentTree 获取部门树 GetDepartmentTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDepartmentTreeReply, error) // AddDepartment 删除部门信息 AddDepartment(ctx context.Context, in *AddDepartmentRequest, opts ...grpc.CallOption) (*AddDepartmentReply, error) // UpdateDepartment 更新部门信息 UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteDepartment 删除部门信息 DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // AllDepartmentObject 分页获取资源对象信息值 AllDepartmentObjectValue(ctx context.Context, in *AllDepartmentObjectValueRequest, opts ...grpc.CallOption) (*AllDepartmentObjectValueReply, error) // AddDepartmentObject 删除资源对象信息 AddDepartmentObject(ctx context.Context, in *AddDepartmentObjectRequest, opts ...grpc.CallOption) (*AddDepartmentObjectReply, error) // ImportDepartmentObject 更新资源对象信息 ImportDepartmentObject(ctx context.Context, in *ImportDepartmentObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteDepartmentObject 删除资源对象信息 DeleteDepartmentObject(ctx context.Context, in *DeleteDepartmentObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddDepartment(ctx context.Context, req *AddDepartmentRequest, opts ...http.CallOption) (rsp *AddDepartmentReply, err error) AddDepartmentObject(ctx context.Context, req *AddDepartmentObjectRequest, opts ...http.CallOption) (rsp *AddDepartmentObjectReply, err error) AllDepartmentObjectValue(ctx context.Context, req *AllDepartmentObjectValueRequest, opts ...http.CallOption) (rsp *AllDepartmentObjectValueReply, err error) DeleteDepartment(ctx context.Context, req *DeleteDepartmentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteDepartmentObject(ctx context.Context, req *DeleteDepartmentObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetDepartmentTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetDepartmentTreeReply, err error) ImportDepartmentObject(ctx context.Context, req *ImportDepartmentObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateDepartment(ctx context.Context, req *UpdateDepartmentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddDepartment ¶
func (c *ServiceHTTPClientImpl) AddDepartment(ctx context.Context, in *AddDepartmentRequest, opts ...http.CallOption) (*AddDepartmentReply, error)
func (*ServiceHTTPClientImpl) AddDepartmentObject ¶
func (c *ServiceHTTPClientImpl) AddDepartmentObject(ctx context.Context, in *AddDepartmentObjectRequest, opts ...http.CallOption) (*AddDepartmentObjectReply, error)
func (*ServiceHTTPClientImpl) AllDepartmentObjectValue ¶
func (c *ServiceHTTPClientImpl) AllDepartmentObjectValue(ctx context.Context, in *AllDepartmentObjectValueRequest, opts ...http.CallOption) (*AllDepartmentObjectValueReply, error)
func (*ServiceHTTPClientImpl) DeleteDepartment ¶
func (c *ServiceHTTPClientImpl) DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) DeleteDepartmentObject ¶
func (c *ServiceHTTPClientImpl) DeleteDepartmentObject(ctx context.Context, in *DeleteDepartmentObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetDepartmentTree ¶
func (c *ServiceHTTPClientImpl) GetDepartmentTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetDepartmentTreeReply, error)
func (*ServiceHTTPClientImpl) ImportDepartmentObject ¶
func (c *ServiceHTTPClientImpl) ImportDepartmentObject(ctx context.Context, in *ImportDepartmentObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UpdateDepartment ¶
func (c *ServiceHTTPClientImpl) UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddDepartment AddDepartment 删除部门信息 AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error) // AddDepartmentObject AddDepartmentObject 删除资源对象信息 AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error) // AllDepartmentObjectValue AllDepartmentObject 分页获取资源对象信息值 AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error) // DeleteDepartment DeleteDepartment 删除部门信息 DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error) // DeleteDepartmentObject DeleteDepartmentObject 删除资源对象信息 DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error) // GetDepartmentTree GetDepartmentTree 获取部门树 GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error) // ImportDepartmentObject ImportDepartmentObject 更新资源对象信息 ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error) // UpdateDepartment UpdateDepartment 更新部门信息 UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // GetDepartmentTree 获取部门树 GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error) // AddDepartment 删除部门信息 AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error) // UpdateDepartment 更新部门信息 UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error) // DeleteDepartment 删除部门信息 DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error) // AllDepartmentObject 分页获取资源对象信息值 AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error) // AddDepartmentObject 删除资源对象信息 AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error) // ImportDepartmentObject 更新资源对象信息 ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error) // DeleteDepartmentObject 删除资源对象信息 DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddDepartment ¶
func (UnimplementedServiceServer) AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error)
func (UnimplementedServiceServer) AddDepartmentObject ¶
func (UnimplementedServiceServer) AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error)
func (UnimplementedServiceServer) AllDepartmentObjectValue ¶
func (UnimplementedServiceServer) AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error)
func (UnimplementedServiceServer) DeleteDepartment ¶
func (UnimplementedServiceServer) DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) DeleteDepartmentObject ¶
func (UnimplementedServiceServer) DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetDepartmentTree ¶
func (UnimplementedServiceServer) GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error)
func (UnimplementedServiceServer) ImportDepartmentObject ¶
func (UnimplementedServiceServer) ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UpdateDepartment ¶
func (UnimplementedServiceServer) UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateDepartmentRequest ¶
type UpdateDepartmentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateDepartmentRequest) Descriptor
deprecated
func (*UpdateDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDepartmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateDepartmentRequest) GetDescription ¶
func (x *UpdateDepartmentRequest) GetDescription() string
func (*UpdateDepartmentRequest) GetId ¶
func (x *UpdateDepartmentRequest) GetId() uint32
func (*UpdateDepartmentRequest) GetName ¶
func (x *UpdateDepartmentRequest) GetName() string
func (*UpdateDepartmentRequest) GetParentId ¶
func (x *UpdateDepartmentRequest) GetParentId() uint32
func (*UpdateDepartmentRequest) ProtoMessage ¶
func (*UpdateDepartmentRequest) ProtoMessage()
func (*UpdateDepartmentRequest) ProtoReflect ¶
func (x *UpdateDepartmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateDepartmentRequest) Reset ¶
func (x *UpdateDepartmentRequest) Reset()
func (*UpdateDepartmentRequest) String ¶
func (x *UpdateDepartmentRequest) String() string
func (*UpdateDepartmentRequest) Validate ¶
func (m *UpdateDepartmentRequest) Validate() error
Validate checks the field values on UpdateDepartmentRequest 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 (*UpdateDepartmentRequest) ValidateAll ¶
func (m *UpdateDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on UpdateDepartmentRequest 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 UpdateDepartmentRequestMultiError, or nil if none found.
type UpdateDepartmentRequestMultiError ¶
type UpdateDepartmentRequestMultiError []error
UpdateDepartmentRequestMultiError is an error wrapping multiple validation errors returned by UpdateDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateDepartmentRequestMultiError) AllErrors ¶
func (m UpdateDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDepartmentRequestMultiError) Error ¶
func (m UpdateDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDepartmentRequestValidationError ¶
type UpdateDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateDepartmentRequestValidationError is the validation error returned by UpdateDepartmentRequest.Validate if the designated constraints aren't met.
func (UpdateDepartmentRequestValidationError) Cause ¶
func (e UpdateDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDepartmentRequestValidationError) Error ¶
func (e UpdateDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDepartmentRequestValidationError) ErrorName ¶
func (e UpdateDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDepartmentRequestValidationError) Field ¶
func (e UpdateDepartmentRequestValidationError) Field() string
Field function returns field value.
func (UpdateDepartmentRequestValidationError) Key ¶
func (e UpdateDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDepartmentRequestValidationError) Reason ¶
func (e UpdateDepartmentRequestValidationError) Reason() string
Reason function returns reason value.