Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDepartmentHTTPServer(s *http.Server, srv DepartmentHTTPServer)
- func RegisterDepartmentServer(s grpc.ServiceRegistrar, srv DepartmentServer)
- type CreateDepartmentReply
- func (*CreateDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDepartmentReply) GetId() uint32
- func (*CreateDepartmentReply) ProtoMessage()
- func (x *CreateDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *CreateDepartmentReply) Reset()
- func (x *CreateDepartmentReply) String() string
- func (m *CreateDepartmentReply) Validate() error
- func (m *CreateDepartmentReply) ValidateAll() error
- type CreateDepartmentReplyMultiError
- type CreateDepartmentReplyValidationError
- func (e CreateDepartmentReplyValidationError) Cause() error
- func (e CreateDepartmentReplyValidationError) Error() string
- func (e CreateDepartmentReplyValidationError) ErrorName() string
- func (e CreateDepartmentReplyValidationError) Field() string
- func (e CreateDepartmentReplyValidationError) Key() bool
- func (e CreateDepartmentReplyValidationError) Reason() string
- type CreateDepartmentRequest
- func (*CreateDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDepartmentRequest) GetDescription() string
- func (x *CreateDepartmentRequest) GetKeyword() string
- func (x *CreateDepartmentRequest) GetName() string
- func (x *CreateDepartmentRequest) GetParentId() uint32
- func (*CreateDepartmentRequest) ProtoMessage()
- func (x *CreateDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDepartmentRequest) Reset()
- func (x *CreateDepartmentRequest) String() string
- func (m *CreateDepartmentRequest) Validate() error
- func (m *CreateDepartmentRequest) ValidateAll() error
- type CreateDepartmentRequestMultiError
- type CreateDepartmentRequestValidationError
- func (e CreateDepartmentRequestValidationError) Cause() error
- func (e CreateDepartmentRequestValidationError) Error() string
- func (e CreateDepartmentRequestValidationError) ErrorName() string
- func (e CreateDepartmentRequestValidationError) Field() string
- func (e CreateDepartmentRequestValidationError) Key() bool
- func (e CreateDepartmentRequestValidationError) Reason() string
- type DeleteDepartmentReply
- func (*DeleteDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDepartmentReply) GetTotal() uint32
- func (*DeleteDepartmentReply) ProtoMessage()
- func (x *DeleteDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *DeleteDepartmentReply) Reset()
- func (x *DeleteDepartmentReply) String() string
- func (m *DeleteDepartmentReply) Validate() error
- func (m *DeleteDepartmentReply) ValidateAll() error
- type DeleteDepartmentReplyMultiError
- type DeleteDepartmentReplyValidationError
- func (e DeleteDepartmentReplyValidationError) Cause() error
- func (e DeleteDepartmentReplyValidationError) Error() string
- func (e DeleteDepartmentReplyValidationError) ErrorName() string
- func (e DeleteDepartmentReplyValidationError) Field() string
- func (e DeleteDepartmentReplyValidationError) Key() bool
- func (e DeleteDepartmentReplyValidationError) Reason() string
- type DeleteDepartmentRequest
- func (*DeleteDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDepartmentRequest) GetIds() []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 DepartmentClient
- type DepartmentHTTPClient
- type DepartmentHTTPClientImpl
- func (c *DepartmentHTTPClientImpl) CreateDepartment(ctx context.Context, in *CreateDepartmentRequest, opts ...http.CallOption) (*CreateDepartmentReply, error)
- func (c *DepartmentHTTPClientImpl) DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...http.CallOption) (*DeleteDepartmentReply, error)
- func (c *DepartmentHTTPClientImpl) GetDepartment(ctx context.Context, in *GetDepartmentRequest, opts ...http.CallOption) (*GetDepartmentReply, error)
- func (c *DepartmentHTTPClientImpl) ListDepartment(ctx context.Context, in *ListDepartmentRequest, opts ...http.CallOption) (*ListDepartmentReply, error)
- func (c *DepartmentHTTPClientImpl) UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...http.CallOption) (*UpdateDepartmentReply, error)
- type DepartmentHTTPServer
- type DepartmentServer
- type GetDepartmentReply
- func (*GetDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDepartmentReply) GetCreatedAt() uint32
- func (x *GetDepartmentReply) GetDescription() string
- func (x *GetDepartmentReply) GetId() uint32
- func (x *GetDepartmentReply) GetKeyword() string
- func (x *GetDepartmentReply) GetName() string
- func (x *GetDepartmentReply) GetParentId() uint32
- func (x *GetDepartmentReply) GetUpdatedAt() uint32
- 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 (x *GetDepartmentRequest) GetKeyword() string
- 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 ListDepartmentReply
- func (*ListDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListDepartmentReply) GetList() []*ListDepartmentReply_Department
- func (x *ListDepartmentReply) GetTotal() uint32
- func (*ListDepartmentReply) ProtoMessage()
- func (x *ListDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *ListDepartmentReply) Reset()
- func (x *ListDepartmentReply) String() string
- func (m *ListDepartmentReply) Validate() error
- func (m *ListDepartmentReply) ValidateAll() error
- type ListDepartmentReplyMultiError
- type ListDepartmentReplyValidationError
- func (e ListDepartmentReplyValidationError) Cause() error
- func (e ListDepartmentReplyValidationError) Error() string
- func (e ListDepartmentReplyValidationError) ErrorName() string
- func (e ListDepartmentReplyValidationError) Field() string
- func (e ListDepartmentReplyValidationError) Key() bool
- func (e ListDepartmentReplyValidationError) Reason() string
- type ListDepartmentReply_Department
- func (*ListDepartmentReply_Department) Descriptor() ([]byte, []int)deprecated
- func (x *ListDepartmentReply_Department) GetChildren() []*ListDepartmentReply_Department
- func (x *ListDepartmentReply_Department) GetCreatedAt() uint32
- func (x *ListDepartmentReply_Department) GetDescription() string
- func (x *ListDepartmentReply_Department) GetId() uint32
- func (x *ListDepartmentReply_Department) GetKeyword() string
- func (x *ListDepartmentReply_Department) GetName() string
- func (x *ListDepartmentReply_Department) GetParentId() uint32
- func (x *ListDepartmentReply_Department) GetUpdatedAt() uint32
- func (*ListDepartmentReply_Department) ProtoMessage()
- func (x *ListDepartmentReply_Department) ProtoReflect() protoreflect.Message
- func (x *ListDepartmentReply_Department) Reset()
- func (x *ListDepartmentReply_Department) String() string
- func (m *ListDepartmentReply_Department) Validate() error
- func (m *ListDepartmentReply_Department) ValidateAll() error
- type ListDepartmentReply_DepartmentMultiError
- type ListDepartmentReply_DepartmentValidationError
- func (e ListDepartmentReply_DepartmentValidationError) Cause() error
- func (e ListDepartmentReply_DepartmentValidationError) Error() string
- func (e ListDepartmentReply_DepartmentValidationError) ErrorName() string
- func (e ListDepartmentReply_DepartmentValidationError) Field() string
- func (e ListDepartmentReply_DepartmentValidationError) Key() bool
- func (e ListDepartmentReply_DepartmentValidationError) Reason() string
- type ListDepartmentRequest
- func (*ListDepartmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDepartmentRequest) GetKeyword() string
- func (x *ListDepartmentRequest) GetName() string
- func (x *ListDepartmentRequest) GetOrder() string
- func (x *ListDepartmentRequest) GetOrderBy() string
- func (*ListDepartmentRequest) ProtoMessage()
- func (x *ListDepartmentRequest) ProtoReflect() protoreflect.Message
- func (x *ListDepartmentRequest) Reset()
- func (x *ListDepartmentRequest) String() string
- func (m *ListDepartmentRequest) Validate() error
- func (m *ListDepartmentRequest) ValidateAll() error
- type ListDepartmentRequestMultiError
- type ListDepartmentRequestValidationError
- func (e ListDepartmentRequestValidationError) Cause() error
- func (e ListDepartmentRequestValidationError) Error() string
- func (e ListDepartmentRequestValidationError) ErrorName() string
- func (e ListDepartmentRequestValidationError) Field() string
- func (e ListDepartmentRequestValidationError) Key() bool
- func (e ListDepartmentRequestValidationError) Reason() string
- type UnimplementedDepartmentServer
- func (UnimplementedDepartmentServer) CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error)
- func (UnimplementedDepartmentServer) DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error)
- func (UnimplementedDepartmentServer) GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error)
- func (UnimplementedDepartmentServer) ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error)
- func (UnimplementedDepartmentServer) UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error)
- type UnsafeDepartmentServer
- type UpdateDepartmentReply
- func (*UpdateDepartmentReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateDepartmentReply) ProtoMessage()
- func (x *UpdateDepartmentReply) ProtoReflect() protoreflect.Message
- func (x *UpdateDepartmentReply) Reset()
- func (x *UpdateDepartmentReply) String() string
- func (m *UpdateDepartmentReply) Validate() error
- func (m *UpdateDepartmentReply) ValidateAll() error
- type UpdateDepartmentReplyMultiError
- type UpdateDepartmentReplyValidationError
- func (e UpdateDepartmentReplyValidationError) Cause() error
- func (e UpdateDepartmentReplyValidationError) Error() string
- func (e UpdateDepartmentReplyValidationError) ErrorName() string
- func (e UpdateDepartmentReplyValidationError) Field() string
- func (e UpdateDepartmentReplyValidationError) Key() bool
- func (e UpdateDepartmentReplyValidationError) Reason() string
- 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 ( Department_ListDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/ListDepartment" Department_CreateDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/CreateDepartment" Department_UpdateDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/UpdateDepartment" Department_DeleteDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/DeleteDepartment" Department_GetDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/GetDepartment" )
const OperationDepartmentCreateDepartment = "/manager.api.manager.department.v1.Department/CreateDepartment"
const OperationDepartmentDeleteDepartment = "/manager.api.manager.department.v1.Department/DeleteDepartment"
const OperationDepartmentGetDepartment = "/manager.api.manager.department.v1.Department/GetDepartment"
const OperationDepartmentListDepartment = "/manager.api.manager.department.v1.Department/ListDepartment"
const OperationDepartmentUpdateDepartment = "/manager.api.manager.department.v1.Department/UpdateDepartment"
Variables ¶
var Department_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.manager.department.v1.Department", HandlerType: (*DepartmentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDepartment", Handler: _Department_ListDepartment_Handler, }, { MethodName: "CreateDepartment", Handler: _Department_CreateDepartment_Handler, }, { MethodName: "UpdateDepartment", Handler: _Department_UpdateDepartment_Handler, }, { MethodName: "DeleteDepartment", Handler: _Department_DeleteDepartment_Handler, }, { MethodName: "GetDepartment", Handler: _Department_GetDepartment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/manager/department/manager_department_service.proto", }
Department_ServiceDesc is the grpc.ServiceDesc for Department 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_manager_department_manager_department_proto protoreflect.FileDescriptor
var File_api_manager_department_manager_department_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDepartmentHTTPServer ¶
func RegisterDepartmentHTTPServer(s *http.Server, srv DepartmentHTTPServer)
func RegisterDepartmentServer ¶
func RegisterDepartmentServer(s grpc.ServiceRegistrar, srv DepartmentServer)
Types ¶
type CreateDepartmentReply ¶
type CreateDepartmentReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateDepartmentReply) Descriptor
deprecated
func (*CreateDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateDepartmentReply.ProtoReflect.Descriptor instead.
func (*CreateDepartmentReply) GetId ¶
func (x *CreateDepartmentReply) GetId() uint32
func (*CreateDepartmentReply) ProtoMessage ¶
func (*CreateDepartmentReply) ProtoMessage()
func (*CreateDepartmentReply) ProtoReflect ¶
func (x *CreateDepartmentReply) ProtoReflect() protoreflect.Message
func (*CreateDepartmentReply) Reset ¶
func (x *CreateDepartmentReply) Reset()
func (*CreateDepartmentReply) String ¶
func (x *CreateDepartmentReply) String() string
func (*CreateDepartmentReply) Validate ¶
func (m *CreateDepartmentReply) Validate() error
Validate checks the field values on CreateDepartmentReply 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 (*CreateDepartmentReply) ValidateAll ¶
func (m *CreateDepartmentReply) ValidateAll() error
ValidateAll checks the field values on CreateDepartmentReply 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 CreateDepartmentReplyMultiError, or nil if none found.
type CreateDepartmentReplyMultiError ¶
type CreateDepartmentReplyMultiError []error
CreateDepartmentReplyMultiError is an error wrapping multiple validation errors returned by CreateDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (CreateDepartmentReplyMultiError) AllErrors ¶
func (m CreateDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDepartmentReplyMultiError) Error ¶
func (m CreateDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDepartmentReplyValidationError ¶
type CreateDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
CreateDepartmentReplyValidationError is the validation error returned by CreateDepartmentReply.Validate if the designated constraints aren't met.
func (CreateDepartmentReplyValidationError) Cause ¶
func (e CreateDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateDepartmentReplyValidationError) Error ¶
func (e CreateDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDepartmentReplyValidationError) ErrorName ¶
func (e CreateDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDepartmentReplyValidationError) Field ¶
func (e CreateDepartmentReplyValidationError) Field() string
Field function returns field value.
func (CreateDepartmentReplyValidationError) Key ¶
func (e CreateDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (CreateDepartmentReplyValidationError) Reason ¶
func (e CreateDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type CreateDepartmentRequest ¶
type CreateDepartmentRequest struct { ParentId uint32 `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateDepartmentRequest) Descriptor
deprecated
func (*CreateDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDepartmentRequest.ProtoReflect.Descriptor instead.
func (*CreateDepartmentRequest) GetDescription ¶
func (x *CreateDepartmentRequest) GetDescription() string
func (*CreateDepartmentRequest) GetKeyword ¶
func (x *CreateDepartmentRequest) GetKeyword() string
func (*CreateDepartmentRequest) GetName ¶
func (x *CreateDepartmentRequest) GetName() string
func (*CreateDepartmentRequest) GetParentId ¶
func (x *CreateDepartmentRequest) GetParentId() uint32
func (*CreateDepartmentRequest) ProtoMessage ¶
func (*CreateDepartmentRequest) ProtoMessage()
func (*CreateDepartmentRequest) ProtoReflect ¶
func (x *CreateDepartmentRequest) ProtoReflect() protoreflect.Message
func (*CreateDepartmentRequest) Reset ¶
func (x *CreateDepartmentRequest) Reset()
func (*CreateDepartmentRequest) String ¶
func (x *CreateDepartmentRequest) String() string
func (*CreateDepartmentRequest) Validate ¶
func (m *CreateDepartmentRequest) Validate() error
Validate checks the field values on CreateDepartmentRequest 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 (*CreateDepartmentRequest) ValidateAll ¶
func (m *CreateDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on CreateDepartmentRequest 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 CreateDepartmentRequestMultiError, or nil if none found.
type CreateDepartmentRequestMultiError ¶
type CreateDepartmentRequestMultiError []error
CreateDepartmentRequestMultiError is an error wrapping multiple validation errors returned by CreateDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (CreateDepartmentRequestMultiError) AllErrors ¶
func (m CreateDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDepartmentRequestMultiError) Error ¶
func (m CreateDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDepartmentRequestValidationError ¶
type CreateDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
CreateDepartmentRequestValidationError is the validation error returned by CreateDepartmentRequest.Validate if the designated constraints aren't met.
func (CreateDepartmentRequestValidationError) Cause ¶
func (e CreateDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDepartmentRequestValidationError) Error ¶
func (e CreateDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDepartmentRequestValidationError) ErrorName ¶
func (e CreateDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDepartmentRequestValidationError) Field ¶
func (e CreateDepartmentRequestValidationError) Field() string
Field function returns field value.
func (CreateDepartmentRequestValidationError) Key ¶
func (e CreateDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (CreateDepartmentRequestValidationError) Reason ¶
func (e CreateDepartmentRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDepartmentReply ¶
type DeleteDepartmentReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteDepartmentReply) Descriptor
deprecated
func (*DeleteDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDepartmentReply.ProtoReflect.Descriptor instead.
func (*DeleteDepartmentReply) GetTotal ¶
func (x *DeleteDepartmentReply) GetTotal() uint32
func (*DeleteDepartmentReply) ProtoMessage ¶
func (*DeleteDepartmentReply) ProtoMessage()
func (*DeleteDepartmentReply) ProtoReflect ¶
func (x *DeleteDepartmentReply) ProtoReflect() protoreflect.Message
func (*DeleteDepartmentReply) Reset ¶
func (x *DeleteDepartmentReply) Reset()
func (*DeleteDepartmentReply) String ¶
func (x *DeleteDepartmentReply) String() string
func (*DeleteDepartmentReply) Validate ¶
func (m *DeleteDepartmentReply) Validate() error
Validate checks the field values on DeleteDepartmentReply 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 (*DeleteDepartmentReply) ValidateAll ¶
func (m *DeleteDepartmentReply) ValidateAll() error
ValidateAll checks the field values on DeleteDepartmentReply 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 DeleteDepartmentReplyMultiError, or nil if none found.
type DeleteDepartmentReplyMultiError ¶
type DeleteDepartmentReplyMultiError []error
DeleteDepartmentReplyMultiError is an error wrapping multiple validation errors returned by DeleteDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (DeleteDepartmentReplyMultiError) AllErrors ¶
func (m DeleteDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDepartmentReplyMultiError) Error ¶
func (m DeleteDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDepartmentReplyValidationError ¶
type DeleteDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteDepartmentReplyValidationError is the validation error returned by DeleteDepartmentReply.Validate if the designated constraints aren't met.
func (DeleteDepartmentReplyValidationError) Cause ¶
func (e DeleteDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteDepartmentReplyValidationError) Error ¶
func (e DeleteDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDepartmentReplyValidationError) ErrorName ¶
func (e DeleteDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDepartmentReplyValidationError) Field ¶
func (e DeleteDepartmentReplyValidationError) Field() string
Field function returns field value.
func (DeleteDepartmentReplyValidationError) Key ¶
func (e DeleteDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (DeleteDepartmentReplyValidationError) Reason ¶
func (e DeleteDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteDepartmentRequest ¶
type DeleteDepartmentRequest struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteDepartmentRequest) Descriptor
deprecated
func (*DeleteDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDepartmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDepartmentRequest) GetIds ¶
func (x *DeleteDepartmentRequest) GetIds() []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 DepartmentClient ¶
type DepartmentClient interface { // ListDepartment 获取部门信息列表 ListDepartment(ctx context.Context, in *ListDepartmentRequest, opts ...grpc.CallOption) (*ListDepartmentReply, error) // CreateDepartment 创建部门信息 CreateDepartment(ctx context.Context, in *CreateDepartmentRequest, opts ...grpc.CallOption) (*CreateDepartmentReply, error) // UpdateDepartment 更新部门信息 UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...grpc.CallOption) (*UpdateDepartmentReply, error) // DeleteDepartment 删除部门信息 DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...grpc.CallOption) (*DeleteDepartmentReply, error) // GetDepartment 获取指定的部门信息 GetDepartment(ctx context.Context, in *GetDepartmentRequest, opts ...grpc.CallOption) (*GetDepartmentReply, error) }
DepartmentClient is the client API for Department 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 NewDepartmentClient ¶
func NewDepartmentClient(cc grpc.ClientConnInterface) DepartmentClient
type DepartmentHTTPClient ¶
type DepartmentHTTPClient interface { CreateDepartment(ctx context.Context, req *CreateDepartmentRequest, opts ...http.CallOption) (rsp *CreateDepartmentReply, err error) DeleteDepartment(ctx context.Context, req *DeleteDepartmentRequest, opts ...http.CallOption) (rsp *DeleteDepartmentReply, err error) GetDepartment(ctx context.Context, req *GetDepartmentRequest, opts ...http.CallOption) (rsp *GetDepartmentReply, err error) ListDepartment(ctx context.Context, req *ListDepartmentRequest, opts ...http.CallOption) (rsp *ListDepartmentReply, err error) UpdateDepartment(ctx context.Context, req *UpdateDepartmentRequest, opts ...http.CallOption) (rsp *UpdateDepartmentReply, err error) }
func NewDepartmentHTTPClient ¶
func NewDepartmentHTTPClient(client *http.Client) DepartmentHTTPClient
type DepartmentHTTPClientImpl ¶
type DepartmentHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*DepartmentHTTPClientImpl) CreateDepartment ¶
func (c *DepartmentHTTPClientImpl) CreateDepartment(ctx context.Context, in *CreateDepartmentRequest, opts ...http.CallOption) (*CreateDepartmentReply, error)
func (*DepartmentHTTPClientImpl) DeleteDepartment ¶
func (c *DepartmentHTTPClientImpl) DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...http.CallOption) (*DeleteDepartmentReply, error)
func (*DepartmentHTTPClientImpl) GetDepartment ¶
func (c *DepartmentHTTPClientImpl) GetDepartment(ctx context.Context, in *GetDepartmentRequest, opts ...http.CallOption) (*GetDepartmentReply, error)
func (*DepartmentHTTPClientImpl) ListDepartment ¶
func (c *DepartmentHTTPClientImpl) ListDepartment(ctx context.Context, in *ListDepartmentRequest, opts ...http.CallOption) (*ListDepartmentReply, error)
func (*DepartmentHTTPClientImpl) UpdateDepartment ¶
func (c *DepartmentHTTPClientImpl) UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...http.CallOption) (*UpdateDepartmentReply, error)
type DepartmentHTTPServer ¶
type DepartmentHTTPServer interface { // CreateDepartment CreateDepartment 创建部门信息 CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error) // DeleteDepartment DeleteDepartment 删除部门信息 DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error) // GetDepartment GetDepartment 获取指定的部门信息 GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error) // ListDepartment ListDepartment 获取部门信息列表 ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error) // UpdateDepartment UpdateDepartment 更新部门信息 UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error) }
type DepartmentServer ¶
type DepartmentServer interface { // ListDepartment 获取部门信息列表 ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error) // CreateDepartment 创建部门信息 CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error) // UpdateDepartment 更新部门信息 UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error) // DeleteDepartment 删除部门信息 DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error) // GetDepartment 获取指定的部门信息 GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error) // contains filtered or unexported methods }
DepartmentServer is the server API for Department service. All implementations must embed UnimplementedDepartmentServer for forward compatibility
type GetDepartmentReply ¶
type GetDepartmentReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetDepartmentReply) Descriptor
deprecated
func (*GetDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDepartmentReply.ProtoReflect.Descriptor instead.
func (*GetDepartmentReply) GetCreatedAt ¶
func (x *GetDepartmentReply) GetCreatedAt() uint32
func (*GetDepartmentReply) GetDescription ¶
func (x *GetDepartmentReply) GetDescription() string
func (*GetDepartmentReply) GetId ¶
func (x *GetDepartmentReply) GetId() uint32
func (*GetDepartmentReply) GetKeyword ¶
func (x *GetDepartmentReply) GetKeyword() string
func (*GetDepartmentReply) GetName ¶
func (x *GetDepartmentReply) GetName() string
func (*GetDepartmentReply) GetParentId ¶
func (x *GetDepartmentReply) GetParentId() uint32
func (*GetDepartmentReply) GetUpdatedAt ¶
func (x *GetDepartmentReply) GetUpdatedAt() uint32
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,oneof" json:"id,omitempty"` Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,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) GetKeyword ¶
func (x *GetDepartmentRequest) GetKeyword() string
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 ListDepartmentReply ¶
type ListDepartmentReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListDepartmentReply_Department `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListDepartmentReply) Descriptor
deprecated
func (*ListDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use ListDepartmentReply.ProtoReflect.Descriptor instead.
func (*ListDepartmentReply) GetList ¶
func (x *ListDepartmentReply) GetList() []*ListDepartmentReply_Department
func (*ListDepartmentReply) GetTotal ¶
func (x *ListDepartmentReply) GetTotal() uint32
func (*ListDepartmentReply) ProtoMessage ¶
func (*ListDepartmentReply) ProtoMessage()
func (*ListDepartmentReply) ProtoReflect ¶
func (x *ListDepartmentReply) ProtoReflect() protoreflect.Message
func (*ListDepartmentReply) Reset ¶
func (x *ListDepartmentReply) Reset()
func (*ListDepartmentReply) String ¶
func (x *ListDepartmentReply) String() string
func (*ListDepartmentReply) Validate ¶
func (m *ListDepartmentReply) Validate() error
Validate checks the field values on ListDepartmentReply 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 (*ListDepartmentReply) ValidateAll ¶
func (m *ListDepartmentReply) ValidateAll() error
ValidateAll checks the field values on ListDepartmentReply 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 ListDepartmentReplyMultiError, or nil if none found.
type ListDepartmentReplyMultiError ¶
type ListDepartmentReplyMultiError []error
ListDepartmentReplyMultiError is an error wrapping multiple validation errors returned by ListDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (ListDepartmentReplyMultiError) AllErrors ¶
func (m ListDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDepartmentReplyMultiError) Error ¶
func (m ListDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDepartmentReplyValidationError ¶
type ListDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
ListDepartmentReplyValidationError is the validation error returned by ListDepartmentReply.Validate if the designated constraints aren't met.
func (ListDepartmentReplyValidationError) Cause ¶
func (e ListDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (ListDepartmentReplyValidationError) Error ¶
func (e ListDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListDepartmentReplyValidationError) ErrorName ¶
func (e ListDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListDepartmentReplyValidationError) Field ¶
func (e ListDepartmentReplyValidationError) Field() string
Field function returns field value.
func (ListDepartmentReplyValidationError) Key ¶
func (e ListDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (ListDepartmentReplyValidationError) Reason ¶
func (e ListDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type ListDepartmentReply_Department ¶
type ListDepartmentReply_Department struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Children []*ListDepartmentReply_Department `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ListDepartmentReply_Department) Descriptor
deprecated
func (*ListDepartmentReply_Department) Descriptor() ([]byte, []int)
Deprecated: Use ListDepartmentReply_Department.ProtoReflect.Descriptor instead.
func (*ListDepartmentReply_Department) GetChildren ¶
func (x *ListDepartmentReply_Department) GetChildren() []*ListDepartmentReply_Department
func (*ListDepartmentReply_Department) GetCreatedAt ¶
func (x *ListDepartmentReply_Department) GetCreatedAt() uint32
func (*ListDepartmentReply_Department) GetDescription ¶
func (x *ListDepartmentReply_Department) GetDescription() string
func (*ListDepartmentReply_Department) GetId ¶
func (x *ListDepartmentReply_Department) GetId() uint32
func (*ListDepartmentReply_Department) GetKeyword ¶
func (x *ListDepartmentReply_Department) GetKeyword() string
func (*ListDepartmentReply_Department) GetName ¶
func (x *ListDepartmentReply_Department) GetName() string
func (*ListDepartmentReply_Department) GetParentId ¶
func (x *ListDepartmentReply_Department) GetParentId() uint32
func (*ListDepartmentReply_Department) GetUpdatedAt ¶
func (x *ListDepartmentReply_Department) GetUpdatedAt() uint32
func (*ListDepartmentReply_Department) ProtoMessage ¶
func (*ListDepartmentReply_Department) ProtoMessage()
func (*ListDepartmentReply_Department) ProtoReflect ¶
func (x *ListDepartmentReply_Department) ProtoReflect() protoreflect.Message
func (*ListDepartmentReply_Department) Reset ¶
func (x *ListDepartmentReply_Department) Reset()
func (*ListDepartmentReply_Department) String ¶
func (x *ListDepartmentReply_Department) String() string
func (*ListDepartmentReply_Department) Validate ¶
func (m *ListDepartmentReply_Department) Validate() error
Validate checks the field values on ListDepartmentReply_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 (*ListDepartmentReply_Department) ValidateAll ¶
func (m *ListDepartmentReply_Department) ValidateAll() error
ValidateAll checks the field values on ListDepartmentReply_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 ListDepartmentReply_DepartmentMultiError, or nil if none found.
type ListDepartmentReply_DepartmentMultiError ¶
type ListDepartmentReply_DepartmentMultiError []error
ListDepartmentReply_DepartmentMultiError is an error wrapping multiple validation errors returned by ListDepartmentReply_Department.ValidateAll() if the designated constraints aren't met.
func (ListDepartmentReply_DepartmentMultiError) AllErrors ¶
func (m ListDepartmentReply_DepartmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDepartmentReply_DepartmentMultiError) Error ¶
func (m ListDepartmentReply_DepartmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDepartmentReply_DepartmentValidationError ¶
type ListDepartmentReply_DepartmentValidationError struct {
// contains filtered or unexported fields
}
ListDepartmentReply_DepartmentValidationError is the validation error returned by ListDepartmentReply_Department.Validate if the designated constraints aren't met.
func (ListDepartmentReply_DepartmentValidationError) Cause ¶
func (e ListDepartmentReply_DepartmentValidationError) Cause() error
Cause function returns cause value.
func (ListDepartmentReply_DepartmentValidationError) Error ¶
func (e ListDepartmentReply_DepartmentValidationError) Error() string
Error satisfies the builtin error interface
func (ListDepartmentReply_DepartmentValidationError) ErrorName ¶
func (e ListDepartmentReply_DepartmentValidationError) ErrorName() string
ErrorName returns error name.
func (ListDepartmentReply_DepartmentValidationError) Field ¶
func (e ListDepartmentReply_DepartmentValidationError) Field() string
Field function returns field value.
func (ListDepartmentReply_DepartmentValidationError) Key ¶
func (e ListDepartmentReply_DepartmentValidationError) Key() bool
Key function returns key value.
func (ListDepartmentReply_DepartmentValidationError) Reason ¶
func (e ListDepartmentReply_DepartmentValidationError) Reason() string
Reason function returns reason value.
type ListDepartmentRequest ¶
type ListDepartmentRequest struct { Order *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*ListDepartmentRequest) Descriptor
deprecated
func (*ListDepartmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDepartmentRequest.ProtoReflect.Descriptor instead.
func (*ListDepartmentRequest) GetKeyword ¶
func (x *ListDepartmentRequest) GetKeyword() string
func (*ListDepartmentRequest) GetName ¶
func (x *ListDepartmentRequest) GetName() string
func (*ListDepartmentRequest) GetOrder ¶
func (x *ListDepartmentRequest) GetOrder() string
func (*ListDepartmentRequest) GetOrderBy ¶
func (x *ListDepartmentRequest) GetOrderBy() string
func (*ListDepartmentRequest) ProtoMessage ¶
func (*ListDepartmentRequest) ProtoMessage()
func (*ListDepartmentRequest) ProtoReflect ¶
func (x *ListDepartmentRequest) ProtoReflect() protoreflect.Message
func (*ListDepartmentRequest) Reset ¶
func (x *ListDepartmentRequest) Reset()
func (*ListDepartmentRequest) String ¶
func (x *ListDepartmentRequest) String() string
func (*ListDepartmentRequest) Validate ¶
func (m *ListDepartmentRequest) Validate() error
Validate checks the field values on ListDepartmentRequest 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 (*ListDepartmentRequest) ValidateAll ¶
func (m *ListDepartmentRequest) ValidateAll() error
ValidateAll checks the field values on ListDepartmentRequest 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 ListDepartmentRequestMultiError, or nil if none found.
type ListDepartmentRequestMultiError ¶
type ListDepartmentRequestMultiError []error
ListDepartmentRequestMultiError is an error wrapping multiple validation errors returned by ListDepartmentRequest.ValidateAll() if the designated constraints aren't met.
func (ListDepartmentRequestMultiError) AllErrors ¶
func (m ListDepartmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDepartmentRequestMultiError) Error ¶
func (m ListDepartmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDepartmentRequestValidationError ¶
type ListDepartmentRequestValidationError struct {
// contains filtered or unexported fields
}
ListDepartmentRequestValidationError is the validation error returned by ListDepartmentRequest.Validate if the designated constraints aren't met.
func (ListDepartmentRequestValidationError) Cause ¶
func (e ListDepartmentRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDepartmentRequestValidationError) Error ¶
func (e ListDepartmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDepartmentRequestValidationError) ErrorName ¶
func (e ListDepartmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDepartmentRequestValidationError) Field ¶
func (e ListDepartmentRequestValidationError) Field() string
Field function returns field value.
func (ListDepartmentRequestValidationError) Key ¶
func (e ListDepartmentRequestValidationError) Key() bool
Key function returns key value.
func (ListDepartmentRequestValidationError) Reason ¶
func (e ListDepartmentRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedDepartmentServer ¶
type UnimplementedDepartmentServer struct { }
UnimplementedDepartmentServer must be embedded to have forward compatible implementations.
func (UnimplementedDepartmentServer) CreateDepartment ¶
func (UnimplementedDepartmentServer) CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error)
func (UnimplementedDepartmentServer) DeleteDepartment ¶
func (UnimplementedDepartmentServer) DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error)
func (UnimplementedDepartmentServer) GetDepartment ¶
func (UnimplementedDepartmentServer) GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error)
func (UnimplementedDepartmentServer) ListDepartment ¶
func (UnimplementedDepartmentServer) ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error)
func (UnimplementedDepartmentServer) UpdateDepartment ¶
func (UnimplementedDepartmentServer) UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error)
type UnsafeDepartmentServer ¶
type UnsafeDepartmentServer interface {
// contains filtered or unexported methods
}
UnsafeDepartmentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DepartmentServer will result in compilation errors.
type UpdateDepartmentReply ¶
type UpdateDepartmentReply struct {
// contains filtered or unexported fields
}
func (*UpdateDepartmentReply) Descriptor
deprecated
func (*UpdateDepartmentReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDepartmentReply.ProtoReflect.Descriptor instead.
func (*UpdateDepartmentReply) ProtoMessage ¶
func (*UpdateDepartmentReply) ProtoMessage()
func (*UpdateDepartmentReply) ProtoReflect ¶
func (x *UpdateDepartmentReply) ProtoReflect() protoreflect.Message
func (*UpdateDepartmentReply) Reset ¶
func (x *UpdateDepartmentReply) Reset()
func (*UpdateDepartmentReply) String ¶
func (x *UpdateDepartmentReply) String() string
func (*UpdateDepartmentReply) Validate ¶
func (m *UpdateDepartmentReply) Validate() error
Validate checks the field values on UpdateDepartmentReply 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 (*UpdateDepartmentReply) ValidateAll ¶
func (m *UpdateDepartmentReply) ValidateAll() error
ValidateAll checks the field values on UpdateDepartmentReply 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 UpdateDepartmentReplyMultiError, or nil if none found.
type UpdateDepartmentReplyMultiError ¶
type UpdateDepartmentReplyMultiError []error
UpdateDepartmentReplyMultiError is an error wrapping multiple validation errors returned by UpdateDepartmentReply.ValidateAll() if the designated constraints aren't met.
func (UpdateDepartmentReplyMultiError) AllErrors ¶
func (m UpdateDepartmentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDepartmentReplyMultiError) Error ¶
func (m UpdateDepartmentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDepartmentReplyValidationError ¶
type UpdateDepartmentReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateDepartmentReplyValidationError is the validation error returned by UpdateDepartmentReply.Validate if the designated constraints aren't met.
func (UpdateDepartmentReplyValidationError) Cause ¶
func (e UpdateDepartmentReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateDepartmentReplyValidationError) Error ¶
func (e UpdateDepartmentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDepartmentReplyValidationError) ErrorName ¶
func (e UpdateDepartmentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDepartmentReplyValidationError) Field ¶
func (e UpdateDepartmentReplyValidationError) Field() string
Field function returns field value.
func (UpdateDepartmentReplyValidationError) Key ¶
func (e UpdateDepartmentReplyValidationError) Key() bool
Key function returns key value.
func (UpdateDepartmentReplyValidationError) Reason ¶
func (e UpdateDepartmentReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateDepartmentRequest ¶
type UpdateDepartmentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" 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.