v1

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_GetDepartmentTree_FullMethodName        = "/manager_department.Service/GetDepartmentTree"
	Service_AddDepartment_FullMethodName            = "/manager_department.Service/AddDepartment"
	Service_UpdateDepartment_FullMethodName         = "/manager_department.Service/UpdateDepartment"
	Service_DeleteDepartment_FullMethodName         = "/manager_department.Service/DeleteDepartment"
	Service_AllDepartmentObjectValue_FullMethodName = "/manager_department.Service/AllDepartmentObjectValue"
	Service_AddDepartmentObject_FullMethodName      = "/manager_department.Service/AddDepartmentObject"
	Service_ImportDepartmentObject_FullMethodName   = "/manager_department.Service/ImportDepartmentObject"
	Service_DeleteDepartmentObject_FullMethodName   = "/manager_department.Service/DeleteDepartmentObject"
)
View Source
const OperationServiceAddDepartment = "/manager_department.Service/AddDepartment"
View Source
const OperationServiceAddDepartmentObject = "/manager_department.Service/AddDepartmentObject"
View Source
const OperationServiceAllDepartmentObjectValue = "/manager_department.Service/AllDepartmentObjectValue"
View Source
const OperationServiceDeleteDepartment = "/manager_department.Service/DeleteDepartment"
View Source
const OperationServiceDeleteDepartmentObject = "/manager_department.Service/DeleteDepartmentObject"
View Source
const OperationServiceGetDepartmentTree = "/manager_department.Service/GetDepartmentTree"
View Source
const OperationServiceImportDepartmentObject = "/manager_department.Service/ImportDepartmentObject"
View Source
const OperationServiceUpdateDepartment = "/manager_department.Service/UpdateDepartment"

Variables

View Source
var File_manager_department_proto protoreflect.FileDescriptor
View Source
var File_manager_department_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager_department.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDepartmentTree",
			Handler:    _Service_GetDepartmentTree_Handler,
		},
		{
			MethodName: "AddDepartment",
			Handler:    _Service_AddDepartment_Handler,
		},
		{
			MethodName: "UpdateDepartment",
			Handler:    _Service_UpdateDepartment_Handler,
		},
		{
			MethodName: "DeleteDepartment",
			Handler:    _Service_DeleteDepartment_Handler,
		},
		{
			MethodName: "AllDepartmentObjectValue",
			Handler:    _Service_AllDepartmentObjectValue_Handler,
		},
		{
			MethodName: "AddDepartmentObject",
			Handler:    _Service_AddDepartmentObject_Handler,
		},
		{
			MethodName: "ImportDepartmentObject",
			Handler:    _Service_ImportDepartmentObject_Handler,
		},
		{
			MethodName: "DeleteDepartmentObject",
			Handler:    _Service_DeleteDepartmentObject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "manager_department_service.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddDepartmentObjectReply

type AddDepartmentObjectReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDepartmentObjectReply) Descriptor deprecated

func (*AddDepartmentObjectReply) Descriptor() ([]byte, []int)

Deprecated: Use AddDepartmentObjectReply.ProtoReflect.Descriptor instead.

func (*AddDepartmentObjectReply) GetId

func (x *AddDepartmentObjectReply) GetId() uint32

func (*AddDepartmentObjectReply) ProtoMessage

func (*AddDepartmentObjectReply) ProtoMessage()

func (*AddDepartmentObjectReply) ProtoReflect

func (x *AddDepartmentObjectReply) ProtoReflect() protoreflect.Message

func (*AddDepartmentObjectReply) Reset

func (x *AddDepartmentObjectReply) Reset()

func (*AddDepartmentObjectReply) String

func (x *AddDepartmentObjectReply) String() string

func (*AddDepartmentObjectReply) Validate

func (m *AddDepartmentObjectReply) Validate() error

Validate checks the field values on AddDepartmentObjectReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddDepartmentObjectReply) ValidateAll

func (m *AddDepartmentObjectReply) ValidateAll() error

ValidateAll checks the field values on AddDepartmentObjectReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddDepartmentObjectReplyMultiError, or nil if none found.

type AddDepartmentObjectReplyMultiError

type AddDepartmentObjectReplyMultiError []error

AddDepartmentObjectReplyMultiError is an error wrapping multiple validation errors returned by AddDepartmentObjectReply.ValidateAll() if the designated constraints aren't met.

func (AddDepartmentObjectReplyMultiError) AllErrors

func (m AddDepartmentObjectReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddDepartmentObjectReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddDepartmentObjectReplyValidationError

type AddDepartmentObjectReplyValidationError struct {
	// contains filtered or unexported fields
}

AddDepartmentObjectReplyValidationError is the validation error returned by AddDepartmentObjectReply.Validate if the designated constraints aren't met.

func (AddDepartmentObjectReplyValidationError) Cause

Cause function returns cause value.

func (AddDepartmentObjectReplyValidationError) Error

Error satisfies the builtin error interface

func (AddDepartmentObjectReplyValidationError) ErrorName

ErrorName returns error name.

func (AddDepartmentObjectReplyValidationError) Field

Field function returns field value.

func (AddDepartmentObjectReplyValidationError) Key

Key function returns key value.

func (AddDepartmentObjectReplyValidationError) Reason

Reason function returns reason value.

type AddDepartmentObjectRequest

type AddDepartmentObjectRequest struct {
	ObjectKeyword string `protobuf:"bytes,1,opt,name=object_keyword,json=objectKeyword,proto3" json:"object_keyword,omitempty"`
	Value         string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDepartmentObjectRequest) Descriptor deprecated

func (*AddDepartmentObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddDepartmentObjectRequest.ProtoReflect.Descriptor instead.

func (*AddDepartmentObjectRequest) GetObjectKeyword

func (x *AddDepartmentObjectRequest) GetObjectKeyword() string

func (*AddDepartmentObjectRequest) GetValue

func (x *AddDepartmentObjectRequest) GetValue() string

func (*AddDepartmentObjectRequest) ProtoMessage

func (*AddDepartmentObjectRequest) ProtoMessage()

func (*AddDepartmentObjectRequest) ProtoReflect

func (*AddDepartmentObjectRequest) Reset

func (x *AddDepartmentObjectRequest) Reset()

func (*AddDepartmentObjectRequest) String

func (x *AddDepartmentObjectRequest) String() string

func (*AddDepartmentObjectRequest) Validate

func (m *AddDepartmentObjectRequest) Validate() error

Validate checks the field values on AddDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddDepartmentObjectRequest) ValidateAll

func (m *AddDepartmentObjectRequest) ValidateAll() error

ValidateAll checks the field values on AddDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddDepartmentObjectRequestMultiError, or nil if none found.

type AddDepartmentObjectRequestMultiError

type AddDepartmentObjectRequestMultiError []error

AddDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by AddDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.

func (AddDepartmentObjectRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AddDepartmentObjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddDepartmentObjectRequestValidationError

type AddDepartmentObjectRequestValidationError struct {
	// contains filtered or unexported fields
}

AddDepartmentObjectRequestValidationError is the validation error returned by AddDepartmentObjectRequest.Validate if the designated constraints aren't met.

func (AddDepartmentObjectRequestValidationError) Cause

Cause function returns cause value.

func (AddDepartmentObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (AddDepartmentObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (AddDepartmentObjectRequestValidationError) Field

Field function returns field value.

func (AddDepartmentObjectRequestValidationError) Key

Key function returns key value.

func (AddDepartmentObjectRequestValidationError) Reason

Reason function returns reason value.

type AddDepartmentReply

type AddDepartmentReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDepartmentReply) Descriptor deprecated

func (*AddDepartmentReply) Descriptor() ([]byte, []int)

Deprecated: Use AddDepartmentReply.ProtoReflect.Descriptor instead.

func (*AddDepartmentReply) GetId

func (x *AddDepartmentReply) GetId() uint32

func (*AddDepartmentReply) ProtoMessage

func (*AddDepartmentReply) ProtoMessage()

func (*AddDepartmentReply) ProtoReflect

func (x *AddDepartmentReply) ProtoReflect() protoreflect.Message

func (*AddDepartmentReply) Reset

func (x *AddDepartmentReply) Reset()

func (*AddDepartmentReply) String

func (x *AddDepartmentReply) String() string

func (*AddDepartmentReply) Validate

func (m *AddDepartmentReply) Validate() error

Validate checks the field values on AddDepartmentReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddDepartmentReply) ValidateAll

func (m *AddDepartmentReply) ValidateAll() error

ValidateAll checks the field values on AddDepartmentReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddDepartmentReplyMultiError, or nil if none found.

type AddDepartmentReplyMultiError

type AddDepartmentReplyMultiError []error

AddDepartmentReplyMultiError is an error wrapping multiple validation errors returned by AddDepartmentReply.ValidateAll() if the designated constraints aren't met.

func (AddDepartmentReplyMultiError) AllErrors

func (m AddDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddDepartmentReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddDepartmentReplyValidationError

type AddDepartmentReplyValidationError struct {
	// contains filtered or unexported fields
}

AddDepartmentReplyValidationError is the validation error returned by AddDepartmentReply.Validate if the designated constraints aren't met.

func (AddDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (AddDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (AddDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (AddDepartmentReplyValidationError) Field

Field function returns field value.

func (AddDepartmentReplyValidationError) Key

Key function returns key value.

func (AddDepartmentReplyValidationError) Reason

Reason function returns reason value.

type AddDepartmentRequest

type AddDepartmentRequest struct {
	ParentId    uint32 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDepartmentRequest) Descriptor deprecated

func (*AddDepartmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddDepartmentRequest.ProtoReflect.Descriptor instead.

func (*AddDepartmentRequest) GetDescription

func (x *AddDepartmentRequest) GetDescription() string

func (*AddDepartmentRequest) GetKeyword

func (x *AddDepartmentRequest) GetKeyword() string

func (*AddDepartmentRequest) GetName

func (x *AddDepartmentRequest) GetName() string

func (*AddDepartmentRequest) GetParentId

func (x *AddDepartmentRequest) GetParentId() uint32

func (*AddDepartmentRequest) ProtoMessage

func (*AddDepartmentRequest) ProtoMessage()

func (*AddDepartmentRequest) ProtoReflect

func (x *AddDepartmentRequest) ProtoReflect() protoreflect.Message

func (*AddDepartmentRequest) Reset

func (x *AddDepartmentRequest) Reset()

func (*AddDepartmentRequest) String

func (x *AddDepartmentRequest) String() string

func (*AddDepartmentRequest) Validate

func (m *AddDepartmentRequest) Validate() error

Validate checks the field values on AddDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AddDepartmentRequest) ValidateAll

func (m *AddDepartmentRequest) ValidateAll() error

ValidateAll checks the field values on AddDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddDepartmentRequestMultiError, or nil if none found.

type AddDepartmentRequestMultiError

type AddDepartmentRequestMultiError []error

AddDepartmentRequestMultiError is an error wrapping multiple validation errors returned by AddDepartmentRequest.ValidateAll() if the designated constraints aren't met.

func (AddDepartmentRequestMultiError) AllErrors

func (m AddDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddDepartmentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddDepartmentRequestValidationError

type AddDepartmentRequestValidationError struct {
	// contains filtered or unexported fields
}

AddDepartmentRequestValidationError is the validation error returned by AddDepartmentRequest.Validate if the designated constraints aren't met.

func (AddDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (AddDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (AddDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (AddDepartmentRequestValidationError) Field

Field function returns field value.

func (AddDepartmentRequestValidationError) Key

Key function returns key value.

func (AddDepartmentRequestValidationError) Reason

Reason function returns reason value.

type AllDepartmentObjectValueReply

type AllDepartmentObjectValueReply struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*AllDepartmentObjectValueReply) Descriptor deprecated

func (*AllDepartmentObjectValueReply) Descriptor() ([]byte, []int)

Deprecated: Use AllDepartmentObjectValueReply.ProtoReflect.Descriptor instead.

func (*AllDepartmentObjectValueReply) GetValues

func (x *AllDepartmentObjectValueReply) GetValues() []string

func (*AllDepartmentObjectValueReply) ProtoMessage

func (*AllDepartmentObjectValueReply) ProtoMessage()

func (*AllDepartmentObjectValueReply) ProtoReflect

func (*AllDepartmentObjectValueReply) Reset

func (x *AllDepartmentObjectValueReply) Reset()

func (*AllDepartmentObjectValueReply) String

func (*AllDepartmentObjectValueReply) Validate

func (m *AllDepartmentObjectValueReply) Validate() error

Validate checks the field values on AllDepartmentObjectValueReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AllDepartmentObjectValueReply) ValidateAll

func (m *AllDepartmentObjectValueReply) ValidateAll() error

ValidateAll checks the field values on AllDepartmentObjectValueReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllDepartmentObjectValueReplyMultiError, or nil if none found.

type AllDepartmentObjectValueReplyMultiError

type AllDepartmentObjectValueReplyMultiError []error

AllDepartmentObjectValueReplyMultiError is an error wrapping multiple validation errors returned by AllDepartmentObjectValueReply.ValidateAll() if the designated constraints aren't met.

func (AllDepartmentObjectValueReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AllDepartmentObjectValueReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllDepartmentObjectValueReplyValidationError

type AllDepartmentObjectValueReplyValidationError struct {
	// contains filtered or unexported fields
}

AllDepartmentObjectValueReplyValidationError is the validation error returned by AllDepartmentObjectValueReply.Validate if the designated constraints aren't met.

func (AllDepartmentObjectValueReplyValidationError) Cause

Cause function returns cause value.

func (AllDepartmentObjectValueReplyValidationError) Error

Error satisfies the builtin error interface

func (AllDepartmentObjectValueReplyValidationError) ErrorName

ErrorName returns error name.

func (AllDepartmentObjectValueReplyValidationError) Field

Field function returns field value.

func (AllDepartmentObjectValueReplyValidationError) Key

Key function returns key value.

func (AllDepartmentObjectValueReplyValidationError) Reason

Reason function returns reason value.

type AllDepartmentObjectValueRequest

type AllDepartmentObjectValueRequest struct {
	ObjectId     uint32 `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	DepartmentId uint32 `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AllDepartmentObjectValueRequest) Descriptor deprecated

func (*AllDepartmentObjectValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use AllDepartmentObjectValueRequest.ProtoReflect.Descriptor instead.

func (*AllDepartmentObjectValueRequest) GetDepartmentId

func (x *AllDepartmentObjectValueRequest) GetDepartmentId() uint32

func (*AllDepartmentObjectValueRequest) GetObjectId

func (x *AllDepartmentObjectValueRequest) GetObjectId() uint32

func (*AllDepartmentObjectValueRequest) ProtoMessage

func (*AllDepartmentObjectValueRequest) ProtoMessage()

func (*AllDepartmentObjectValueRequest) ProtoReflect

func (*AllDepartmentObjectValueRequest) Reset

func (*AllDepartmentObjectValueRequest) String

func (*AllDepartmentObjectValueRequest) Validate

func (m *AllDepartmentObjectValueRequest) Validate() error

Validate checks the field values on AllDepartmentObjectValueRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AllDepartmentObjectValueRequest) ValidateAll

func (m *AllDepartmentObjectValueRequest) ValidateAll() error

ValidateAll checks the field values on AllDepartmentObjectValueRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllDepartmentObjectValueRequestMultiError, or nil if none found.

type AllDepartmentObjectValueRequestMultiError

type AllDepartmentObjectValueRequestMultiError []error

AllDepartmentObjectValueRequestMultiError is an error wrapping multiple validation errors returned by AllDepartmentObjectValueRequest.ValidateAll() if the designated constraints aren't met.

func (AllDepartmentObjectValueRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (AllDepartmentObjectValueRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllDepartmentObjectValueRequestValidationError

type AllDepartmentObjectValueRequestValidationError struct {
	// contains filtered or unexported fields
}

AllDepartmentObjectValueRequestValidationError is the validation error returned by AllDepartmentObjectValueRequest.Validate if the designated constraints aren't met.

func (AllDepartmentObjectValueRequestValidationError) Cause

Cause function returns cause value.

func (AllDepartmentObjectValueRequestValidationError) Error

Error satisfies the builtin error interface

func (AllDepartmentObjectValueRequestValidationError) ErrorName

ErrorName returns error name.

func (AllDepartmentObjectValueRequestValidationError) Field

Field function returns field value.

func (AllDepartmentObjectValueRequestValidationError) Key

Key function returns key value.

func (AllDepartmentObjectValueRequestValidationError) Reason

Reason function returns reason value.

type DeleteDepartmentObjectRequest

type DeleteDepartmentObjectRequest struct {
	ObjectKeyword string `protobuf:"bytes,1,opt,name=object_keyword,json=objectKeyword,proto3" json:"object_keyword,omitempty"`
	Value         string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDepartmentObjectRequest) Descriptor deprecated

func (*DeleteDepartmentObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDepartmentObjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteDepartmentObjectRequest) GetObjectKeyword

func (x *DeleteDepartmentObjectRequest) GetObjectKeyword() string

func (*DeleteDepartmentObjectRequest) GetValue

func (x *DeleteDepartmentObjectRequest) GetValue() string

func (*DeleteDepartmentObjectRequest) ProtoMessage

func (*DeleteDepartmentObjectRequest) ProtoMessage()

func (*DeleteDepartmentObjectRequest) ProtoReflect

func (*DeleteDepartmentObjectRequest) Reset

func (x *DeleteDepartmentObjectRequest) Reset()

func (*DeleteDepartmentObjectRequest) String

func (*DeleteDepartmentObjectRequest) Validate

func (m *DeleteDepartmentObjectRequest) Validate() error

Validate checks the field values on DeleteDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteDepartmentObjectRequest) ValidateAll

func (m *DeleteDepartmentObjectRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDepartmentObjectRequestMultiError, or nil if none found.

type DeleteDepartmentObjectRequestMultiError

type DeleteDepartmentObjectRequestMultiError []error

DeleteDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by DeleteDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteDepartmentObjectRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteDepartmentObjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDepartmentObjectRequestValidationError

type DeleteDepartmentObjectRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteDepartmentObjectRequestValidationError is the validation error returned by DeleteDepartmentObjectRequest.Validate if the designated constraints aren't met.

func (DeleteDepartmentObjectRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDepartmentObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDepartmentObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDepartmentObjectRequestValidationError) Field

Field function returns field value.

func (DeleteDepartmentObjectRequestValidationError) Key

Key function returns key value.

func (DeleteDepartmentObjectRequestValidationError) Reason

Reason function returns reason value.

type DeleteDepartmentRequest

type DeleteDepartmentRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDepartmentRequest) Descriptor deprecated

func (*DeleteDepartmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDepartmentRequest.ProtoReflect.Descriptor instead.

func (*DeleteDepartmentRequest) GetId

func (x *DeleteDepartmentRequest) GetId() uint32

func (*DeleteDepartmentRequest) ProtoMessage

func (*DeleteDepartmentRequest) ProtoMessage()

func (*DeleteDepartmentRequest) ProtoReflect

func (x *DeleteDepartmentRequest) ProtoReflect() protoreflect.Message

func (*DeleteDepartmentRequest) Reset

func (x *DeleteDepartmentRequest) Reset()

func (*DeleteDepartmentRequest) String

func (x *DeleteDepartmentRequest) String() string

func (*DeleteDepartmentRequest) Validate

func (m *DeleteDepartmentRequest) Validate() error

Validate checks the field values on DeleteDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteDepartmentRequest) ValidateAll

func (m *DeleteDepartmentRequest) ValidateAll() error

ValidateAll checks the field values on DeleteDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDepartmentRequestMultiError, or nil if none found.

type DeleteDepartmentRequestMultiError

type DeleteDepartmentRequestMultiError []error

DeleteDepartmentRequestMultiError is an error wrapping multiple validation errors returned by DeleteDepartmentRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteDepartmentRequestMultiError) AllErrors

func (m DeleteDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDepartmentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteDepartmentRequestValidationError

type DeleteDepartmentRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteDepartmentRequestValidationError is the validation error returned by DeleteDepartmentRequest.Validate if the designated constraints aren't met.

func (DeleteDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDepartmentRequestValidationError) Field

Field function returns field value.

func (DeleteDepartmentRequestValidationError) Key

Key function returns key value.

func (DeleteDepartmentRequestValidationError) Reason

Reason function returns reason value.

type Department

type Department struct {
	Id          uint32        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    uint32        `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Name        string        `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string        `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Description string        `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   uint32        `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   uint32        `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Children    []*Department `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*Department) Descriptor deprecated

func (*Department) Descriptor() ([]byte, []int)

Deprecated: Use Department.ProtoReflect.Descriptor instead.

func (*Department) GetChildren

func (x *Department) GetChildren() []*Department

func (*Department) GetCreatedAt

func (x *Department) GetCreatedAt() uint32

func (*Department) GetDescription

func (x *Department) GetDescription() string

func (*Department) GetId

func (x *Department) GetId() uint32

func (*Department) GetKeyword

func (x *Department) GetKeyword() string

func (*Department) GetName

func (x *Department) GetName() string

func (*Department) GetParentId

func (x *Department) GetParentId() uint32

func (*Department) GetUpdatedAt

func (x *Department) GetUpdatedAt() uint32

func (*Department) ProtoMessage

func (*Department) ProtoMessage()

func (*Department) ProtoReflect

func (x *Department) ProtoReflect() protoreflect.Message

func (*Department) Reset

func (x *Department) Reset()

func (*Department) String

func (x *Department) String() string

func (*Department) Validate

func (m *Department) Validate() error

Validate checks the field values on Department with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Department) ValidateAll

func (m *Department) ValidateAll() error

ValidateAll checks the field values on Department with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DepartmentMultiError, or nil if none found.

type DepartmentMultiError

type DepartmentMultiError []error

DepartmentMultiError is an error wrapping multiple validation errors returned by Department.ValidateAll() if the designated constraints aren't met.

func (DepartmentMultiError) AllErrors

func (m DepartmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DepartmentMultiError) Error

func (m DepartmentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DepartmentValidationError

type DepartmentValidationError struct {
	// contains filtered or unexported fields
}

DepartmentValidationError is the validation error returned by Department.Validate if the designated constraints aren't met.

func (DepartmentValidationError) Cause

func (e DepartmentValidationError) Cause() error

Cause function returns cause value.

func (DepartmentValidationError) Error

Error satisfies the builtin error interface

func (DepartmentValidationError) ErrorName

func (e DepartmentValidationError) ErrorName() string

ErrorName returns error name.

func (DepartmentValidationError) Field

Field function returns field value.

func (DepartmentValidationError) Key

Key function returns key value.

func (DepartmentValidationError) Reason

func (e DepartmentValidationError) Reason() string

Reason function returns reason value.

type GetDepartmentReply

type GetDepartmentReply struct {
	Department *Department `protobuf:"bytes,1,opt,name=department,proto3" json:"department,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDepartmentReply) Descriptor deprecated

func (*GetDepartmentReply) Descriptor() ([]byte, []int)

Deprecated: Use GetDepartmentReply.ProtoReflect.Descriptor instead.

func (*GetDepartmentReply) GetDepartment

func (x *GetDepartmentReply) GetDepartment() *Department

func (*GetDepartmentReply) ProtoMessage

func (*GetDepartmentReply) ProtoMessage()

func (*GetDepartmentReply) ProtoReflect

func (x *GetDepartmentReply) ProtoReflect() protoreflect.Message

func (*GetDepartmentReply) Reset

func (x *GetDepartmentReply) Reset()

func (*GetDepartmentReply) String

func (x *GetDepartmentReply) String() string

func (*GetDepartmentReply) Validate

func (m *GetDepartmentReply) Validate() error

Validate checks the field values on GetDepartmentReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetDepartmentReply) ValidateAll

func (m *GetDepartmentReply) ValidateAll() error

ValidateAll checks the field values on GetDepartmentReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDepartmentReplyMultiError, or nil if none found.

type GetDepartmentReplyMultiError

type GetDepartmentReplyMultiError []error

GetDepartmentReplyMultiError is an error wrapping multiple validation errors returned by GetDepartmentReply.ValidateAll() if the designated constraints aren't met.

func (GetDepartmentReplyMultiError) AllErrors

func (m GetDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDepartmentReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetDepartmentReplyValidationError

type GetDepartmentReplyValidationError struct {
	// contains filtered or unexported fields
}

GetDepartmentReplyValidationError is the validation error returned by GetDepartmentReply.Validate if the designated constraints aren't met.

func (GetDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (GetDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDepartmentReplyValidationError) Field

Field function returns field value.

func (GetDepartmentReplyValidationError) Key

Key function returns key value.

func (GetDepartmentReplyValidationError) Reason

Reason function returns reason value.

type GetDepartmentRequest

type GetDepartmentRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDepartmentRequest) Descriptor deprecated

func (*GetDepartmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDepartmentRequest.ProtoReflect.Descriptor instead.

func (*GetDepartmentRequest) GetId

func (x *GetDepartmentRequest) GetId() uint32

func (*GetDepartmentRequest) ProtoMessage

func (*GetDepartmentRequest) ProtoMessage()

func (*GetDepartmentRequest) ProtoReflect

func (x *GetDepartmentRequest) ProtoReflect() protoreflect.Message

func (*GetDepartmentRequest) Reset

func (x *GetDepartmentRequest) Reset()

func (*GetDepartmentRequest) String

func (x *GetDepartmentRequest) String() string

func (*GetDepartmentRequest) Validate

func (m *GetDepartmentRequest) Validate() error

Validate checks the field values on GetDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetDepartmentRequest) ValidateAll

func (m *GetDepartmentRequest) ValidateAll() error

ValidateAll checks the field values on GetDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDepartmentRequestMultiError, or nil if none found.

type GetDepartmentRequestMultiError

type GetDepartmentRequestMultiError []error

GetDepartmentRequestMultiError is an error wrapping multiple validation errors returned by GetDepartmentRequest.ValidateAll() if the designated constraints aren't met.

func (GetDepartmentRequestMultiError) AllErrors

func (m GetDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDepartmentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetDepartmentRequestValidationError

type GetDepartmentRequestValidationError struct {
	// contains filtered or unexported fields
}

GetDepartmentRequestValidationError is the validation error returned by GetDepartmentRequest.Validate if the designated constraints aren't met.

func (GetDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (GetDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDepartmentRequestValidationError) Field

Field function returns field value.

func (GetDepartmentRequestValidationError) Key

Key function returns key value.

func (GetDepartmentRequestValidationError) Reason

Reason function returns reason value.

type GetDepartmentTreeReply

type GetDepartmentTreeReply struct {
	List []*Department `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDepartmentTreeReply) Descriptor deprecated

func (*GetDepartmentTreeReply) Descriptor() ([]byte, []int)

Deprecated: Use GetDepartmentTreeReply.ProtoReflect.Descriptor instead.

func (*GetDepartmentTreeReply) GetList

func (x *GetDepartmentTreeReply) GetList() []*Department

func (*GetDepartmentTreeReply) ProtoMessage

func (*GetDepartmentTreeReply) ProtoMessage()

func (*GetDepartmentTreeReply) ProtoReflect

func (x *GetDepartmentTreeReply) ProtoReflect() protoreflect.Message

func (*GetDepartmentTreeReply) Reset

func (x *GetDepartmentTreeReply) Reset()

func (*GetDepartmentTreeReply) String

func (x *GetDepartmentTreeReply) String() string

func (*GetDepartmentTreeReply) Validate

func (m *GetDepartmentTreeReply) Validate() error

Validate checks the field values on GetDepartmentTreeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetDepartmentTreeReply) ValidateAll

func (m *GetDepartmentTreeReply) ValidateAll() error

ValidateAll checks the field values on GetDepartmentTreeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDepartmentTreeReplyMultiError, or nil if none found.

type GetDepartmentTreeReplyMultiError

type GetDepartmentTreeReplyMultiError []error

GetDepartmentTreeReplyMultiError is an error wrapping multiple validation errors returned by GetDepartmentTreeReply.ValidateAll() if the designated constraints aren't met.

func (GetDepartmentTreeReplyMultiError) AllErrors

func (m GetDepartmentTreeReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDepartmentTreeReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetDepartmentTreeReplyValidationError

type GetDepartmentTreeReplyValidationError struct {
	// contains filtered or unexported fields
}

GetDepartmentTreeReplyValidationError is the validation error returned by GetDepartmentTreeReply.Validate if the designated constraints aren't met.

func (GetDepartmentTreeReplyValidationError) Cause

Cause function returns cause value.

func (GetDepartmentTreeReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDepartmentTreeReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDepartmentTreeReplyValidationError) Field

Field function returns field value.

func (GetDepartmentTreeReplyValidationError) Key

Key function returns key value.

func (GetDepartmentTreeReplyValidationError) Reason

Reason function returns reason value.

type ImportDepartmentObjectRequest

type ImportDepartmentObjectRequest struct {
	ObjectId     uint32   `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	DepartmentId uint32   `protobuf:"varint,2,opt,name=department_id,json=departmentId,proto3" json:"department_id,omitempty"`
	Values       []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportDepartmentObjectRequest) Descriptor deprecated

func (*ImportDepartmentObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportDepartmentObjectRequest.ProtoReflect.Descriptor instead.

func (*ImportDepartmentObjectRequest) GetDepartmentId

func (x *ImportDepartmentObjectRequest) GetDepartmentId() uint32

func (*ImportDepartmentObjectRequest) GetObjectId

func (x *ImportDepartmentObjectRequest) GetObjectId() uint32

func (*ImportDepartmentObjectRequest) GetValues

func (x *ImportDepartmentObjectRequest) GetValues() []string

func (*ImportDepartmentObjectRequest) ProtoMessage

func (*ImportDepartmentObjectRequest) ProtoMessage()

func (*ImportDepartmentObjectRequest) ProtoReflect

func (*ImportDepartmentObjectRequest) Reset

func (x *ImportDepartmentObjectRequest) Reset()

func (*ImportDepartmentObjectRequest) String

func (*ImportDepartmentObjectRequest) Validate

func (m *ImportDepartmentObjectRequest) Validate() error

Validate checks the field values on ImportDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ImportDepartmentObjectRequest) ValidateAll

func (m *ImportDepartmentObjectRequest) ValidateAll() error

ValidateAll checks the field values on ImportDepartmentObjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ImportDepartmentObjectRequestMultiError, or nil if none found.

type ImportDepartmentObjectRequestMultiError

type ImportDepartmentObjectRequestMultiError []error

ImportDepartmentObjectRequestMultiError is an error wrapping multiple validation errors returned by ImportDepartmentObjectRequest.ValidateAll() if the designated constraints aren't met.

func (ImportDepartmentObjectRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ImportDepartmentObjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ImportDepartmentObjectRequestValidationError

type ImportDepartmentObjectRequestValidationError struct {
	// contains filtered or unexported fields
}

ImportDepartmentObjectRequestValidationError is the validation error returned by ImportDepartmentObjectRequest.Validate if the designated constraints aren't met.

func (ImportDepartmentObjectRequestValidationError) Cause

Cause function returns cause value.

func (ImportDepartmentObjectRequestValidationError) Error

Error satisfies the builtin error interface

func (ImportDepartmentObjectRequestValidationError) ErrorName

ErrorName returns error name.

func (ImportDepartmentObjectRequestValidationError) Field

Field function returns field value.

func (ImportDepartmentObjectRequestValidationError) Key

Key function returns key value.

func (ImportDepartmentObjectRequestValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// GetDepartmentTree 获取部门树
	GetDepartmentTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetDepartmentTreeReply, error)
	// AddDepartment 删除部门信息
	AddDepartment(ctx context.Context, in *AddDepartmentRequest, opts ...grpc.CallOption) (*AddDepartmentReply, error)
	// UpdateDepartment 更新部门信息
	UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteDepartment 删除部门信息
	DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// AllDepartmentObject 分页获取资源对象信息值
	AllDepartmentObjectValue(ctx context.Context, in *AllDepartmentObjectValueRequest, opts ...grpc.CallOption) (*AllDepartmentObjectValueReply, error)
	// AddDepartmentObject 删除资源对象信息
	AddDepartmentObject(ctx context.Context, in *AddDepartmentObjectRequest, opts ...grpc.CallOption) (*AddDepartmentObjectReply, error)
	// ImportDepartmentObject 更新资源对象信息
	ImportDepartmentObject(ctx context.Context, in *ImportDepartmentObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteDepartmentObject 删除资源对象信息
	DeleteDepartmentObject(ctx context.Context, in *DeleteDepartmentObjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddDepartment(ctx context.Context, req *AddDepartmentRequest, opts ...http.CallOption) (rsp *AddDepartmentReply, err error)
	AddDepartmentObject(ctx context.Context, req *AddDepartmentObjectRequest, opts ...http.CallOption) (rsp *AddDepartmentObjectReply, err error)
	AllDepartmentObjectValue(ctx context.Context, req *AllDepartmentObjectValueRequest, opts ...http.CallOption) (rsp *AllDepartmentObjectValueReply, err error)
	DeleteDepartment(ctx context.Context, req *DeleteDepartmentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteDepartmentObject(ctx context.Context, req *DeleteDepartmentObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetDepartmentTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetDepartmentTreeReply, err error)
	ImportDepartmentObject(ctx context.Context, req *ImportDepartmentObjectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateDepartment(ctx context.Context, req *UpdateDepartmentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

type ServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ServiceHTTPClientImpl) AddDepartment

func (*ServiceHTTPClientImpl) AddDepartmentObject

func (*ServiceHTTPClientImpl) AllDepartmentObjectValue

func (*ServiceHTTPClientImpl) DeleteDepartment

func (c *ServiceHTTPClientImpl) DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*ServiceHTTPClientImpl) DeleteDepartmentObject

func (c *ServiceHTTPClientImpl) DeleteDepartmentObject(ctx context.Context, in *DeleteDepartmentObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*ServiceHTTPClientImpl) GetDepartmentTree

func (c *ServiceHTTPClientImpl) GetDepartmentTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetDepartmentTreeReply, error)

func (*ServiceHTTPClientImpl) ImportDepartmentObject

func (c *ServiceHTTPClientImpl) ImportDepartmentObject(ctx context.Context, in *ImportDepartmentObjectRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*ServiceHTTPClientImpl) UpdateDepartment

func (c *ServiceHTTPClientImpl) UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...http.CallOption) (*emptypb.Empty, error)

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddDepartment AddDepartment 删除部门信息
	AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error)
	// AddDepartmentObject AddDepartmentObject 删除资源对象信息
	AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error)
	// AllDepartmentObjectValue AllDepartmentObject 分页获取资源对象信息值
	AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error)
	// DeleteDepartment DeleteDepartment 删除部门信息
	DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error)
	// DeleteDepartmentObject DeleteDepartmentObject 删除资源对象信息
	DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
	// GetDepartmentTree GetDepartmentTree 获取部门树
	GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error)
	// ImportDepartmentObject ImportDepartmentObject 更新资源对象信息
	ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error)
	// UpdateDepartment UpdateDepartment 更新部门信息
	UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// GetDepartmentTree 获取部门树
	GetDepartmentTree(context.Context, *emptypb.Empty) (*GetDepartmentTreeReply, error)
	// AddDepartment 删除部门信息
	AddDepartment(context.Context, *AddDepartmentRequest) (*AddDepartmentReply, error)
	// UpdateDepartment 更新部门信息
	UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*emptypb.Empty, error)
	// DeleteDepartment 删除部门信息
	DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*emptypb.Empty, error)
	// AllDepartmentObject 分页获取资源对象信息值
	AllDepartmentObjectValue(context.Context, *AllDepartmentObjectValueRequest) (*AllDepartmentObjectValueReply, error)
	// AddDepartmentObject 删除资源对象信息
	AddDepartmentObject(context.Context, *AddDepartmentObjectRequest) (*AddDepartmentObjectReply, error)
	// ImportDepartmentObject 更新资源对象信息
	ImportDepartmentObject(context.Context, *ImportDepartmentObjectRequest) (*emptypb.Empty, error)
	// DeleteDepartmentObject 删除资源对象信息
	DeleteDepartmentObject(context.Context, *DeleteDepartmentObjectRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddDepartment

func (UnimplementedServiceServer) DeleteDepartment

func (UnimplementedServiceServer) DeleteDepartmentObject

func (UnimplementedServiceServer) GetDepartmentTree

func (UnimplementedServiceServer) ImportDepartmentObject

func (UnimplementedServiceServer) UpdateDepartment

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

type UpdateDepartmentRequest

type UpdateDepartmentRequest struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDepartmentRequest) Descriptor deprecated

func (*UpdateDepartmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDepartmentRequest.ProtoReflect.Descriptor instead.

func (*UpdateDepartmentRequest) GetDescription

func (x *UpdateDepartmentRequest) GetDescription() string

func (*UpdateDepartmentRequest) GetId

func (x *UpdateDepartmentRequest) GetId() uint32

func (*UpdateDepartmentRequest) GetName

func (x *UpdateDepartmentRequest) GetName() string

func (*UpdateDepartmentRequest) GetParentId

func (x *UpdateDepartmentRequest) GetParentId() uint32

func (*UpdateDepartmentRequest) ProtoMessage

func (*UpdateDepartmentRequest) ProtoMessage()

func (*UpdateDepartmentRequest) ProtoReflect

func (x *UpdateDepartmentRequest) ProtoReflect() protoreflect.Message

func (*UpdateDepartmentRequest) Reset

func (x *UpdateDepartmentRequest) Reset()

func (*UpdateDepartmentRequest) String

func (x *UpdateDepartmentRequest) String() string

func (*UpdateDepartmentRequest) Validate

func (m *UpdateDepartmentRequest) Validate() error

Validate checks the field values on UpdateDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateDepartmentRequest) ValidateAll

func (m *UpdateDepartmentRequest) ValidateAll() error

ValidateAll checks the field values on UpdateDepartmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateDepartmentRequestMultiError, or nil if none found.

type UpdateDepartmentRequestMultiError

type UpdateDepartmentRequestMultiError []error

UpdateDepartmentRequestMultiError is an error wrapping multiple validation errors returned by UpdateDepartmentRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateDepartmentRequestMultiError) AllErrors

func (m UpdateDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDepartmentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateDepartmentRequestValidationError

type UpdateDepartmentRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateDepartmentRequestValidationError is the validation error returned by UpdateDepartmentRequest.Validate if the designated constraints aren't met.

func (UpdateDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDepartmentRequestValidationError) Field

Field function returns field value.

func (UpdateDepartmentRequestValidationError) Key

Key function returns key value.

func (UpdateDepartmentRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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