v1

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Department_ListDepartment_FullMethodName   = "/manager.api.manager.department.v1.Department/ListDepartment"
	Department_CreateDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/CreateDepartment"
	Department_UpdateDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/UpdateDepartment"
	Department_DeleteDepartment_FullMethodName = "/manager.api.manager.department.v1.Department/DeleteDepartment"
	Department_GetDepartment_FullMethodName    = "/manager.api.manager.department.v1.Department/GetDepartment"
)
View Source
const OperationDepartmentCreateDepartment = "/manager.api.manager.department.v1.Department/CreateDepartment"
View Source
const OperationDepartmentDeleteDepartment = "/manager.api.manager.department.v1.Department/DeleteDepartment"
View Source
const OperationDepartmentGetDepartment = "/manager.api.manager.department.v1.Department/GetDepartment"
View Source
const OperationDepartmentListDepartment = "/manager.api.manager.department.v1.Department/ListDepartment"
View Source
const OperationDepartmentUpdateDepartment = "/manager.api.manager.department.v1.Department/UpdateDepartment"

Variables

View Source
var Department_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager.api.manager.department.v1.Department",
	HandlerType: (*DepartmentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDepartment",
			Handler:    _Department_ListDepartment_Handler,
		},
		{
			MethodName: "CreateDepartment",
			Handler:    _Department_CreateDepartment_Handler,
		},
		{
			MethodName: "UpdateDepartment",
			Handler:    _Department_UpdateDepartment_Handler,
		},
		{
			MethodName: "DeleteDepartment",
			Handler:    _Department_DeleteDepartment_Handler,
		},
		{
			MethodName: "GetDepartment",
			Handler:    _Department_GetDepartment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/manager/department/manager_department_service.proto",
}

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

View Source
var File_api_manager_department_manager_department_proto protoreflect.FileDescriptor
View Source
var File_api_manager_department_manager_department_service_proto protoreflect.FileDescriptor

Functions

func RegisterDepartmentHTTPServer

func RegisterDepartmentHTTPServer(s *http.Server, srv DepartmentHTTPServer)

func RegisterDepartmentServer

func RegisterDepartmentServer(s grpc.ServiceRegistrar, srv DepartmentServer)

Types

type CreateDepartmentReply

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

func (*CreateDepartmentReply) Descriptor deprecated

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

Deprecated: Use CreateDepartmentReply.ProtoReflect.Descriptor instead.

func (*CreateDepartmentReply) GetId

func (x *CreateDepartmentReply) GetId() uint32

func (*CreateDepartmentReply) ProtoMessage

func (*CreateDepartmentReply) ProtoMessage()

func (*CreateDepartmentReply) ProtoReflect

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

func (*CreateDepartmentReply) Reset

func (x *CreateDepartmentReply) Reset()

func (*CreateDepartmentReply) String

func (x *CreateDepartmentReply) String() string

func (*CreateDepartmentReply) Validate

func (m *CreateDepartmentReply) Validate() error

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

func (*CreateDepartmentReply) ValidateAll

func (m *CreateDepartmentReply) ValidateAll() error

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

type CreateDepartmentReplyMultiError

type CreateDepartmentReplyMultiError []error

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

func (CreateDepartmentReplyMultiError) AllErrors

func (m CreateDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDepartmentReplyMultiError) Error

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

type CreateDepartmentReplyValidationError

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

CreateDepartmentReplyValidationError is the validation error returned by CreateDepartmentReply.Validate if the designated constraints aren't met.

func (CreateDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (CreateDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateDepartmentReplyValidationError) Field

Field function returns field value.

func (CreateDepartmentReplyValidationError) Key

Key function returns key value.

func (CreateDepartmentReplyValidationError) Reason

Reason function returns reason value.

type CreateDepartmentRequest

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

func (*CreateDepartmentRequest) Descriptor deprecated

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

Deprecated: Use CreateDepartmentRequest.ProtoReflect.Descriptor instead.

func (*CreateDepartmentRequest) GetDescription

func (x *CreateDepartmentRequest) GetDescription() string

func (*CreateDepartmentRequest) GetKeyword

func (x *CreateDepartmentRequest) GetKeyword() string

func (*CreateDepartmentRequest) GetName

func (x *CreateDepartmentRequest) GetName() string

func (*CreateDepartmentRequest) GetParentId

func (x *CreateDepartmentRequest) GetParentId() uint32

func (*CreateDepartmentRequest) ProtoMessage

func (*CreateDepartmentRequest) ProtoMessage()

func (*CreateDepartmentRequest) ProtoReflect

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

func (*CreateDepartmentRequest) Reset

func (x *CreateDepartmentRequest) Reset()

func (*CreateDepartmentRequest) String

func (x *CreateDepartmentRequest) String() string

func (*CreateDepartmentRequest) Validate

func (m *CreateDepartmentRequest) Validate() error

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

func (*CreateDepartmentRequest) ValidateAll

func (m *CreateDepartmentRequest) ValidateAll() error

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

type CreateDepartmentRequestMultiError

type CreateDepartmentRequestMultiError []error

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

func (CreateDepartmentRequestMultiError) AllErrors

func (m CreateDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDepartmentRequestMultiError) Error

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

type CreateDepartmentRequestValidationError

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

CreateDepartmentRequestValidationError is the validation error returned by CreateDepartmentRequest.Validate if the designated constraints aren't met.

func (CreateDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (CreateDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDepartmentRequestValidationError) Field

Field function returns field value.

func (CreateDepartmentRequestValidationError) Key

Key function returns key value.

func (CreateDepartmentRequestValidationError) Reason

Reason function returns reason value.

type DeleteDepartmentReply

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

func (*DeleteDepartmentReply) Descriptor deprecated

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

Deprecated: Use DeleteDepartmentReply.ProtoReflect.Descriptor instead.

func (*DeleteDepartmentReply) GetTotal

func (x *DeleteDepartmentReply) GetTotal() uint32

func (*DeleteDepartmentReply) ProtoMessage

func (*DeleteDepartmentReply) ProtoMessage()

func (*DeleteDepartmentReply) ProtoReflect

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

func (*DeleteDepartmentReply) Reset

func (x *DeleteDepartmentReply) Reset()

func (*DeleteDepartmentReply) String

func (x *DeleteDepartmentReply) String() string

func (*DeleteDepartmentReply) Validate

func (m *DeleteDepartmentReply) Validate() error

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

func (*DeleteDepartmentReply) ValidateAll

func (m *DeleteDepartmentReply) ValidateAll() error

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

type DeleteDepartmentReplyMultiError

type DeleteDepartmentReplyMultiError []error

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

func (DeleteDepartmentReplyMultiError) AllErrors

func (m DeleteDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDepartmentReplyMultiError) Error

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

type DeleteDepartmentReplyValidationError

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

DeleteDepartmentReplyValidationError is the validation error returned by DeleteDepartmentReply.Validate if the designated constraints aren't met.

func (DeleteDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (DeleteDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteDepartmentReplyValidationError) Field

Field function returns field value.

func (DeleteDepartmentReplyValidationError) Key

Key function returns key value.

func (DeleteDepartmentReplyValidationError) Reason

Reason function returns reason value.

type DeleteDepartmentRequest

type DeleteDepartmentRequest struct {
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDepartmentRequest) Descriptor deprecated

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

Deprecated: Use DeleteDepartmentRequest.ProtoReflect.Descriptor instead.

func (*DeleteDepartmentRequest) GetIds

func (x *DeleteDepartmentRequest) GetIds() []uint32

func (*DeleteDepartmentRequest) ProtoMessage

func (*DeleteDepartmentRequest) ProtoMessage()

func (*DeleteDepartmentRequest) ProtoReflect

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

func (*DeleteDepartmentRequest) Reset

func (x *DeleteDepartmentRequest) Reset()

func (*DeleteDepartmentRequest) String

func (x *DeleteDepartmentRequest) String() string

func (*DeleteDepartmentRequest) Validate

func (m *DeleteDepartmentRequest) Validate() error

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

func (*DeleteDepartmentRequest) ValidateAll

func (m *DeleteDepartmentRequest) ValidateAll() error

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

type DeleteDepartmentRequestMultiError

type DeleteDepartmentRequestMultiError []error

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

func (DeleteDepartmentRequestMultiError) AllErrors

func (m DeleteDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDepartmentRequestMultiError) Error

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 DepartmentClient

type DepartmentClient interface {
	// ListDepartment 获取部门信息列表
	ListDepartment(ctx context.Context, in *ListDepartmentRequest, opts ...grpc.CallOption) (*ListDepartmentReply, error)
	// CreateDepartment 创建部门信息
	CreateDepartment(ctx context.Context, in *CreateDepartmentRequest, opts ...grpc.CallOption) (*CreateDepartmentReply, error)
	// UpdateDepartment 更新部门信息
	UpdateDepartment(ctx context.Context, in *UpdateDepartmentRequest, opts ...grpc.CallOption) (*UpdateDepartmentReply, error)
	// DeleteDepartment 删除部门信息
	DeleteDepartment(ctx context.Context, in *DeleteDepartmentRequest, opts ...grpc.CallOption) (*DeleteDepartmentReply, error)
	// GetDepartment 获取指定的部门信息
	GetDepartment(ctx context.Context, in *GetDepartmentRequest, opts ...grpc.CallOption) (*GetDepartmentReply, error)
}

DepartmentClient is the client API for Department service.

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

func NewDepartmentClient

func NewDepartmentClient(cc grpc.ClientConnInterface) DepartmentClient

type DepartmentHTTPClient

type DepartmentHTTPClient interface {
	CreateDepartment(ctx context.Context, req *CreateDepartmentRequest, opts ...http.CallOption) (rsp *CreateDepartmentReply, err error)
	DeleteDepartment(ctx context.Context, req *DeleteDepartmentRequest, opts ...http.CallOption) (rsp *DeleteDepartmentReply, err error)
	GetDepartment(ctx context.Context, req *GetDepartmentRequest, opts ...http.CallOption) (rsp *GetDepartmentReply, err error)
	ListDepartment(ctx context.Context, req *ListDepartmentRequest, opts ...http.CallOption) (rsp *ListDepartmentReply, err error)
	UpdateDepartment(ctx context.Context, req *UpdateDepartmentRequest, opts ...http.CallOption) (rsp *UpdateDepartmentReply, err error)
}

func NewDepartmentHTTPClient

func NewDepartmentHTTPClient(client *http.Client) DepartmentHTTPClient

type DepartmentHTTPClientImpl

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

func (*DepartmentHTTPClientImpl) CreateDepartment

func (*DepartmentHTTPClientImpl) DeleteDepartment

func (*DepartmentHTTPClientImpl) GetDepartment

func (*DepartmentHTTPClientImpl) ListDepartment

func (*DepartmentHTTPClientImpl) UpdateDepartment

type DepartmentHTTPServer

type DepartmentHTTPServer interface {
	// CreateDepartment CreateDepartment 创建部门信息
	CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error)
	// DeleteDepartment DeleteDepartment 删除部门信息
	DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error)
	// GetDepartment GetDepartment 获取指定的部门信息
	GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error)
	// ListDepartment ListDepartment 获取部门信息列表
	ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error)
	// UpdateDepartment UpdateDepartment 更新部门信息
	UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error)
}

type DepartmentServer

type DepartmentServer interface {
	// ListDepartment 获取部门信息列表
	ListDepartment(context.Context, *ListDepartmentRequest) (*ListDepartmentReply, error)
	// CreateDepartment 创建部门信息
	CreateDepartment(context.Context, *CreateDepartmentRequest) (*CreateDepartmentReply, error)
	// UpdateDepartment 更新部门信息
	UpdateDepartment(context.Context, *UpdateDepartmentRequest) (*UpdateDepartmentReply, error)
	// DeleteDepartment 删除部门信息
	DeleteDepartment(context.Context, *DeleteDepartmentRequest) (*DeleteDepartmentReply, error)
	// GetDepartment 获取指定的部门信息
	GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentReply, error)
	// contains filtered or unexported methods
}

DepartmentServer is the server API for Department service. All implementations must embed UnimplementedDepartmentServer for forward compatibility

type GetDepartmentReply

type GetDepartmentReply struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    uint32  `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Keyword     string  `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"`
	CreatedAt   uint32  `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32  `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDepartmentReply) Descriptor deprecated

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

Deprecated: Use GetDepartmentReply.ProtoReflect.Descriptor instead.

func (*GetDepartmentReply) GetCreatedAt

func (x *GetDepartmentReply) GetCreatedAt() uint32

func (*GetDepartmentReply) GetDescription

func (x *GetDepartmentReply) GetDescription() string

func (*GetDepartmentReply) GetId

func (x *GetDepartmentReply) GetId() uint32

func (*GetDepartmentReply) GetKeyword

func (x *GetDepartmentReply) GetKeyword() string

func (*GetDepartmentReply) GetName

func (x *GetDepartmentReply) GetName() string

func (*GetDepartmentReply) GetParentId

func (x *GetDepartmentReply) GetParentId() uint32

func (*GetDepartmentReply) GetUpdatedAt

func (x *GetDepartmentReply) GetUpdatedAt() uint32

func (*GetDepartmentReply) ProtoMessage

func (*GetDepartmentReply) ProtoMessage()

func (*GetDepartmentReply) ProtoReflect

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

func (*GetDepartmentReply) Reset

func (x *GetDepartmentReply) Reset()

func (*GetDepartmentReply) String

func (x *GetDepartmentReply) String() string

func (*GetDepartmentReply) Validate

func (m *GetDepartmentReply) Validate() error

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

func (*GetDepartmentReply) ValidateAll

func (m *GetDepartmentReply) ValidateAll() error

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

type GetDepartmentReplyMultiError

type GetDepartmentReplyMultiError []error

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

func (GetDepartmentReplyMultiError) AllErrors

func (m GetDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDepartmentReplyMultiError) Error

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,oneof" json:"id,omitempty"`
	Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDepartmentRequest) Descriptor deprecated

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

Deprecated: Use GetDepartmentRequest.ProtoReflect.Descriptor instead.

func (*GetDepartmentRequest) GetId

func (x *GetDepartmentRequest) GetId() uint32

func (*GetDepartmentRequest) GetKeyword

func (x *GetDepartmentRequest) GetKeyword() string

func (*GetDepartmentRequest) ProtoMessage

func (*GetDepartmentRequest) ProtoMessage()

func (*GetDepartmentRequest) ProtoReflect

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

func (*GetDepartmentRequest) Reset

func (x *GetDepartmentRequest) Reset()

func (*GetDepartmentRequest) String

func (x *GetDepartmentRequest) String() string

func (*GetDepartmentRequest) Validate

func (m *GetDepartmentRequest) Validate() error

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

func (*GetDepartmentRequest) ValidateAll

func (m *GetDepartmentRequest) ValidateAll() error

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

type GetDepartmentRequestMultiError

type GetDepartmentRequestMultiError []error

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

func (GetDepartmentRequestMultiError) AllErrors

func (m GetDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDepartmentRequestMultiError) Error

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 ListDepartmentReply

type ListDepartmentReply struct {
	Total uint32                            `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListDepartmentReply_Department `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDepartmentReply) Descriptor deprecated

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

Deprecated: Use ListDepartmentReply.ProtoReflect.Descriptor instead.

func (*ListDepartmentReply) GetList

func (*ListDepartmentReply) GetTotal

func (x *ListDepartmentReply) GetTotal() uint32

func (*ListDepartmentReply) ProtoMessage

func (*ListDepartmentReply) ProtoMessage()

func (*ListDepartmentReply) ProtoReflect

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

func (*ListDepartmentReply) Reset

func (x *ListDepartmentReply) Reset()

func (*ListDepartmentReply) String

func (x *ListDepartmentReply) String() string

func (*ListDepartmentReply) Validate

func (m *ListDepartmentReply) Validate() error

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

func (*ListDepartmentReply) ValidateAll

func (m *ListDepartmentReply) ValidateAll() error

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

type ListDepartmentReplyMultiError

type ListDepartmentReplyMultiError []error

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

func (ListDepartmentReplyMultiError) AllErrors

func (m ListDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDepartmentReplyMultiError) Error

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

type ListDepartmentReplyValidationError

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

ListDepartmentReplyValidationError is the validation error returned by ListDepartmentReply.Validate if the designated constraints aren't met.

func (ListDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (ListDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (ListDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (ListDepartmentReplyValidationError) Field

Field function returns field value.

func (ListDepartmentReplyValidationError) Key

Key function returns key value.

func (ListDepartmentReplyValidationError) Reason

Reason function returns reason value.

type ListDepartmentReply_Department

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

func (*ListDepartmentReply_Department) Descriptor deprecated

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

Deprecated: Use ListDepartmentReply_Department.ProtoReflect.Descriptor instead.

func (*ListDepartmentReply_Department) GetChildren

func (*ListDepartmentReply_Department) GetCreatedAt

func (x *ListDepartmentReply_Department) GetCreatedAt() uint32

func (*ListDepartmentReply_Department) GetDescription

func (x *ListDepartmentReply_Department) GetDescription() string

func (*ListDepartmentReply_Department) GetId

func (*ListDepartmentReply_Department) GetKeyword

func (x *ListDepartmentReply_Department) GetKeyword() string

func (*ListDepartmentReply_Department) GetName

func (*ListDepartmentReply_Department) GetParentId

func (x *ListDepartmentReply_Department) GetParentId() uint32

func (*ListDepartmentReply_Department) GetUpdatedAt

func (x *ListDepartmentReply_Department) GetUpdatedAt() uint32

func (*ListDepartmentReply_Department) ProtoMessage

func (*ListDepartmentReply_Department) ProtoMessage()

func (*ListDepartmentReply_Department) ProtoReflect

func (*ListDepartmentReply_Department) Reset

func (x *ListDepartmentReply_Department) Reset()

func (*ListDepartmentReply_Department) String

func (*ListDepartmentReply_Department) Validate

func (m *ListDepartmentReply_Department) Validate() error

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

func (*ListDepartmentReply_Department) ValidateAll

func (m *ListDepartmentReply_Department) ValidateAll() error

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

type ListDepartmentReply_DepartmentMultiError

type ListDepartmentReply_DepartmentMultiError []error

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

func (ListDepartmentReply_DepartmentMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListDepartmentReply_DepartmentMultiError) Error

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

type ListDepartmentReply_DepartmentValidationError

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

ListDepartmentReply_DepartmentValidationError is the validation error returned by ListDepartmentReply_Department.Validate if the designated constraints aren't met.

func (ListDepartmentReply_DepartmentValidationError) Cause

Cause function returns cause value.

func (ListDepartmentReply_DepartmentValidationError) Error

Error satisfies the builtin error interface

func (ListDepartmentReply_DepartmentValidationError) ErrorName

ErrorName returns error name.

func (ListDepartmentReply_DepartmentValidationError) Field

Field function returns field value.

func (ListDepartmentReply_DepartmentValidationError) Key

Key function returns key value.

func (ListDepartmentReply_DepartmentValidationError) Reason

Reason function returns reason value.

type ListDepartmentRequest

type ListDepartmentRequest struct {
	Order   *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	Name    *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDepartmentRequest) Descriptor deprecated

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

Deprecated: Use ListDepartmentRequest.ProtoReflect.Descriptor instead.

func (*ListDepartmentRequest) GetKeyword

func (x *ListDepartmentRequest) GetKeyword() string

func (*ListDepartmentRequest) GetName

func (x *ListDepartmentRequest) GetName() string

func (*ListDepartmentRequest) GetOrder

func (x *ListDepartmentRequest) GetOrder() string

func (*ListDepartmentRequest) GetOrderBy

func (x *ListDepartmentRequest) GetOrderBy() string

func (*ListDepartmentRequest) ProtoMessage

func (*ListDepartmentRequest) ProtoMessage()

func (*ListDepartmentRequest) ProtoReflect

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

func (*ListDepartmentRequest) Reset

func (x *ListDepartmentRequest) Reset()

func (*ListDepartmentRequest) String

func (x *ListDepartmentRequest) String() string

func (*ListDepartmentRequest) Validate

func (m *ListDepartmentRequest) Validate() error

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

func (*ListDepartmentRequest) ValidateAll

func (m *ListDepartmentRequest) ValidateAll() error

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

type ListDepartmentRequestMultiError

type ListDepartmentRequestMultiError []error

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

func (ListDepartmentRequestMultiError) AllErrors

func (m ListDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDepartmentRequestMultiError) Error

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

type ListDepartmentRequestValidationError

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

ListDepartmentRequestValidationError is the validation error returned by ListDepartmentRequest.Validate if the designated constraints aren't met.

func (ListDepartmentRequestValidationError) Cause

Cause function returns cause value.

func (ListDepartmentRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDepartmentRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDepartmentRequestValidationError) Field

Field function returns field value.

func (ListDepartmentRequestValidationError) Key

Key function returns key value.

func (ListDepartmentRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedDepartmentServer

type UnimplementedDepartmentServer struct {
}

UnimplementedDepartmentServer must be embedded to have forward compatible implementations.

func (UnimplementedDepartmentServer) CreateDepartment

func (UnimplementedDepartmentServer) DeleteDepartment

func (UnimplementedDepartmentServer) GetDepartment

func (UnimplementedDepartmentServer) ListDepartment

func (UnimplementedDepartmentServer) UpdateDepartment

type UnsafeDepartmentServer

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

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

type UpdateDepartmentReply

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

func (*UpdateDepartmentReply) Descriptor deprecated

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

Deprecated: Use UpdateDepartmentReply.ProtoReflect.Descriptor instead.

func (*UpdateDepartmentReply) ProtoMessage

func (*UpdateDepartmentReply) ProtoMessage()

func (*UpdateDepartmentReply) ProtoReflect

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

func (*UpdateDepartmentReply) Reset

func (x *UpdateDepartmentReply) Reset()

func (*UpdateDepartmentReply) String

func (x *UpdateDepartmentReply) String() string

func (*UpdateDepartmentReply) Validate

func (m *UpdateDepartmentReply) Validate() error

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

func (*UpdateDepartmentReply) ValidateAll

func (m *UpdateDepartmentReply) ValidateAll() error

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

type UpdateDepartmentReplyMultiError

type UpdateDepartmentReplyMultiError []error

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

func (UpdateDepartmentReplyMultiError) AllErrors

func (m UpdateDepartmentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDepartmentReplyMultiError) Error

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

type UpdateDepartmentReplyValidationError

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

UpdateDepartmentReplyValidationError is the validation error returned by UpdateDepartmentReply.Validate if the designated constraints aren't met.

func (UpdateDepartmentReplyValidationError) Cause

Cause function returns cause value.

func (UpdateDepartmentReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateDepartmentReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateDepartmentReplyValidationError) Field

Field function returns field value.

func (UpdateDepartmentReplyValidationError) Key

Key function returns key value.

func (UpdateDepartmentReplyValidationError) Reason

Reason function returns reason value.

type UpdateDepartmentRequest

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

func (*UpdateDepartmentRequest) Descriptor deprecated

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

Deprecated: Use UpdateDepartmentRequest.ProtoReflect.Descriptor instead.

func (*UpdateDepartmentRequest) GetDescription

func (x *UpdateDepartmentRequest) GetDescription() string

func (*UpdateDepartmentRequest) GetId

func (x *UpdateDepartmentRequest) GetId() uint32

func (*UpdateDepartmentRequest) GetName

func (x *UpdateDepartmentRequest) GetName() string

func (*UpdateDepartmentRequest) GetParentId

func (x *UpdateDepartmentRequest) GetParentId() uint32

func (*UpdateDepartmentRequest) ProtoMessage

func (*UpdateDepartmentRequest) ProtoMessage()

func (*UpdateDepartmentRequest) ProtoReflect

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

func (*UpdateDepartmentRequest) Reset

func (x *UpdateDepartmentRequest) Reset()

func (*UpdateDepartmentRequest) String

func (x *UpdateDepartmentRequest) String() string

func (*UpdateDepartmentRequest) Validate

func (m *UpdateDepartmentRequest) Validate() error

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

func (*UpdateDepartmentRequest) ValidateAll

func (m *UpdateDepartmentRequest) ValidateAll() error

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

type UpdateDepartmentRequestMultiError

type UpdateDepartmentRequestMultiError []error

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

func (UpdateDepartmentRequestMultiError) AllErrors

func (m UpdateDepartmentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDepartmentRequestMultiError) Error

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