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_PageJob_FullMethodName   = "/manager_job.Service/PageJob"
	Service_AddJob_FullMethodName    = "/manager_job.Service/AddJob"
	Service_UpdateJob_FullMethodName = "/manager_job.Service/UpdateJob"
	Service_DeleteJob_FullMethodName = "/manager_job.Service/DeleteJob"
)
View Source
const OperationServiceAddJob = "/manager_job.Service/AddJob"
View Source
const OperationServiceDeleteJob = "/manager_job.Service/DeleteJob"
View Source
const OperationServicePageJob = "/manager_job.Service/PageJob"
View Source
const OperationServiceUpdateJob = "/manager_job.Service/UpdateJob"

Variables

View Source
var File_manager_job_proto protoreflect.FileDescriptor
View Source
var File_manager_job_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "manager_job.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PageJob",
			Handler:    _Service_PageJob_Handler,
		},
		{
			MethodName: "AddJob",
			Handler:    _Service_AddJob_Handler,
		},
		{
			MethodName: "UpdateJob",
			Handler:    _Service_UpdateJob_Handler,
		},
		{
			MethodName: "DeleteJob",
			Handler:    _Service_DeleteJob_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "manager_job_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 AddJobReply

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

func (*AddJobReply) Descriptor deprecated

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

Deprecated: Use AddJobReply.ProtoReflect.Descriptor instead.

func (*AddJobReply) GetId

func (x *AddJobReply) GetId() uint32

func (*AddJobReply) ProtoMessage

func (*AddJobReply) ProtoMessage()

func (*AddJobReply) ProtoReflect

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

func (*AddJobReply) Reset

func (x *AddJobReply) Reset()

func (*AddJobReply) String

func (x *AddJobReply) String() string

func (*AddJobReply) Validate

func (m *AddJobReply) Validate() error

Validate checks the field values on AddJobReply 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 (*AddJobReply) ValidateAll

func (m *AddJobReply) ValidateAll() error

ValidateAll checks the field values on AddJobReply 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 AddJobReplyMultiError, or nil if none found.

type AddJobReplyMultiError

type AddJobReplyMultiError []error

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

func (AddJobReplyMultiError) AllErrors

func (m AddJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddJobReplyMultiError) Error

func (m AddJobReplyMultiError) Error() string

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

type AddJobReplyValidationError

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

AddJobReplyValidationError is the validation error returned by AddJobReply.Validate if the designated constraints aren't met.

func (AddJobReplyValidationError) Cause

Cause function returns cause value.

func (AddJobReplyValidationError) Error

Error satisfies the builtin error interface

func (AddJobReplyValidationError) ErrorName

func (e AddJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddJobReplyValidationError) Field

Field function returns field value.

func (AddJobReplyValidationError) Key

Key function returns key value.

func (AddJobReplyValidationError) Reason

Reason function returns reason value.

type AddJobRequest

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

func (*AddJobRequest) Descriptor deprecated

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

Deprecated: Use AddJobRequest.ProtoReflect.Descriptor instead.

func (*AddJobRequest) GetDescription

func (x *AddJobRequest) GetDescription() string

func (*AddJobRequest) GetKeyword

func (x *AddJobRequest) GetKeyword() string

func (*AddJobRequest) GetName

func (x *AddJobRequest) GetName() string

func (*AddJobRequest) GetWeight

func (x *AddJobRequest) GetWeight() uint32

func (*AddJobRequest) ProtoMessage

func (*AddJobRequest) ProtoMessage()

func (*AddJobRequest) ProtoReflect

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

func (*AddJobRequest) Reset

func (x *AddJobRequest) Reset()

func (*AddJobRequest) String

func (x *AddJobRequest) String() string

func (*AddJobRequest) Validate

func (m *AddJobRequest) Validate() error

Validate checks the field values on AddJobRequest 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 (*AddJobRequest) ValidateAll

func (m *AddJobRequest) ValidateAll() error

ValidateAll checks the field values on AddJobRequest 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 AddJobRequestMultiError, or nil if none found.

type AddJobRequestMultiError

type AddJobRequestMultiError []error

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

func (AddJobRequestMultiError) AllErrors

func (m AddJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddJobRequestMultiError) Error

func (m AddJobRequestMultiError) Error() string

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

type AddJobRequestValidationError

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

AddJobRequestValidationError is the validation error returned by AddJobRequest.Validate if the designated constraints aren't met.

func (AddJobRequestValidationError) Cause

Cause function returns cause value.

func (AddJobRequestValidationError) Error

Error satisfies the builtin error interface

func (AddJobRequestValidationError) ErrorName

func (e AddJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddJobRequestValidationError) Field

Field function returns field value.

func (AddJobRequestValidationError) Key

Key function returns key value.

func (AddJobRequestValidationError) Reason

Reason function returns reason value.

type DeleteJobRequest

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

func (*DeleteJobRequest) Descriptor deprecated

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

Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.

func (*DeleteJobRequest) GetId

func (x *DeleteJobRequest) GetId() uint32

func (*DeleteJobRequest) ProtoMessage

func (*DeleteJobRequest) ProtoMessage()

func (*DeleteJobRequest) ProtoReflect

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

func (*DeleteJobRequest) Reset

func (x *DeleteJobRequest) Reset()

func (*DeleteJobRequest) String

func (x *DeleteJobRequest) String() string

func (*DeleteJobRequest) Validate

func (m *DeleteJobRequest) Validate() error

Validate checks the field values on DeleteJobRequest 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 (*DeleteJobRequest) ValidateAll

func (m *DeleteJobRequest) ValidateAll() error

ValidateAll checks the field values on DeleteJobRequest 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 DeleteJobRequestMultiError, or nil if none found.

type DeleteJobRequestMultiError

type DeleteJobRequestMultiError []error

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

func (DeleteJobRequestMultiError) AllErrors

func (m DeleteJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteJobRequestMultiError) Error

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

type DeleteJobRequestValidationError

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

DeleteJobRequestValidationError is the validation error returned by DeleteJobRequest.Validate if the designated constraints aren't met.

func (DeleteJobRequestValidationError) Cause

Cause function returns cause value.

func (DeleteJobRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteJobRequestValidationError) Field

Field function returns field value.

func (DeleteJobRequestValidationError) Key

Key function returns key value.

func (DeleteJobRequestValidationError) Reason

Reason function returns reason value.

type GetJobRequest

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

func (*GetJobRequest) Descriptor deprecated

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

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetId

func (x *GetJobRequest) GetId() uint32

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect

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

func (*GetJobRequest) Reset

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String

func (x *GetJobRequest) String() string

func (*GetJobRequest) Validate

func (m *GetJobRequest) Validate() error

Validate checks the field values on GetJobRequest 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 (*GetJobRequest) ValidateAll

func (m *GetJobRequest) ValidateAll() error

ValidateAll checks the field values on GetJobRequest 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 GetJobRequestMultiError, or nil if none found.

type GetJobRequestMultiError

type GetJobRequestMultiError []error

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

func (GetJobRequestMultiError) AllErrors

func (m GetJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetJobRequestMultiError) Error

func (m GetJobRequestMultiError) Error() string

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

type GetJobRequestValidationError

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

GetJobRequestValidationError is the validation error returned by GetJobRequest.Validate if the designated constraints aren't met.

func (GetJobRequestValidationError) Cause

Cause function returns cause value.

func (GetJobRequestValidationError) Error

Error satisfies the builtin error interface

func (GetJobRequestValidationError) ErrorName

func (e GetJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetJobRequestValidationError) Field

Field function returns field value.

func (GetJobRequestValidationError) Key

Key function returns key value.

func (GetJobRequestValidationError) Reason

Reason function returns reason value.

type Job

type Job struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string  `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,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"`
	Weight      *uint32 `protobuf:"varint,5,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	CreatedAt   *uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt   *uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetCreatedAt

func (x *Job) GetCreatedAt() uint32

func (*Job) GetDescription

func (x *Job) GetDescription() string

func (*Job) GetId

func (x *Job) GetId() uint32

func (*Job) GetKeyword

func (x *Job) GetKeyword() string

func (*Job) GetName

func (x *Job) GetName() string

func (*Job) GetUpdatedAt

func (x *Job) GetUpdatedAt() uint32

func (*Job) GetWeight

func (x *Job) GetWeight() uint32

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

func (*Job) Validate

func (m *Job) Validate() error

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

func (*Job) ValidateAll

func (m *Job) ValidateAll() error

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

type JobMultiError

type JobMultiError []error

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

func (JobMultiError) AllErrors

func (m JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobMultiError) Error

func (m JobMultiError) Error() string

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

type JobValidationError

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

JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.

func (JobValidationError) Cause

func (e JobValidationError) Cause() error

Cause function returns cause value.

func (JobValidationError) Error

func (e JobValidationError) Error() string

Error satisfies the builtin error interface

func (JobValidationError) ErrorName

func (e JobValidationError) ErrorName() string

ErrorName returns error name.

func (JobValidationError) Field

func (e JobValidationError) Field() string

Field function returns field value.

func (JobValidationError) Key

func (e JobValidationError) Key() bool

Key function returns key value.

func (JobValidationError) Reason

func (e JobValidationError) Reason() string

Reason function returns reason value.

type PageJobReply

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

func (*PageJobReply) Descriptor deprecated

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

Deprecated: Use PageJobReply.ProtoReflect.Descriptor instead.

func (*PageJobReply) GetList

func (x *PageJobReply) GetList() []*Job

func (*PageJobReply) GetTotal

func (x *PageJobReply) GetTotal() uint32

func (*PageJobReply) ProtoMessage

func (*PageJobReply) ProtoMessage()

func (*PageJobReply) ProtoReflect

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

func (*PageJobReply) Reset

func (x *PageJobReply) Reset()

func (*PageJobReply) String

func (x *PageJobReply) String() string

func (*PageJobReply) Validate

func (m *PageJobReply) Validate() error

Validate checks the field values on PageJobReply 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 (*PageJobReply) ValidateAll

func (m *PageJobReply) ValidateAll() error

ValidateAll checks the field values on PageJobReply 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 PageJobReplyMultiError, or nil if none found.

type PageJobReplyMultiError

type PageJobReplyMultiError []error

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

func (PageJobReplyMultiError) AllErrors

func (m PageJobReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageJobReplyMultiError) Error

func (m PageJobReplyMultiError) Error() string

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

type PageJobReplyValidationError

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

PageJobReplyValidationError is the validation error returned by PageJobReply.Validate if the designated constraints aren't met.

func (PageJobReplyValidationError) Cause

Cause function returns cause value.

func (PageJobReplyValidationError) Error

Error satisfies the builtin error interface

func (PageJobReplyValidationError) ErrorName

func (e PageJobReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageJobReplyValidationError) Field

Field function returns field value.

func (PageJobReplyValidationError) Key

Key function returns key value.

func (PageJobReplyValidationError) Reason

Reason function returns reason value.

type PageJobRequest

type PageJobRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,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 (*PageJobRequest) Descriptor deprecated

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

Deprecated: Use PageJobRequest.ProtoReflect.Descriptor instead.

func (*PageJobRequest) GetKeyword

func (x *PageJobRequest) GetKeyword() string

func (*PageJobRequest) GetName

func (x *PageJobRequest) GetName() string

func (*PageJobRequest) GetPage

func (x *PageJobRequest) GetPage() uint32

func (*PageJobRequest) GetPageSize

func (x *PageJobRequest) GetPageSize() uint32

func (*PageJobRequest) ProtoMessage

func (*PageJobRequest) ProtoMessage()

func (*PageJobRequest) ProtoReflect

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

func (*PageJobRequest) Reset

func (x *PageJobRequest) Reset()

func (*PageJobRequest) String

func (x *PageJobRequest) String() string

func (*PageJobRequest) Validate

func (m *PageJobRequest) Validate() error

Validate checks the field values on PageJobRequest 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 (*PageJobRequest) ValidateAll

func (m *PageJobRequest) ValidateAll() error

ValidateAll checks the field values on PageJobRequest 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 PageJobRequestMultiError, or nil if none found.

type PageJobRequestMultiError

type PageJobRequestMultiError []error

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

func (PageJobRequestMultiError) AllErrors

func (m PageJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageJobRequestMultiError) Error

func (m PageJobRequestMultiError) Error() string

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

type PageJobRequestValidationError

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

PageJobRequestValidationError is the validation error returned by PageJobRequest.Validate if the designated constraints aren't met.

func (PageJobRequestValidationError) Cause

Cause function returns cause value.

func (PageJobRequestValidationError) Error

Error satisfies the builtin error interface

func (PageJobRequestValidationError) ErrorName

func (e PageJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PageJobRequestValidationError) Field

Field function returns field value.

func (PageJobRequestValidationError) Key

Key function returns key value.

func (PageJobRequestValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// PageJob 分页获取职位信息
	PageJob(ctx context.Context, in *PageJobRequest, opts ...grpc.CallOption) (*PageJobReply, error)
	// AddJob 修改职位信息
	AddJob(ctx context.Context, in *AddJobRequest, opts ...grpc.CallOption) (*AddJobReply, error)
	// UpdateJob 更新职位信息
	UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// DeleteJob 删除职位信息
	DeleteJob(ctx context.Context, in *DeleteJobRequest, 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 {
	AddJob(ctx context.Context, req *AddJobRequest, opts ...http.CallOption) (rsp *AddJobReply, err error)
	DeleteJob(ctx context.Context, req *DeleteJobRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	PageJob(ctx context.Context, req *PageJobRequest, opts ...http.CallOption) (rsp *PageJobReply, err error)
	UpdateJob(ctx context.Context, req *UpdateJobRequest, 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) AddJob

func (*ServiceHTTPClientImpl) DeleteJob

func (*ServiceHTTPClientImpl) PageJob

func (*ServiceHTTPClientImpl) UpdateJob

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddJob AddJob 修改职位信息
	AddJob(context.Context, *AddJobRequest) (*AddJobReply, error)
	// DeleteJob DeleteJob 删除职位信息
	DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error)
	// PageJob PageJob 分页获取职位信息
	PageJob(context.Context, *PageJobRequest) (*PageJobReply, error)
	// UpdateJob UpdateJob 更新职位信息
	UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// PageJob 分页获取职位信息
	PageJob(context.Context, *PageJobRequest) (*PageJobReply, error)
	// AddJob 修改职位信息
	AddJob(context.Context, *AddJobRequest) (*AddJobReply, error)
	// UpdateJob 更新职位信息
	UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error)
	// DeleteJob 删除职位信息
	DeleteJob(context.Context, *DeleteJobRequest) (*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) AddJob

func (UnimplementedServiceServer) DeleteJob

func (UnimplementedServiceServer) PageJob

func (UnimplementedServiceServer) UpdateJob

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 UpdateJobRequest

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

func (*UpdateJobRequest) Descriptor deprecated

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

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetDescription

func (x *UpdateJobRequest) GetDescription() string

func (*UpdateJobRequest) GetId

func (x *UpdateJobRequest) GetId() uint32

func (*UpdateJobRequest) GetName

func (x *UpdateJobRequest) GetName() string

func (*UpdateJobRequest) GetWeight

func (x *UpdateJobRequest) GetWeight() uint32

func (*UpdateJobRequest) ProtoMessage

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect

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

func (*UpdateJobRequest) Reset

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String

func (x *UpdateJobRequest) String() string

func (*UpdateJobRequest) Validate

func (m *UpdateJobRequest) Validate() error

Validate checks the field values on UpdateJobRequest 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 (*UpdateJobRequest) ValidateAll

func (m *UpdateJobRequest) ValidateAll() error

ValidateAll checks the field values on UpdateJobRequest 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 UpdateJobRequestMultiError, or nil if none found.

type UpdateJobRequestMultiError

type UpdateJobRequestMultiError []error

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

func (UpdateJobRequestMultiError) AllErrors

func (m UpdateJobRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateJobRequestMultiError) Error

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

type UpdateJobRequestValidationError

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

UpdateJobRequestValidationError is the validation error returned by UpdateJobRequest.Validate if the designated constraints aren't met.

func (UpdateJobRequestValidationError) Cause

Cause function returns cause value.

func (UpdateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateJobRequestValidationError) Field

Field function returns field value.

func (UpdateJobRequestValidationError) Key

Key function returns key value.

func (UpdateJobRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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