Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserDeptHTTPServer(s *http.Server, srv UserDeptHTTPServer)
- func RegisterUserDeptServer(s grpc.ServiceRegistrar, srv UserDeptServer)
- type CreateUserDeptReply
- func (*CreateUserDeptReply) Descriptor() ([]byte, []int)deprecated
- func (*CreateUserDeptReply) ProtoMessage()
- func (x *CreateUserDeptReply) ProtoReflect() protoreflect.Message
- func (x *CreateUserDeptReply) Reset()
- func (x *CreateUserDeptReply) String() string
- func (m *CreateUserDeptReply) Validate() error
- func (m *CreateUserDeptReply) ValidateAll() error
- type CreateUserDeptReplyMultiError
- type CreateUserDeptReplyValidationError
- func (e CreateUserDeptReplyValidationError) Cause() error
- func (e CreateUserDeptReplyValidationError) Error() string
- func (e CreateUserDeptReplyValidationError) ErrorName() string
- func (e CreateUserDeptReplyValidationError) Field() string
- func (e CreateUserDeptReplyValidationError) Key() bool
- func (e CreateUserDeptReplyValidationError) Reason() string
- type CreateUserDeptRequest
- func (*CreateUserDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserDeptRequest) GetDeptId() uint32
- func (x *CreateUserDeptRequest) GetJobId() uint32
- func (x *CreateUserDeptRequest) GetMain() bool
- func (x *CreateUserDeptRequest) GetUserId() uint32
- func (*CreateUserDeptRequest) ProtoMessage()
- func (x *CreateUserDeptRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserDeptRequest) Reset()
- func (x *CreateUserDeptRequest) String() string
- func (m *CreateUserDeptRequest) Validate() error
- func (m *CreateUserDeptRequest) ValidateAll() error
- type CreateUserDeptRequestMultiError
- type CreateUserDeptRequestValidationError
- func (e CreateUserDeptRequestValidationError) Cause() error
- func (e CreateUserDeptRequestValidationError) Error() string
- func (e CreateUserDeptRequestValidationError) ErrorName() string
- func (e CreateUserDeptRequestValidationError) Field() string
- func (e CreateUserDeptRequestValidationError) Key() bool
- func (e CreateUserDeptRequestValidationError) Reason() string
- type DeleteUserDeptReply
- func (*DeleteUserDeptReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserDeptReply) ProtoMessage()
- func (x *DeleteUserDeptReply) ProtoReflect() protoreflect.Message
- func (x *DeleteUserDeptReply) Reset()
- func (x *DeleteUserDeptReply) String() string
- func (m *DeleteUserDeptReply) Validate() error
- func (m *DeleteUserDeptReply) ValidateAll() error
- type DeleteUserDeptReplyMultiError
- type DeleteUserDeptReplyValidationError
- func (e DeleteUserDeptReplyValidationError) Cause() error
- func (e DeleteUserDeptReplyValidationError) Error() string
- func (e DeleteUserDeptReplyValidationError) ErrorName() string
- func (e DeleteUserDeptReplyValidationError) Field() string
- func (e DeleteUserDeptReplyValidationError) Key() bool
- func (e DeleteUserDeptReplyValidationError) Reason() string
- type DeleteUserDeptRequest
- func (*DeleteUserDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserDeptRequest) GetId() uint32
- func (*DeleteUserDeptRequest) ProtoMessage()
- func (x *DeleteUserDeptRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserDeptRequest) Reset()
- func (x *DeleteUserDeptRequest) String() string
- func (m *DeleteUserDeptRequest) Validate() error
- func (m *DeleteUserDeptRequest) ValidateAll() error
- type DeleteUserDeptRequestMultiError
- type DeleteUserDeptRequestValidationError
- func (e DeleteUserDeptRequestValidationError) Cause() error
- func (e DeleteUserDeptRequestValidationError) Error() string
- func (e DeleteUserDeptRequestValidationError) ErrorName() string
- func (e DeleteUserDeptRequestValidationError) Field() string
- func (e DeleteUserDeptRequestValidationError) Key() bool
- func (e DeleteUserDeptRequestValidationError) Reason() string
- type ListUserDeptReply
- func (*ListUserDeptReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserDeptReply) GetList() []*ListUserDeptReply_UserDept
- func (x *ListUserDeptReply) GetTotal() uint32
- func (*ListUserDeptReply) ProtoMessage()
- func (x *ListUserDeptReply) ProtoReflect() protoreflect.Message
- func (x *ListUserDeptReply) Reset()
- func (x *ListUserDeptReply) String() string
- func (m *ListUserDeptReply) Validate() error
- func (m *ListUserDeptReply) ValidateAll() error
- type ListUserDeptReplyMultiError
- type ListUserDeptReplyValidationError
- func (e ListUserDeptReplyValidationError) Cause() error
- func (e ListUserDeptReplyValidationError) Error() string
- func (e ListUserDeptReplyValidationError) ErrorName() string
- func (e ListUserDeptReplyValidationError) Field() string
- func (e ListUserDeptReplyValidationError) Key() bool
- func (e ListUserDeptReplyValidationError) Reason() string
- type ListUserDeptReply_Dept
- func (*ListUserDeptReply_Dept) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserDeptReply_Dept) GetId() uint32
- func (x *ListUserDeptReply_Dept) GetLogo() string
- func (x *ListUserDeptReply_Dept) GetName() string
- func (*ListUserDeptReply_Dept) ProtoMessage()
- func (x *ListUserDeptReply_Dept) ProtoReflect() protoreflect.Message
- func (x *ListUserDeptReply_Dept) Reset()
- func (x *ListUserDeptReply_Dept) String() string
- func (m *ListUserDeptReply_Dept) Validate() error
- func (m *ListUserDeptReply_Dept) ValidateAll() error
- type ListUserDeptReply_DeptMultiError
- type ListUserDeptReply_DeptValidationError
- func (e ListUserDeptReply_DeptValidationError) Cause() error
- func (e ListUserDeptReply_DeptValidationError) Error() string
- func (e ListUserDeptReply_DeptValidationError) ErrorName() string
- func (e ListUserDeptReply_DeptValidationError) Field() string
- func (e ListUserDeptReply_DeptValidationError) Key() bool
- func (e ListUserDeptReply_DeptValidationError) Reason() string
- type ListUserDeptReply_Job
- func (*ListUserDeptReply_Job) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserDeptReply_Job) GetId() uint32
- func (x *ListUserDeptReply_Job) GetName() string
- func (*ListUserDeptReply_Job) ProtoMessage()
- func (x *ListUserDeptReply_Job) ProtoReflect() protoreflect.Message
- func (x *ListUserDeptReply_Job) Reset()
- func (x *ListUserDeptReply_Job) String() string
- func (m *ListUserDeptReply_Job) Validate() error
- func (m *ListUserDeptReply_Job) ValidateAll() error
- type ListUserDeptReply_JobMultiError
- type ListUserDeptReply_JobValidationError
- func (e ListUserDeptReply_JobValidationError) Cause() error
- func (e ListUserDeptReply_JobValidationError) Error() string
- func (e ListUserDeptReply_JobValidationError) ErrorName() string
- func (e ListUserDeptReply_JobValidationError) Field() string
- func (e ListUserDeptReply_JobValidationError) Key() bool
- func (e ListUserDeptReply_JobValidationError) Reason() string
- type ListUserDeptReply_UserDept
- func (*ListUserDeptReply_UserDept) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserDeptReply_UserDept) GetCreatedAt() uint32
- func (x *ListUserDeptReply_UserDept) GetDept() *ListUserDeptReply_Dept
- func (x *ListUserDeptReply_UserDept) GetDeptId() uint32
- func (x *ListUserDeptReply_UserDept) GetId() uint32
- func (x *ListUserDeptReply_UserDept) GetJob() *ListUserDeptReply_Job
- func (x *ListUserDeptReply_UserDept) GetJobId() uint32
- func (x *ListUserDeptReply_UserDept) GetMain() bool
- func (x *ListUserDeptReply_UserDept) GetUpdatedAt() uint32
- func (x *ListUserDeptReply_UserDept) GetUserId() uint32
- func (*ListUserDeptReply_UserDept) ProtoMessage()
- func (x *ListUserDeptReply_UserDept) ProtoReflect() protoreflect.Message
- func (x *ListUserDeptReply_UserDept) Reset()
- func (x *ListUserDeptReply_UserDept) String() string
- func (m *ListUserDeptReply_UserDept) Validate() error
- func (m *ListUserDeptReply_UserDept) ValidateAll() error
- type ListUserDeptReply_UserDeptMultiError
- type ListUserDeptReply_UserDeptValidationError
- func (e ListUserDeptReply_UserDeptValidationError) Cause() error
- func (e ListUserDeptReply_UserDeptValidationError) Error() string
- func (e ListUserDeptReply_UserDeptValidationError) ErrorName() string
- func (e ListUserDeptReply_UserDeptValidationError) Field() string
- func (e ListUserDeptReply_UserDeptValidationError) Key() bool
- func (e ListUserDeptReply_UserDeptValidationError) Reason() string
- type ListUserDeptRequest
- func (*ListUserDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserDeptRequest) GetDept() string
- func (x *ListUserDeptRequest) GetJob() string
- func (x *ListUserDeptRequest) GetPage() uint32
- func (x *ListUserDeptRequest) GetPageSize() uint32
- func (x *ListUserDeptRequest) GetUserId() uint32
- func (*ListUserDeptRequest) ProtoMessage()
- func (x *ListUserDeptRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserDeptRequest) Reset()
- func (x *ListUserDeptRequest) String() string
- func (m *ListUserDeptRequest) Validate() error
- func (m *ListUserDeptRequest) ValidateAll() error
- type ListUserDeptRequestMultiError
- type ListUserDeptRequestValidationError
- func (e ListUserDeptRequestValidationError) Cause() error
- func (e ListUserDeptRequestValidationError) Error() string
- func (e ListUserDeptRequestValidationError) ErrorName() string
- func (e ListUserDeptRequestValidationError) Field() string
- func (e ListUserDeptRequestValidationError) Key() bool
- func (e ListUserDeptRequestValidationError) Reason() string
- type UnimplementedUserDeptServer
- func (UnimplementedUserDeptServer) CreateUserDept(context.Context, *CreateUserDeptRequest) (*CreateUserDeptReply, error)
- func (UnimplementedUserDeptServer) DeleteUserDept(context.Context, *DeleteUserDeptRequest) (*DeleteUserDeptReply, error)
- func (UnimplementedUserDeptServer) ListUserDept(context.Context, *ListUserDeptRequest) (*ListUserDeptReply, error)
- func (UnimplementedUserDeptServer) UpdateUserDept(context.Context, *UpdateUserDeptRequest) (*UpdateUserDeptReply, error)
- type UnsafeUserDeptServer
- type UpdateUserDeptReply
- func (*UpdateUserDeptReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserDeptReply) ProtoMessage()
- func (x *UpdateUserDeptReply) ProtoReflect() protoreflect.Message
- func (x *UpdateUserDeptReply) Reset()
- func (x *UpdateUserDeptReply) String() string
- func (m *UpdateUserDeptReply) Validate() error
- func (m *UpdateUserDeptReply) ValidateAll() error
- type UpdateUserDeptReplyMultiError
- type UpdateUserDeptReplyValidationError
- func (e UpdateUserDeptReplyValidationError) Cause() error
- func (e UpdateUserDeptReplyValidationError) Error() string
- func (e UpdateUserDeptReplyValidationError) ErrorName() string
- func (e UpdateUserDeptReplyValidationError) Field() string
- func (e UpdateUserDeptReplyValidationError) Key() bool
- func (e UpdateUserDeptReplyValidationError) Reason() string
- type UpdateUserDeptRequest
- func (*UpdateUserDeptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserDeptRequest) GetDeptId() uint32
- func (x *UpdateUserDeptRequest) GetId() uint32
- func (x *UpdateUserDeptRequest) GetJobId() uint32
- func (x *UpdateUserDeptRequest) GetMain() bool
- func (x *UpdateUserDeptRequest) GetUserId() uint32
- func (*UpdateUserDeptRequest) ProtoMessage()
- func (x *UpdateUserDeptRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserDeptRequest) Reset()
- func (x *UpdateUserDeptRequest) String() string
- func (m *UpdateUserDeptRequest) Validate() error
- func (m *UpdateUserDeptRequest) ValidateAll() error
- type UpdateUserDeptRequestMultiError
- type UpdateUserDeptRequestValidationError
- func (e UpdateUserDeptRequestValidationError) Cause() error
- func (e UpdateUserDeptRequestValidationError) Error() string
- func (e UpdateUserDeptRequestValidationError) ErrorName() string
- func (e UpdateUserDeptRequestValidationError) Field() string
- func (e UpdateUserDeptRequestValidationError) Key() bool
- func (e UpdateUserDeptRequestValidationError) Reason() string
- type UserDeptClient
- type UserDeptHTTPClient
- type UserDeptHTTPClientImpl
- func (c *UserDeptHTTPClientImpl) CreateUserDept(ctx context.Context, in *CreateUserDeptRequest, opts ...http.CallOption) (*CreateUserDeptReply, error)
- func (c *UserDeptHTTPClientImpl) DeleteUserDept(ctx context.Context, in *DeleteUserDeptRequest, opts ...http.CallOption) (*DeleteUserDeptReply, error)
- func (c *UserDeptHTTPClientImpl) ListUserDept(ctx context.Context, in *ListUserDeptRequest, opts ...http.CallOption) (*ListUserDeptReply, error)
- func (c *UserDeptHTTPClientImpl) UpdateUserDept(ctx context.Context, in *UpdateUserDeptRequest, opts ...http.CallOption) (*UpdateUserDeptReply, error)
- type UserDeptHTTPServer
- type UserDeptServer
Constants ¶
const ( UserDept_ListUserDept_FullMethodName = "/manager.api.userdept.UserDept/ListUserDept" UserDept_CreateUserDept_FullMethodName = "/manager.api.userdept.UserDept/CreateUserDept" UserDept_UpdateUserDept_FullMethodName = "/manager.api.userdept.UserDept/UpdateUserDept" UserDept_DeleteUserDept_FullMethodName = "/manager.api.userdept.UserDept/DeleteUserDept" )
const ( OperationUserDeptCreateUserDept = "/manager.api.userdept.UserDept/CreateUserDept" OperationUserDeptDeleteUserDept = "/manager.api.userdept.UserDept/DeleteUserDept" OperationUserDeptListUserDept = "/manager.api.userdept.UserDept/ListUserDept" OperationUserDeptUpdateUserDept = "/manager.api.userdept.UserDept/UpdateUserDept" )
Variables ¶
var File_api_userdept_proto_userdept_proto protoreflect.FileDescriptor
var File_api_userdept_proto_userdept_service_proto protoreflect.FileDescriptor
var UserDept_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.userdept.UserDept", HandlerType: (*UserDeptServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListUserDept", Handler: _UserDept_ListUserDept_Handler, }, { MethodName: "CreateUserDept", Handler: _UserDept_CreateUserDept_Handler, }, { MethodName: "UpdateUserDept", Handler: _UserDept_UpdateUserDept_Handler, }, { MethodName: "DeleteUserDept", Handler: _UserDept_DeleteUserDept_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/userdept/proto/userdept_service.proto", }
UserDept_ServiceDesc is the grpc.ServiceDesc for UserDept service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserDeptHTTPServer ¶
func RegisterUserDeptHTTPServer(s *http.Server, srv UserDeptHTTPServer)
func RegisterUserDeptServer ¶
func RegisterUserDeptServer(s grpc.ServiceRegistrar, srv UserDeptServer)
Types ¶
type CreateUserDeptReply ¶
type CreateUserDeptReply struct {
// contains filtered or unexported fields
}
func (*CreateUserDeptReply) Descriptor
deprecated
func (*CreateUserDeptReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserDeptReply.ProtoReflect.Descriptor instead.
func (*CreateUserDeptReply) ProtoMessage ¶
func (*CreateUserDeptReply) ProtoMessage()
func (*CreateUserDeptReply) ProtoReflect ¶
func (x *CreateUserDeptReply) ProtoReflect() protoreflect.Message
func (*CreateUserDeptReply) Reset ¶
func (x *CreateUserDeptReply) Reset()
func (*CreateUserDeptReply) String ¶
func (x *CreateUserDeptReply) String() string
func (*CreateUserDeptReply) Validate ¶
func (m *CreateUserDeptReply) Validate() error
Validate checks the field values on CreateUserDeptReply 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 (*CreateUserDeptReply) ValidateAll ¶
func (m *CreateUserDeptReply) ValidateAll() error
ValidateAll checks the field values on CreateUserDeptReply 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 CreateUserDeptReplyMultiError, or nil if none found.
type CreateUserDeptReplyMultiError ¶
type CreateUserDeptReplyMultiError []error
CreateUserDeptReplyMultiError is an error wrapping multiple validation errors returned by CreateUserDeptReply.ValidateAll() if the designated constraints aren't met.
func (CreateUserDeptReplyMultiError) AllErrors ¶
func (m CreateUserDeptReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserDeptReplyMultiError) Error ¶
func (m CreateUserDeptReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserDeptReplyValidationError ¶
type CreateUserDeptReplyValidationError struct {
// contains filtered or unexported fields
}
CreateUserDeptReplyValidationError is the validation error returned by CreateUserDeptReply.Validate if the designated constraints aren't met.
func (CreateUserDeptReplyValidationError) Cause ¶
func (e CreateUserDeptReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateUserDeptReplyValidationError) Error ¶
func (e CreateUserDeptReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserDeptReplyValidationError) ErrorName ¶
func (e CreateUserDeptReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserDeptReplyValidationError) Field ¶
func (e CreateUserDeptReplyValidationError) Field() string
Field function returns field value.
func (CreateUserDeptReplyValidationError) Key ¶
func (e CreateUserDeptReplyValidationError) Key() bool
Key function returns key value.
func (CreateUserDeptReplyValidationError) Reason ¶
func (e CreateUserDeptReplyValidationError) Reason() string
Reason function returns reason value.
type CreateUserDeptRequest ¶
type CreateUserDeptRequest struct {
UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
DeptId uint32 `protobuf:"varint,2,opt,name=deptId,proto3" json:"deptId,omitempty"`
JobId uint32 `protobuf:"varint,3,opt,name=jobId,proto3" json:"jobId,omitempty"`
Main bool `protobuf:"varint,4,opt,name=main,proto3" json:"main,omitempty"`
// contains filtered or unexported fields
}
func (*CreateUserDeptRequest) Descriptor
deprecated
func (*CreateUserDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserDeptRequest.ProtoReflect.Descriptor instead.
func (*CreateUserDeptRequest) GetDeptId ¶
func (x *CreateUserDeptRequest) GetDeptId() uint32
func (*CreateUserDeptRequest) GetJobId ¶
func (x *CreateUserDeptRequest) GetJobId() uint32
func (*CreateUserDeptRequest) GetMain ¶
func (x *CreateUserDeptRequest) GetMain() bool
func (*CreateUserDeptRequest) GetUserId ¶
func (x *CreateUserDeptRequest) GetUserId() uint32
func (*CreateUserDeptRequest) ProtoMessage ¶
func (*CreateUserDeptRequest) ProtoMessage()
func (*CreateUserDeptRequest) ProtoReflect ¶
func (x *CreateUserDeptRequest) ProtoReflect() protoreflect.Message
func (*CreateUserDeptRequest) Reset ¶
func (x *CreateUserDeptRequest) Reset()
func (*CreateUserDeptRequest) String ¶
func (x *CreateUserDeptRequest) String() string
func (*CreateUserDeptRequest) Validate ¶
func (m *CreateUserDeptRequest) Validate() error
Validate checks the field values on CreateUserDeptRequest 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 (*CreateUserDeptRequest) ValidateAll ¶
func (m *CreateUserDeptRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserDeptRequest 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 CreateUserDeptRequestMultiError, or nil if none found.
type CreateUserDeptRequestMultiError ¶
type CreateUserDeptRequestMultiError []error
CreateUserDeptRequestMultiError is an error wrapping multiple validation errors returned by CreateUserDeptRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserDeptRequestMultiError) AllErrors ¶
func (m CreateUserDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserDeptRequestMultiError) Error ¶
func (m CreateUserDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserDeptRequestValidationError ¶
type CreateUserDeptRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserDeptRequestValidationError is the validation error returned by CreateUserDeptRequest.Validate if the designated constraints aren't met.
func (CreateUserDeptRequestValidationError) Cause ¶
func (e CreateUserDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserDeptRequestValidationError) Error ¶
func (e CreateUserDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserDeptRequestValidationError) ErrorName ¶
func (e CreateUserDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserDeptRequestValidationError) Field ¶
func (e CreateUserDeptRequestValidationError) Field() string
Field function returns field value.
func (CreateUserDeptRequestValidationError) Key ¶
func (e CreateUserDeptRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserDeptRequestValidationError) Reason ¶
func (e CreateUserDeptRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserDeptReply ¶
type DeleteUserDeptReply struct {
// contains filtered or unexported fields
}
func (*DeleteUserDeptReply) Descriptor
deprecated
func (*DeleteUserDeptReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserDeptReply.ProtoReflect.Descriptor instead.
func (*DeleteUserDeptReply) ProtoMessage ¶
func (*DeleteUserDeptReply) ProtoMessage()
func (*DeleteUserDeptReply) ProtoReflect ¶
func (x *DeleteUserDeptReply) ProtoReflect() protoreflect.Message
func (*DeleteUserDeptReply) Reset ¶
func (x *DeleteUserDeptReply) Reset()
func (*DeleteUserDeptReply) String ¶
func (x *DeleteUserDeptReply) String() string
func (*DeleteUserDeptReply) Validate ¶
func (m *DeleteUserDeptReply) Validate() error
Validate checks the field values on DeleteUserDeptReply 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 (*DeleteUserDeptReply) ValidateAll ¶
func (m *DeleteUserDeptReply) ValidateAll() error
ValidateAll checks the field values on DeleteUserDeptReply 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 DeleteUserDeptReplyMultiError, or nil if none found.
type DeleteUserDeptReplyMultiError ¶
type DeleteUserDeptReplyMultiError []error
DeleteUserDeptReplyMultiError is an error wrapping multiple validation errors returned by DeleteUserDeptReply.ValidateAll() if the designated constraints aren't met.
func (DeleteUserDeptReplyMultiError) AllErrors ¶
func (m DeleteUserDeptReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserDeptReplyMultiError) Error ¶
func (m DeleteUserDeptReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserDeptReplyValidationError ¶
type DeleteUserDeptReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteUserDeptReplyValidationError is the validation error returned by DeleteUserDeptReply.Validate if the designated constraints aren't met.
func (DeleteUserDeptReplyValidationError) Cause ¶
func (e DeleteUserDeptReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserDeptReplyValidationError) Error ¶
func (e DeleteUserDeptReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserDeptReplyValidationError) ErrorName ¶
func (e DeleteUserDeptReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserDeptReplyValidationError) Field ¶
func (e DeleteUserDeptReplyValidationError) Field() string
Field function returns field value.
func (DeleteUserDeptReplyValidationError) Key ¶
func (e DeleteUserDeptReplyValidationError) Key() bool
Key function returns key value.
func (DeleteUserDeptReplyValidationError) Reason ¶
func (e DeleteUserDeptReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteUserDeptRequest ¶
type DeleteUserDeptRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUserDeptRequest) Descriptor
deprecated
func (*DeleteUserDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserDeptRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserDeptRequest) GetId ¶
func (x *DeleteUserDeptRequest) GetId() uint32
func (*DeleteUserDeptRequest) ProtoMessage ¶
func (*DeleteUserDeptRequest) ProtoMessage()
func (*DeleteUserDeptRequest) ProtoReflect ¶
func (x *DeleteUserDeptRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserDeptRequest) Reset ¶
func (x *DeleteUserDeptRequest) Reset()
func (*DeleteUserDeptRequest) String ¶
func (x *DeleteUserDeptRequest) String() string
func (*DeleteUserDeptRequest) Validate ¶
func (m *DeleteUserDeptRequest) Validate() error
Validate checks the field values on DeleteUserDeptRequest 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 (*DeleteUserDeptRequest) ValidateAll ¶
func (m *DeleteUserDeptRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserDeptRequest 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 DeleteUserDeptRequestMultiError, or nil if none found.
type DeleteUserDeptRequestMultiError ¶
type DeleteUserDeptRequestMultiError []error
DeleteUserDeptRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserDeptRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserDeptRequestMultiError) AllErrors ¶
func (m DeleteUserDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserDeptRequestMultiError) Error ¶
func (m DeleteUserDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserDeptRequestValidationError ¶
type DeleteUserDeptRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserDeptRequestValidationError is the validation error returned by DeleteUserDeptRequest.Validate if the designated constraints aren't met.
func (DeleteUserDeptRequestValidationError) Cause ¶
func (e DeleteUserDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserDeptRequestValidationError) Error ¶
func (e DeleteUserDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserDeptRequestValidationError) ErrorName ¶
func (e DeleteUserDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserDeptRequestValidationError) Field ¶
func (e DeleteUserDeptRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserDeptRequestValidationError) Key ¶
func (e DeleteUserDeptRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserDeptRequestValidationError) Reason ¶
func (e DeleteUserDeptRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserDeptReply ¶
type ListUserDeptReply struct {
List []*ListUserDeptReply_UserDept `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserDeptReply) Descriptor
deprecated
func (*ListUserDeptReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserDeptReply.ProtoReflect.Descriptor instead.
func (*ListUserDeptReply) GetList ¶
func (x *ListUserDeptReply) GetList() []*ListUserDeptReply_UserDept
func (*ListUserDeptReply) GetTotal ¶
func (x *ListUserDeptReply) GetTotal() uint32
func (*ListUserDeptReply) ProtoMessage ¶
func (*ListUserDeptReply) ProtoMessage()
func (*ListUserDeptReply) ProtoReflect ¶
func (x *ListUserDeptReply) ProtoReflect() protoreflect.Message
func (*ListUserDeptReply) Reset ¶
func (x *ListUserDeptReply) Reset()
func (*ListUserDeptReply) String ¶
func (x *ListUserDeptReply) String() string
func (*ListUserDeptReply) Validate ¶
func (m *ListUserDeptReply) Validate() error
Validate checks the field values on ListUserDeptReply 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 (*ListUserDeptReply) ValidateAll ¶
func (m *ListUserDeptReply) ValidateAll() error
ValidateAll checks the field values on ListUserDeptReply 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 ListUserDeptReplyMultiError, or nil if none found.
type ListUserDeptReplyMultiError ¶
type ListUserDeptReplyMultiError []error
ListUserDeptReplyMultiError is an error wrapping multiple validation errors returned by ListUserDeptReply.ValidateAll() if the designated constraints aren't met.
func (ListUserDeptReplyMultiError) AllErrors ¶
func (m ListUserDeptReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserDeptReplyMultiError) Error ¶
func (m ListUserDeptReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserDeptReplyValidationError ¶
type ListUserDeptReplyValidationError struct {
// contains filtered or unexported fields
}
ListUserDeptReplyValidationError is the validation error returned by ListUserDeptReply.Validate if the designated constraints aren't met.
func (ListUserDeptReplyValidationError) Cause ¶
func (e ListUserDeptReplyValidationError) Cause() error
Cause function returns cause value.
func (ListUserDeptReplyValidationError) Error ¶
func (e ListUserDeptReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserDeptReplyValidationError) ErrorName ¶
func (e ListUserDeptReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserDeptReplyValidationError) Field ¶
func (e ListUserDeptReplyValidationError) Field() string
Field function returns field value.
func (ListUserDeptReplyValidationError) Key ¶
func (e ListUserDeptReplyValidationError) Key() bool
Key function returns key value.
func (ListUserDeptReplyValidationError) Reason ¶
func (e ListUserDeptReplyValidationError) Reason() string
Reason function returns reason value.
type ListUserDeptReply_Dept ¶
type ListUserDeptReply_Dept struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Logo string `protobuf:"bytes,3,opt,name=logo,proto3" json:"logo,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserDeptReply_Dept) Descriptor
deprecated
func (*ListUserDeptReply_Dept) Descriptor() ([]byte, []int)
Deprecated: Use ListUserDeptReply_Dept.ProtoReflect.Descriptor instead.
func (*ListUserDeptReply_Dept) GetId ¶
func (x *ListUserDeptReply_Dept) GetId() uint32
func (*ListUserDeptReply_Dept) GetLogo ¶
func (x *ListUserDeptReply_Dept) GetLogo() string
func (*ListUserDeptReply_Dept) GetName ¶
func (x *ListUserDeptReply_Dept) GetName() string
func (*ListUserDeptReply_Dept) ProtoMessage ¶
func (*ListUserDeptReply_Dept) ProtoMessage()
func (*ListUserDeptReply_Dept) ProtoReflect ¶
func (x *ListUserDeptReply_Dept) ProtoReflect() protoreflect.Message
func (*ListUserDeptReply_Dept) Reset ¶
func (x *ListUserDeptReply_Dept) Reset()
func (*ListUserDeptReply_Dept) String ¶
func (x *ListUserDeptReply_Dept) String() string
func (*ListUserDeptReply_Dept) Validate ¶
func (m *ListUserDeptReply_Dept) Validate() error
Validate checks the field values on ListUserDeptReply_Dept 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 (*ListUserDeptReply_Dept) ValidateAll ¶
func (m *ListUserDeptReply_Dept) ValidateAll() error
ValidateAll checks the field values on ListUserDeptReply_Dept 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 ListUserDeptReply_DeptMultiError, or nil if none found.
type ListUserDeptReply_DeptMultiError ¶
type ListUserDeptReply_DeptMultiError []error
ListUserDeptReply_DeptMultiError is an error wrapping multiple validation errors returned by ListUserDeptReply_Dept.ValidateAll() if the designated constraints aren't met.
func (ListUserDeptReply_DeptMultiError) AllErrors ¶
func (m ListUserDeptReply_DeptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserDeptReply_DeptMultiError) Error ¶
func (m ListUserDeptReply_DeptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserDeptReply_DeptValidationError ¶
type ListUserDeptReply_DeptValidationError struct {
// contains filtered or unexported fields
}
ListUserDeptReply_DeptValidationError is the validation error returned by ListUserDeptReply_Dept.Validate if the designated constraints aren't met.
func (ListUserDeptReply_DeptValidationError) Cause ¶
func (e ListUserDeptReply_DeptValidationError) Cause() error
Cause function returns cause value.
func (ListUserDeptReply_DeptValidationError) Error ¶
func (e ListUserDeptReply_DeptValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserDeptReply_DeptValidationError) ErrorName ¶
func (e ListUserDeptReply_DeptValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserDeptReply_DeptValidationError) Field ¶
func (e ListUserDeptReply_DeptValidationError) Field() string
Field function returns field value.
func (ListUserDeptReply_DeptValidationError) Key ¶
func (e ListUserDeptReply_DeptValidationError) Key() bool
Key function returns key value.
func (ListUserDeptReply_DeptValidationError) Reason ¶
func (e ListUserDeptReply_DeptValidationError) Reason() string
Reason function returns reason value.
type ListUserDeptReply_Job ¶
type ListUserDeptReply_Job struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserDeptReply_Job) Descriptor
deprecated
func (*ListUserDeptReply_Job) Descriptor() ([]byte, []int)
Deprecated: Use ListUserDeptReply_Job.ProtoReflect.Descriptor instead.
func (*ListUserDeptReply_Job) GetId ¶
func (x *ListUserDeptReply_Job) GetId() uint32
func (*ListUserDeptReply_Job) GetName ¶
func (x *ListUserDeptReply_Job) GetName() string
func (*ListUserDeptReply_Job) ProtoMessage ¶
func (*ListUserDeptReply_Job) ProtoMessage()
func (*ListUserDeptReply_Job) ProtoReflect ¶
func (x *ListUserDeptReply_Job) ProtoReflect() protoreflect.Message
func (*ListUserDeptReply_Job) Reset ¶
func (x *ListUserDeptReply_Job) Reset()
func (*ListUserDeptReply_Job) String ¶
func (x *ListUserDeptReply_Job) String() string
func (*ListUserDeptReply_Job) Validate ¶
func (m *ListUserDeptReply_Job) Validate() error
Validate checks the field values on ListUserDeptReply_Job 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 (*ListUserDeptReply_Job) ValidateAll ¶
func (m *ListUserDeptReply_Job) ValidateAll() error
ValidateAll checks the field values on ListUserDeptReply_Job 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 ListUserDeptReply_JobMultiError, or nil if none found.
type ListUserDeptReply_JobMultiError ¶
type ListUserDeptReply_JobMultiError []error
ListUserDeptReply_JobMultiError is an error wrapping multiple validation errors returned by ListUserDeptReply_Job.ValidateAll() if the designated constraints aren't met.
func (ListUserDeptReply_JobMultiError) AllErrors ¶
func (m ListUserDeptReply_JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserDeptReply_JobMultiError) Error ¶
func (m ListUserDeptReply_JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserDeptReply_JobValidationError ¶
type ListUserDeptReply_JobValidationError struct {
// contains filtered or unexported fields
}
ListUserDeptReply_JobValidationError is the validation error returned by ListUserDeptReply_Job.Validate if the designated constraints aren't met.
func (ListUserDeptReply_JobValidationError) Cause ¶
func (e ListUserDeptReply_JobValidationError) Cause() error
Cause function returns cause value.
func (ListUserDeptReply_JobValidationError) Error ¶
func (e ListUserDeptReply_JobValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserDeptReply_JobValidationError) ErrorName ¶
func (e ListUserDeptReply_JobValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserDeptReply_JobValidationError) Field ¶
func (e ListUserDeptReply_JobValidationError) Field() string
Field function returns field value.
func (ListUserDeptReply_JobValidationError) Key ¶
func (e ListUserDeptReply_JobValidationError) Key() bool
Key function returns key value.
func (ListUserDeptReply_JobValidationError) Reason ¶
func (e ListUserDeptReply_JobValidationError) Reason() string
Reason function returns reason value.
type ListUserDeptReply_UserDept ¶
type ListUserDeptReply_UserDept struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
UserId uint32 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
Dept *ListUserDeptReply_Dept `protobuf:"bytes,3,opt,name=dept,proto3" json:"dept,omitempty"`
Job *ListUserDeptReply_Job `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
DeptId uint32 `protobuf:"varint,5,opt,name=deptId,proto3" json:"deptId,omitempty"`
JobId uint32 `protobuf:"varint,6,opt,name=jobId,proto3" json:"jobId,omitempty"`
Main bool `protobuf:"varint,7,opt,name=main,proto3" json:"main,omitempty"`
CreatedAt uint32 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserDeptReply_UserDept) Descriptor
deprecated
func (*ListUserDeptReply_UserDept) Descriptor() ([]byte, []int)
Deprecated: Use ListUserDeptReply_UserDept.ProtoReflect.Descriptor instead.
func (*ListUserDeptReply_UserDept) GetCreatedAt ¶
func (x *ListUserDeptReply_UserDept) GetCreatedAt() uint32
func (*ListUserDeptReply_UserDept) GetDept ¶
func (x *ListUserDeptReply_UserDept) GetDept() *ListUserDeptReply_Dept
func (*ListUserDeptReply_UserDept) GetDeptId ¶
func (x *ListUserDeptReply_UserDept) GetDeptId() uint32
func (*ListUserDeptReply_UserDept) GetId ¶
func (x *ListUserDeptReply_UserDept) GetId() uint32
func (*ListUserDeptReply_UserDept) GetJob ¶
func (x *ListUserDeptReply_UserDept) GetJob() *ListUserDeptReply_Job
func (*ListUserDeptReply_UserDept) GetJobId ¶
func (x *ListUserDeptReply_UserDept) GetJobId() uint32
func (*ListUserDeptReply_UserDept) GetMain ¶
func (x *ListUserDeptReply_UserDept) GetMain() bool
func (*ListUserDeptReply_UserDept) GetUpdatedAt ¶
func (x *ListUserDeptReply_UserDept) GetUpdatedAt() uint32
func (*ListUserDeptReply_UserDept) GetUserId ¶
func (x *ListUserDeptReply_UserDept) GetUserId() uint32
func (*ListUserDeptReply_UserDept) ProtoMessage ¶
func (*ListUserDeptReply_UserDept) ProtoMessage()
func (*ListUserDeptReply_UserDept) ProtoReflect ¶
func (x *ListUserDeptReply_UserDept) ProtoReflect() protoreflect.Message
func (*ListUserDeptReply_UserDept) Reset ¶
func (x *ListUserDeptReply_UserDept) Reset()
func (*ListUserDeptReply_UserDept) String ¶
func (x *ListUserDeptReply_UserDept) String() string
func (*ListUserDeptReply_UserDept) Validate ¶
func (m *ListUserDeptReply_UserDept) Validate() error
Validate checks the field values on ListUserDeptReply_UserDept 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 (*ListUserDeptReply_UserDept) ValidateAll ¶
func (m *ListUserDeptReply_UserDept) ValidateAll() error
ValidateAll checks the field values on ListUserDeptReply_UserDept 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 ListUserDeptReply_UserDeptMultiError, or nil if none found.
type ListUserDeptReply_UserDeptMultiError ¶
type ListUserDeptReply_UserDeptMultiError []error
ListUserDeptReply_UserDeptMultiError is an error wrapping multiple validation errors returned by ListUserDeptReply_UserDept.ValidateAll() if the designated constraints aren't met.
func (ListUserDeptReply_UserDeptMultiError) AllErrors ¶
func (m ListUserDeptReply_UserDeptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserDeptReply_UserDeptMultiError) Error ¶
func (m ListUserDeptReply_UserDeptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserDeptReply_UserDeptValidationError ¶
type ListUserDeptReply_UserDeptValidationError struct {
// contains filtered or unexported fields
}
ListUserDeptReply_UserDeptValidationError is the validation error returned by ListUserDeptReply_UserDept.Validate if the designated constraints aren't met.
func (ListUserDeptReply_UserDeptValidationError) Cause ¶
func (e ListUserDeptReply_UserDeptValidationError) Cause() error
Cause function returns cause value.
func (ListUserDeptReply_UserDeptValidationError) Error ¶
func (e ListUserDeptReply_UserDeptValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserDeptReply_UserDeptValidationError) ErrorName ¶
func (e ListUserDeptReply_UserDeptValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserDeptReply_UserDeptValidationError) Field ¶
func (e ListUserDeptReply_UserDeptValidationError) Field() string
Field function returns field value.
func (ListUserDeptReply_UserDeptValidationError) Key ¶
func (e ListUserDeptReply_UserDeptValidationError) Key() bool
Key function returns key value.
func (ListUserDeptReply_UserDeptValidationError) Reason ¶
func (e ListUserDeptReply_UserDeptValidationError) Reason() string
Reason function returns reason value.
type ListUserDeptRequest ¶
type ListUserDeptRequest struct {
Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
UserId uint32 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
Job *string `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"`
Dept *string `protobuf:"bytes,5,opt,name=dept,proto3,oneof" json:"dept,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserDeptRequest) Descriptor
deprecated
func (*ListUserDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserDeptRequest.ProtoReflect.Descriptor instead.
func (*ListUserDeptRequest) GetDept ¶
func (x *ListUserDeptRequest) GetDept() string
func (*ListUserDeptRequest) GetJob ¶
func (x *ListUserDeptRequest) GetJob() string
func (*ListUserDeptRequest) GetPage ¶
func (x *ListUserDeptRequest) GetPage() uint32
func (*ListUserDeptRequest) GetPageSize ¶
func (x *ListUserDeptRequest) GetPageSize() uint32
func (*ListUserDeptRequest) GetUserId ¶
func (x *ListUserDeptRequest) GetUserId() uint32
func (*ListUserDeptRequest) ProtoMessage ¶
func (*ListUserDeptRequest) ProtoMessage()
func (*ListUserDeptRequest) ProtoReflect ¶
func (x *ListUserDeptRequest) ProtoReflect() protoreflect.Message
func (*ListUserDeptRequest) Reset ¶
func (x *ListUserDeptRequest) Reset()
func (*ListUserDeptRequest) String ¶
func (x *ListUserDeptRequest) String() string
func (*ListUserDeptRequest) Validate ¶
func (m *ListUserDeptRequest) Validate() error
Validate checks the field values on ListUserDeptRequest 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 (*ListUserDeptRequest) ValidateAll ¶
func (m *ListUserDeptRequest) ValidateAll() error
ValidateAll checks the field values on ListUserDeptRequest 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 ListUserDeptRequestMultiError, or nil if none found.
type ListUserDeptRequestMultiError ¶
type ListUserDeptRequestMultiError []error
ListUserDeptRequestMultiError is an error wrapping multiple validation errors returned by ListUserDeptRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserDeptRequestMultiError) AllErrors ¶
func (m ListUserDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserDeptRequestMultiError) Error ¶
func (m ListUserDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserDeptRequestValidationError ¶
type ListUserDeptRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserDeptRequestValidationError is the validation error returned by ListUserDeptRequest.Validate if the designated constraints aren't met.
func (ListUserDeptRequestValidationError) Cause ¶
func (e ListUserDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserDeptRequestValidationError) Error ¶
func (e ListUserDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserDeptRequestValidationError) ErrorName ¶
func (e ListUserDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserDeptRequestValidationError) Field ¶
func (e ListUserDeptRequestValidationError) Field() string
Field function returns field value.
func (ListUserDeptRequestValidationError) Key ¶
func (e ListUserDeptRequestValidationError) Key() bool
Key function returns key value.
func (ListUserDeptRequestValidationError) Reason ¶
func (e ListUserDeptRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedUserDeptServer ¶
type UnimplementedUserDeptServer struct{}
UnimplementedUserDeptServer must be embedded to have forward compatible implementations.
func (UnimplementedUserDeptServer) CreateUserDept ¶
func (UnimplementedUserDeptServer) CreateUserDept(context.Context, *CreateUserDeptRequest) (*CreateUserDeptReply, error)
func (UnimplementedUserDeptServer) DeleteUserDept ¶
func (UnimplementedUserDeptServer) DeleteUserDept(context.Context, *DeleteUserDeptRequest) (*DeleteUserDeptReply, error)
func (UnimplementedUserDeptServer) ListUserDept ¶
func (UnimplementedUserDeptServer) ListUserDept(context.Context, *ListUserDeptRequest) (*ListUserDeptReply, error)
func (UnimplementedUserDeptServer) UpdateUserDept ¶
func (UnimplementedUserDeptServer) UpdateUserDept(context.Context, *UpdateUserDeptRequest) (*UpdateUserDeptReply, error)
type UnsafeUserDeptServer ¶
type UnsafeUserDeptServer interface {
// contains filtered or unexported methods
}
UnsafeUserDeptServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserDeptServer will result in compilation errors.
type UpdateUserDeptReply ¶
type UpdateUserDeptReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserDeptReply) Descriptor
deprecated
func (*UpdateUserDeptReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserDeptReply.ProtoReflect.Descriptor instead.
func (*UpdateUserDeptReply) ProtoMessage ¶
func (*UpdateUserDeptReply) ProtoMessage()
func (*UpdateUserDeptReply) ProtoReflect ¶
func (x *UpdateUserDeptReply) ProtoReflect() protoreflect.Message
func (*UpdateUserDeptReply) Reset ¶
func (x *UpdateUserDeptReply) Reset()
func (*UpdateUserDeptReply) String ¶
func (x *UpdateUserDeptReply) String() string
func (*UpdateUserDeptReply) Validate ¶
func (m *UpdateUserDeptReply) Validate() error
Validate checks the field values on UpdateUserDeptReply 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 (*UpdateUserDeptReply) ValidateAll ¶
func (m *UpdateUserDeptReply) ValidateAll() error
ValidateAll checks the field values on UpdateUserDeptReply 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 UpdateUserDeptReplyMultiError, or nil if none found.
type UpdateUserDeptReplyMultiError ¶
type UpdateUserDeptReplyMultiError []error
UpdateUserDeptReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserDeptReply.ValidateAll() if the designated constraints aren't met.
func (UpdateUserDeptReplyMultiError) AllErrors ¶
func (m UpdateUserDeptReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserDeptReplyMultiError) Error ¶
func (m UpdateUserDeptReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserDeptReplyValidationError ¶
type UpdateUserDeptReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateUserDeptReplyValidationError is the validation error returned by UpdateUserDeptReply.Validate if the designated constraints aren't met.
func (UpdateUserDeptReplyValidationError) Cause ¶
func (e UpdateUserDeptReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserDeptReplyValidationError) Error ¶
func (e UpdateUserDeptReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserDeptReplyValidationError) ErrorName ¶
func (e UpdateUserDeptReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserDeptReplyValidationError) Field ¶
func (e UpdateUserDeptReplyValidationError) Field() string
Field function returns field value.
func (UpdateUserDeptReplyValidationError) Key ¶
func (e UpdateUserDeptReplyValidationError) Key() bool
Key function returns key value.
func (UpdateUserDeptReplyValidationError) Reason ¶
func (e UpdateUserDeptReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateUserDeptRequest ¶
type UpdateUserDeptRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
UserId uint32 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
DeptId uint32 `protobuf:"varint,3,opt,name=deptId,proto3" json:"deptId,omitempty"`
JobId uint32 `protobuf:"varint,4,opt,name=jobId,proto3" json:"jobId,omitempty"`
Main bool `protobuf:"varint,5,opt,name=main,proto3" json:"main,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateUserDeptRequest) Descriptor
deprecated
func (*UpdateUserDeptRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserDeptRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserDeptRequest) GetDeptId ¶
func (x *UpdateUserDeptRequest) GetDeptId() uint32
func (*UpdateUserDeptRequest) GetId ¶
func (x *UpdateUserDeptRequest) GetId() uint32
func (*UpdateUserDeptRequest) GetJobId ¶
func (x *UpdateUserDeptRequest) GetJobId() uint32
func (*UpdateUserDeptRequest) GetMain ¶
func (x *UpdateUserDeptRequest) GetMain() bool
func (*UpdateUserDeptRequest) GetUserId ¶
func (x *UpdateUserDeptRequest) GetUserId() uint32
func (*UpdateUserDeptRequest) ProtoMessage ¶
func (*UpdateUserDeptRequest) ProtoMessage()
func (*UpdateUserDeptRequest) ProtoReflect ¶
func (x *UpdateUserDeptRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserDeptRequest) Reset ¶
func (x *UpdateUserDeptRequest) Reset()
func (*UpdateUserDeptRequest) String ¶
func (x *UpdateUserDeptRequest) String() string
func (*UpdateUserDeptRequest) Validate ¶
func (m *UpdateUserDeptRequest) Validate() error
Validate checks the field values on UpdateUserDeptRequest 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 (*UpdateUserDeptRequest) ValidateAll ¶
func (m *UpdateUserDeptRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserDeptRequest 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 UpdateUserDeptRequestMultiError, or nil if none found.
type UpdateUserDeptRequestMultiError ¶
type UpdateUserDeptRequestMultiError []error
UpdateUserDeptRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserDeptRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserDeptRequestMultiError) AllErrors ¶
func (m UpdateUserDeptRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserDeptRequestMultiError) Error ¶
func (m UpdateUserDeptRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserDeptRequestValidationError ¶
type UpdateUserDeptRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserDeptRequestValidationError is the validation error returned by UpdateUserDeptRequest.Validate if the designated constraints aren't met.
func (UpdateUserDeptRequestValidationError) Cause ¶
func (e UpdateUserDeptRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserDeptRequestValidationError) Error ¶
func (e UpdateUserDeptRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserDeptRequestValidationError) ErrorName ¶
func (e UpdateUserDeptRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserDeptRequestValidationError) Field ¶
func (e UpdateUserDeptRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserDeptRequestValidationError) Key ¶
func (e UpdateUserDeptRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserDeptRequestValidationError) Reason ¶
func (e UpdateUserDeptRequestValidationError) Reason() string
Reason function returns reason value.
type UserDeptClient ¶
type UserDeptClient interface {
ListUserDept(ctx context.Context, in *ListUserDeptRequest, opts ...grpc.CallOption) (*ListUserDeptReply, error)
CreateUserDept(ctx context.Context, in *CreateUserDeptRequest, opts ...grpc.CallOption) (*CreateUserDeptReply, error)
UpdateUserDept(ctx context.Context, in *UpdateUserDeptRequest, opts ...grpc.CallOption) (*UpdateUserDeptReply, error)
DeleteUserDept(ctx context.Context, in *DeleteUserDeptRequest, opts ...grpc.CallOption) (*DeleteUserDeptReply, error)
}
UserDeptClient is the client API for UserDept 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 NewUserDeptClient ¶
func NewUserDeptClient(cc grpc.ClientConnInterface) UserDeptClient
type UserDeptHTTPClient ¶
type UserDeptHTTPClient interface {
CreateUserDept(ctx context.Context, req *CreateUserDeptRequest, opts ...http.CallOption) (rsp *CreateUserDeptReply, err error)
DeleteUserDept(ctx context.Context, req *DeleteUserDeptRequest, opts ...http.CallOption) (rsp *DeleteUserDeptReply, err error)
ListUserDept(ctx context.Context, req *ListUserDeptRequest, opts ...http.CallOption) (rsp *ListUserDeptReply, err error)
UpdateUserDept(ctx context.Context, req *UpdateUserDeptRequest, opts ...http.CallOption) (rsp *UpdateUserDeptReply, err error)
}
func NewUserDeptHTTPClient ¶
func NewUserDeptHTTPClient(client *http.Client) UserDeptHTTPClient
type UserDeptHTTPClientImpl ¶
type UserDeptHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserDeptHTTPClientImpl) CreateUserDept ¶
func (c *UserDeptHTTPClientImpl) CreateUserDept(ctx context.Context, in *CreateUserDeptRequest, opts ...http.CallOption) (*CreateUserDeptReply, error)
func (*UserDeptHTTPClientImpl) DeleteUserDept ¶
func (c *UserDeptHTTPClientImpl) DeleteUserDept(ctx context.Context, in *DeleteUserDeptRequest, opts ...http.CallOption) (*DeleteUserDeptReply, error)
func (*UserDeptHTTPClientImpl) ListUserDept ¶
func (c *UserDeptHTTPClientImpl) ListUserDept(ctx context.Context, in *ListUserDeptRequest, opts ...http.CallOption) (*ListUserDeptReply, error)
func (*UserDeptHTTPClientImpl) UpdateUserDept ¶
func (c *UserDeptHTTPClientImpl) UpdateUserDept(ctx context.Context, in *UpdateUserDeptRequest, opts ...http.CallOption) (*UpdateUserDeptReply, error)
type UserDeptHTTPServer ¶
type UserDeptHTTPServer interface {
CreateUserDept(context.Context, *CreateUserDeptRequest) (*CreateUserDeptReply, error)
DeleteUserDept(context.Context, *DeleteUserDeptRequest) (*DeleteUserDeptReply, error)
ListUserDept(context.Context, *ListUserDeptRequest) (*ListUserDeptReply, error)
UpdateUserDept(context.Context, *UpdateUserDeptRequest) (*UpdateUserDeptReply, error)
}
type UserDeptServer ¶
type UserDeptServer interface {
ListUserDept(context.Context, *ListUserDeptRequest) (*ListUserDeptReply, error)
CreateUserDept(context.Context, *CreateUserDeptRequest) (*CreateUserDeptReply, error)
UpdateUserDept(context.Context, *UpdateUserDeptRequest) (*UpdateUserDeptReply, error)
DeleteUserDept(context.Context, *DeleteUserDeptRequest) (*DeleteUserDeptReply, error)
// contains filtered or unexported methods
}
UserDeptServer is the server API for UserDept service. All implementations must embed UnimplementedUserDeptServer for forward compatibility