userdept

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

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

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

Documentation

Index

Constants

View Source
const (
	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"
)
View Source
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

View Source
var File_api_userdept_proto_userdept_proto protoreflect.FileDescriptor
View Source
var File_api_userdept_proto_userdept_service_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (CreateUserDeptReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateUserDeptReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateUserDeptReplyValidationError) Field

Field function returns field value.

func (CreateUserDeptReplyValidationError) Key

Key function returns key value.

func (CreateUserDeptReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateUserDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserDeptRequestValidationError) Field

Field function returns field value.

func (CreateUserDeptRequestValidationError) Key

Key function returns key value.

func (CreateUserDeptRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteUserDeptReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserDeptReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserDeptReplyValidationError) Field

Field function returns field value.

func (DeleteUserDeptReplyValidationError) Key

Key function returns key value.

func (DeleteUserDeptReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteUserDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserDeptRequestValidationError) Field

Field function returns field value.

func (DeleteUserDeptRequestValidationError) Key

Key function returns key value.

func (DeleteUserDeptRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (ListUserDeptReplyValidationError) Error

Error satisfies the builtin error interface

func (ListUserDeptReplyValidationError) ErrorName

ErrorName returns error name.

func (ListUserDeptReplyValidationError) Field

Field function returns field value.

func (ListUserDeptReplyValidationError) Key

Key function returns key value.

func (ListUserDeptReplyValidationError) Reason

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"`
	// 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 (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

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

Cause function returns cause value.

func (ListUserDeptReply_DeptValidationError) Error

Error satisfies the builtin error interface

func (ListUserDeptReply_DeptValidationError) ErrorName

ErrorName returns error name.

func (ListUserDeptReply_DeptValidationError) Field

Field function returns field value.

func (ListUserDeptReply_DeptValidationError) Key

Key function returns key value.

func (ListUserDeptReply_DeptValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserDeptReply_JobValidationError) Error

Error satisfies the builtin error interface

func (ListUserDeptReply_JobValidationError) ErrorName

ErrorName returns error name.

func (ListUserDeptReply_JobValidationError) Field

Field function returns field value.

func (ListUserDeptReply_JobValidationError) Key

Key function returns key value.

func (ListUserDeptReply_JobValidationError) Reason

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 (*ListUserDeptReply_UserDept) GetDeptId

func (x *ListUserDeptReply_UserDept) GetDeptId() uint32

func (*ListUserDeptReply_UserDept) GetId

func (*ListUserDeptReply_UserDept) GetJob

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 (*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

AllErrors returns a list of validation violation errors.

func (ListUserDeptReply_UserDeptMultiError) Error

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

Cause function returns cause value.

func (ListUserDeptReply_UserDeptValidationError) Error

Error satisfies the builtin error interface

func (ListUserDeptReply_UserDeptValidationError) ErrorName

ErrorName returns error name.

func (ListUserDeptReply_UserDeptValidationError) Field

Field function returns field value.

func (ListUserDeptReply_UserDeptValidationError) Key

Key function returns key value.

func (ListUserDeptReply_UserDeptValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUserDeptRequestValidationError) Field

Field function returns field value.

func (ListUserDeptRequestValidationError) Key

Key function returns key value.

func (ListUserDeptRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedUserDeptServer

type UnimplementedUserDeptServer struct{}

UnimplementedUserDeptServer must be embedded to have forward compatible implementations.

func (UnimplementedUserDeptServer) CreateUserDept

func (UnimplementedUserDeptServer) DeleteUserDept

func (UnimplementedUserDeptServer) ListUserDept

func (UnimplementedUserDeptServer) UpdateUserDept

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

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

Cause function returns cause value.

func (UpdateUserDeptReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserDeptReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserDeptReplyValidationError) Field

Field function returns field value.

func (UpdateUserDeptReplyValidationError) Key

Key function returns key value.

func (UpdateUserDeptReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateUserDeptRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserDeptRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserDeptRequestValidationError) Field

Field function returns field value.

func (UpdateUserDeptRequestValidationError) Key

Key function returns key value.

func (UpdateUserDeptRequestValidationError) Reason

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 (*UserDeptHTTPClientImpl) DeleteUserDept

func (*UserDeptHTTPClientImpl) ListUserDept

func (*UserDeptHTTPClientImpl) UpdateUserDept

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

Jump to

Keyboard shortcuts

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