Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddBusinessRequest
- func (*AddBusinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddBusinessRequest) GetDescription() string
- func (x *AddBusinessRequest) GetKeyword() string
- func (x *AddBusinessRequest) GetServerId() uint32
- func (x *AddBusinessRequest) GetType() string
- func (*AddBusinessRequest) ProtoMessage()
- func (x *AddBusinessRequest) ProtoReflect() protoreflect.Message
- func (x *AddBusinessRequest) Reset()
- func (x *AddBusinessRequest) String() string
- func (m *AddBusinessRequest) Validate() error
- func (m *AddBusinessRequest) ValidateAll() error
- type AddBusinessRequestMultiError
- type AddBusinessRequestValidationError
- func (e AddBusinessRequestValidationError) Cause() error
- func (e AddBusinessRequestValidationError) Error() string
- func (e AddBusinessRequestValidationError) ErrorName() string
- func (e AddBusinessRequestValidationError) Field() string
- func (e AddBusinessRequestValidationError) Key() bool
- func (e AddBusinessRequestValidationError) Reason() string
- type Business
- func (*Business) Descriptor() ([]byte, []int)deprecated
- func (x *Business) GetCreatedAt() uint32
- func (x *Business) GetDescription() string
- func (x *Business) GetId() uint32
- func (x *Business) GetKeyword() string
- func (x *Business) GetServerId() uint32
- func (x *Business) GetType() string
- func (x *Business) GetUpdatedAt() uint32
- func (*Business) ProtoMessage()
- func (x *Business) ProtoReflect() protoreflect.Message
- func (x *Business) Reset()
- func (x *Business) String() string
- func (m *Business) Validate() error
- func (m *Business) ValidateAll() error
- type BusinessMultiError
- type BusinessValidationError
- type DeleteBusinessRequest
- func (*DeleteBusinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBusinessRequest) GetId() uint32
- func (*DeleteBusinessRequest) ProtoMessage()
- func (x *DeleteBusinessRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBusinessRequest) Reset()
- func (x *DeleteBusinessRequest) String() string
- func (m *DeleteBusinessRequest) Validate() error
- func (m *DeleteBusinessRequest) ValidateAll() error
- type DeleteBusinessRequestMultiError
- type DeleteBusinessRequestValidationError
- func (e DeleteBusinessRequestValidationError) Cause() error
- func (e DeleteBusinessRequestValidationError) Error() string
- func (e DeleteBusinessRequestValidationError) ErrorName() string
- func (e DeleteBusinessRequestValidationError) Field() string
- func (e DeleteBusinessRequestValidationError) Key() bool
- func (e DeleteBusinessRequestValidationError) Reason() string
- type GetBusinessValuesReply
- func (*GetBusinessValuesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBusinessValuesReply) GetList() []*GetBusinessValuesReply_BusinessValue
- func (*GetBusinessValuesReply) ProtoMessage()
- func (x *GetBusinessValuesReply) ProtoReflect() protoreflect.Message
- func (x *GetBusinessValuesReply) Reset()
- func (x *GetBusinessValuesReply) String() string
- func (m *GetBusinessValuesReply) Validate() error
- func (m *GetBusinessValuesReply) ValidateAll() error
- type GetBusinessValuesReplyMultiError
- type GetBusinessValuesReplyValidationError
- func (e GetBusinessValuesReplyValidationError) Cause() error
- func (e GetBusinessValuesReplyValidationError) Error() string
- func (e GetBusinessValuesReplyValidationError) ErrorName() string
- func (e GetBusinessValuesReplyValidationError) Field() string
- func (e GetBusinessValuesReplyValidationError) Key() bool
- func (e GetBusinessValuesReplyValidationError) Reason() string
- type GetBusinessValuesReply_BusinessValue
- func (*GetBusinessValuesReply_BusinessValue) Descriptor() ([]byte, []int)deprecated
- func (x *GetBusinessValuesReply_BusinessValue) GetBusinessId() uint32
- func (x *GetBusinessValuesReply_BusinessValue) GetCreatedAt() uint32
- func (x *GetBusinessValuesReply_BusinessValue) GetEnvId() uint32
- func (x *GetBusinessValuesReply_BusinessValue) GetId() uint32
- func (x *GetBusinessValuesReply_BusinessValue) GetUpdatedAt() uint32
- func (x *GetBusinessValuesReply_BusinessValue) GetValue() string
- func (*GetBusinessValuesReply_BusinessValue) ProtoMessage()
- func (x *GetBusinessValuesReply_BusinessValue) ProtoReflect() protoreflect.Message
- func (x *GetBusinessValuesReply_BusinessValue) Reset()
- func (x *GetBusinessValuesReply_BusinessValue) String() string
- func (m *GetBusinessValuesReply_BusinessValue) Validate() error
- func (m *GetBusinessValuesReply_BusinessValue) ValidateAll() error
- type GetBusinessValuesReply_BusinessValueMultiError
- type GetBusinessValuesReply_BusinessValueValidationError
- func (e GetBusinessValuesReply_BusinessValueValidationError) Cause() error
- func (e GetBusinessValuesReply_BusinessValueValidationError) Error() string
- func (e GetBusinessValuesReply_BusinessValueValidationError) ErrorName() string
- func (e GetBusinessValuesReply_BusinessValueValidationError) Field() string
- func (e GetBusinessValuesReply_BusinessValueValidationError) Key() bool
- func (e GetBusinessValuesReply_BusinessValueValidationError) Reason() string
- type GetBusinessValuesRequest
- func (*GetBusinessValuesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBusinessValuesRequest) GetBusinessId() uint32
- func (*GetBusinessValuesRequest) ProtoMessage()
- func (x *GetBusinessValuesRequest) ProtoReflect() protoreflect.Message
- func (x *GetBusinessValuesRequest) Reset()
- func (x *GetBusinessValuesRequest) String() string
- func (m *GetBusinessValuesRequest) Validate() error
- func (m *GetBusinessValuesRequest) ValidateAll() error
- type GetBusinessValuesRequestMultiError
- type GetBusinessValuesRequestValidationError
- func (e GetBusinessValuesRequestValidationError) Cause() error
- func (e GetBusinessValuesRequestValidationError) Error() string
- func (e GetBusinessValuesRequestValidationError) ErrorName() string
- func (e GetBusinessValuesRequestValidationError) Field() string
- func (e GetBusinessValuesRequestValidationError) Key() bool
- func (e GetBusinessValuesRequestValidationError) Reason() string
- type PageBusinessReply
- func (*PageBusinessReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageBusinessReply) GetList() []*Business
- func (x *PageBusinessReply) GetTotal() uint32
- func (*PageBusinessReply) ProtoMessage()
- func (x *PageBusinessReply) ProtoReflect() protoreflect.Message
- func (x *PageBusinessReply) Reset()
- func (x *PageBusinessReply) String() string
- func (m *PageBusinessReply) Validate() error
- func (m *PageBusinessReply) ValidateAll() error
- type PageBusinessReplyMultiError
- type PageBusinessReplyValidationError
- func (e PageBusinessReplyValidationError) Cause() error
- func (e PageBusinessReplyValidationError) Error() string
- func (e PageBusinessReplyValidationError) ErrorName() string
- func (e PageBusinessReplyValidationError) Field() string
- func (e PageBusinessReplyValidationError) Key() bool
- func (e PageBusinessReplyValidationError) Reason() string
- type PageBusinessRequest
- func (*PageBusinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageBusinessRequest) GetKeyword() string
- func (x *PageBusinessRequest) GetPage() uint32
- func (x *PageBusinessRequest) GetPageSize() uint32
- func (x *PageBusinessRequest) GetServerId() uint32
- func (x *PageBusinessRequest) GetTag() string
- func (*PageBusinessRequest) ProtoMessage()
- func (x *PageBusinessRequest) ProtoReflect() protoreflect.Message
- func (x *PageBusinessRequest) Reset()
- func (x *PageBusinessRequest) String() string
- func (m *PageBusinessRequest) Validate() error
- func (m *PageBusinessRequest) ValidateAll() error
- type PageBusinessRequestMultiError
- type PageBusinessRequestValidationError
- func (e PageBusinessRequestValidationError) Cause() error
- func (e PageBusinessRequestValidationError) Error() string
- func (e PageBusinessRequestValidationError) ErrorName() string
- func (e PageBusinessRequestValidationError) Field() string
- func (e PageBusinessRequestValidationError) Key() bool
- func (e PageBusinessRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddBusiness(ctx context.Context, in *AddBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) DeleteBusiness(ctx context.Context, in *DeleteBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetBusinessValues(ctx context.Context, in *GetBusinessValuesRequest, opts ...http.CallOption) (*GetBusinessValuesReply, error)
- func (c *ServiceHTTPClientImpl) PageBusiness(ctx context.Context, in *PageBusinessRequest, opts ...http.CallOption) (*PageBusinessReply, error)
- func (c *ServiceHTTPClientImpl) UpdateBusiness(ctx context.Context, in *UpdateBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UpdateBusinessValues(ctx context.Context, in *UpdateBusinessValueRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddBusiness(context.Context, *AddBusinessRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) DeleteBusiness(context.Context, *DeleteBusinessRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetBusinessValues(context.Context, *GetBusinessValuesRequest) (*GetBusinessValuesReply, error)
- func (UnimplementedServiceServer) PageBusiness(context.Context, *PageBusinessRequest) (*PageBusinessReply, error)
- func (UnimplementedServiceServer) UpdateBusiness(context.Context, *UpdateBusinessRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UpdateBusinessValues(context.Context, *UpdateBusinessValueRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateBusinessRequest
- func (*UpdateBusinessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBusinessRequest) GetDescription() string
- func (x *UpdateBusinessRequest) GetId() uint32
- func (x *UpdateBusinessRequest) GetKeyword() string
- func (x *UpdateBusinessRequest) GetType() string
- func (*UpdateBusinessRequest) ProtoMessage()
- func (x *UpdateBusinessRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBusinessRequest) Reset()
- func (x *UpdateBusinessRequest) String() string
- func (m *UpdateBusinessRequest) Validate() error
- func (m *UpdateBusinessRequest) ValidateAll() error
- type UpdateBusinessRequestMultiError
- type UpdateBusinessRequestValidationError
- func (e UpdateBusinessRequestValidationError) Cause() error
- func (e UpdateBusinessRequestValidationError) Error() string
- func (e UpdateBusinessRequestValidationError) ErrorName() string
- func (e UpdateBusinessRequestValidationError) Field() string
- func (e UpdateBusinessRequestValidationError) Key() bool
- func (e UpdateBusinessRequestValidationError) Reason() string
- type UpdateBusinessValueRequest
- func (*UpdateBusinessValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBusinessValueRequest) GetBusinessId() uint32
- func (x *UpdateBusinessValueRequest) GetList() []*UpdateBusinessValueRequest_BusinessValue
- func (*UpdateBusinessValueRequest) ProtoMessage()
- func (x *UpdateBusinessValueRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBusinessValueRequest) Reset()
- func (x *UpdateBusinessValueRequest) String() string
- func (m *UpdateBusinessValueRequest) Validate() error
- func (m *UpdateBusinessValueRequest) ValidateAll() error
- type UpdateBusinessValueRequestMultiError
- type UpdateBusinessValueRequestValidationError
- func (e UpdateBusinessValueRequestValidationError) Cause() error
- func (e UpdateBusinessValueRequestValidationError) Error() string
- func (e UpdateBusinessValueRequestValidationError) ErrorName() string
- func (e UpdateBusinessValueRequestValidationError) Field() string
- func (e UpdateBusinessValueRequestValidationError) Key() bool
- func (e UpdateBusinessValueRequestValidationError) Reason() string
- type UpdateBusinessValueRequest_BusinessValue
- func (*UpdateBusinessValueRequest_BusinessValue) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBusinessValueRequest_BusinessValue) GetEnvId() uint32
- func (x *UpdateBusinessValueRequest_BusinessValue) GetValue() string
- func (*UpdateBusinessValueRequest_BusinessValue) ProtoMessage()
- func (x *UpdateBusinessValueRequest_BusinessValue) ProtoReflect() protoreflect.Message
- func (x *UpdateBusinessValueRequest_BusinessValue) Reset()
- func (x *UpdateBusinessValueRequest_BusinessValue) String() string
- func (m *UpdateBusinessValueRequest_BusinessValue) Validate() error
- func (m *UpdateBusinessValueRequest_BusinessValue) ValidateAll() error
- type UpdateBusinessValueRequest_BusinessValueMultiError
- type UpdateBusinessValueRequest_BusinessValueValidationError
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) Cause() error
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) Error() string
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) ErrorName() string
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) Field() string
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) Key() bool
- func (e UpdateBusinessValueRequest_BusinessValueValidationError) Reason() string
Constants ¶
const ( Service_PageBusiness_FullMethodName = "/configure_business.Service/PageBusiness" Service_AddBusiness_FullMethodName = "/configure_business.Service/AddBusiness" Service_UpdateBusiness_FullMethodName = "/configure_business.Service/UpdateBusiness" Service_DeleteBusiness_FullMethodName = "/configure_business.Service/DeleteBusiness" Service_GetBusinessValues_FullMethodName = "/configure_business.Service/GetBusinessValues" Service_UpdateBusinessValues_FullMethodName = "/configure_business.Service/UpdateBusinessValues" )
const OperationServiceAddBusiness = "/configure_business.Service/AddBusiness"
const OperationServiceDeleteBusiness = "/configure_business.Service/DeleteBusiness"
const OperationServiceGetBusinessValues = "/configure_business.Service/GetBusinessValues"
const OperationServicePageBusiness = "/configure_business.Service/PageBusiness"
const OperationServiceUpdateBusiness = "/configure_business.Service/UpdateBusiness"
const OperationServiceUpdateBusinessValues = "/configure_business.Service/UpdateBusinessValues"
Variables ¶
var File_configure_business_proto protoreflect.FileDescriptor
var File_configure_business_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "configure_business.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageBusiness", Handler: _Service_PageBusiness_Handler, }, { MethodName: "AddBusiness", Handler: _Service_AddBusiness_Handler, }, { MethodName: "UpdateBusiness", Handler: _Service_UpdateBusiness_Handler, }, { MethodName: "DeleteBusiness", Handler: _Service_DeleteBusiness_Handler, }, { MethodName: "GetBusinessValues", Handler: _Service_GetBusinessValues_Handler, }, { MethodName: "UpdateBusinessValues", Handler: _Service_UpdateBusinessValues_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "configure_business_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 AddBusinessRequest ¶
type AddBusinessRequest struct { ServerId uint32 `protobuf:"varint,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
新增业务key
func (*AddBusinessRequest) Descriptor
deprecated
func (*AddBusinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddBusinessRequest.ProtoReflect.Descriptor instead.
func (*AddBusinessRequest) GetDescription ¶
func (x *AddBusinessRequest) GetDescription() string
func (*AddBusinessRequest) GetKeyword ¶
func (x *AddBusinessRequest) GetKeyword() string
func (*AddBusinessRequest) GetServerId ¶
func (x *AddBusinessRequest) GetServerId() uint32
func (*AddBusinessRequest) GetType ¶
func (x *AddBusinessRequest) GetType() string
func (*AddBusinessRequest) ProtoMessage ¶
func (*AddBusinessRequest) ProtoMessage()
func (*AddBusinessRequest) ProtoReflect ¶
func (x *AddBusinessRequest) ProtoReflect() protoreflect.Message
func (*AddBusinessRequest) Reset ¶
func (x *AddBusinessRequest) Reset()
func (*AddBusinessRequest) String ¶
func (x *AddBusinessRequest) String() string
func (*AddBusinessRequest) Validate ¶
func (m *AddBusinessRequest) Validate() error
Validate checks the field values on AddBusinessRequest 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 (*AddBusinessRequest) ValidateAll ¶
func (m *AddBusinessRequest) ValidateAll() error
ValidateAll checks the field values on AddBusinessRequest 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 AddBusinessRequestMultiError, or nil if none found.
type AddBusinessRequestMultiError ¶
type AddBusinessRequestMultiError []error
AddBusinessRequestMultiError is an error wrapping multiple validation errors returned by AddBusinessRequest.ValidateAll() if the designated constraints aren't met.
func (AddBusinessRequestMultiError) AllErrors ¶
func (m AddBusinessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddBusinessRequestMultiError) Error ¶
func (m AddBusinessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddBusinessRequestValidationError ¶
type AddBusinessRequestValidationError struct {
// contains filtered or unexported fields
}
AddBusinessRequestValidationError is the validation error returned by AddBusinessRequest.Validate if the designated constraints aren't met.
func (AddBusinessRequestValidationError) Cause ¶
func (e AddBusinessRequestValidationError) Cause() error
Cause function returns cause value.
func (AddBusinessRequestValidationError) Error ¶
func (e AddBusinessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddBusinessRequestValidationError) ErrorName ¶
func (e AddBusinessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddBusinessRequestValidationError) Field ¶
func (e AddBusinessRequestValidationError) Field() string
Field function returns field value.
func (AddBusinessRequestValidationError) Key ¶
func (e AddBusinessRequestValidationError) Key() bool
Key function returns key value.
func (AddBusinessRequestValidationError) Reason ¶
func (e AddBusinessRequestValidationError) Reason() string
Reason function returns reason value.
type Business ¶
type Business struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ServerId uint32 `protobuf:"varint,2,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,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"` // contains filtered or unexported fields }
func (*Business) Descriptor
deprecated
func (*Business) GetCreatedAt ¶
func (*Business) GetDescription ¶
func (*Business) GetKeyword ¶
func (*Business) GetServerId ¶
func (*Business) GetUpdatedAt ¶
func (*Business) ProtoMessage ¶
func (*Business) ProtoMessage()
func (*Business) ProtoReflect ¶
func (x *Business) ProtoReflect() protoreflect.Message
func (*Business) Validate ¶
Validate checks the field values on Business 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 (*Business) ValidateAll ¶
ValidateAll checks the field values on Business 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 BusinessMultiError, or nil if none found.
type BusinessMultiError ¶
type BusinessMultiError []error
BusinessMultiError is an error wrapping multiple validation errors returned by Business.ValidateAll() if the designated constraints aren't met.
func (BusinessMultiError) AllErrors ¶
func (m BusinessMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BusinessMultiError) Error ¶
func (m BusinessMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BusinessValidationError ¶
type BusinessValidationError struct {
// contains filtered or unexported fields
}
BusinessValidationError is the validation error returned by Business.Validate if the designated constraints aren't met.
func (BusinessValidationError) Cause ¶
func (e BusinessValidationError) Cause() error
Cause function returns cause value.
func (BusinessValidationError) Error ¶
func (e BusinessValidationError) Error() string
Error satisfies the builtin error interface
func (BusinessValidationError) ErrorName ¶
func (e BusinessValidationError) ErrorName() string
ErrorName returns error name.
func (BusinessValidationError) Field ¶
func (e BusinessValidationError) Field() string
Field function returns field value.
func (BusinessValidationError) Key ¶
func (e BusinessValidationError) Key() bool
Key function returns key value.
func (BusinessValidationError) Reason ¶
func (e BusinessValidationError) Reason() string
Reason function returns reason value.
type DeleteBusinessRequest ¶
type DeleteBusinessRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
删除业务key
func (*DeleteBusinessRequest) Descriptor
deprecated
func (*DeleteBusinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBusinessRequest.ProtoReflect.Descriptor instead.
func (*DeleteBusinessRequest) GetId ¶
func (x *DeleteBusinessRequest) GetId() uint32
func (*DeleteBusinessRequest) ProtoMessage ¶
func (*DeleteBusinessRequest) ProtoMessage()
func (*DeleteBusinessRequest) ProtoReflect ¶
func (x *DeleteBusinessRequest) ProtoReflect() protoreflect.Message
func (*DeleteBusinessRequest) Reset ¶
func (x *DeleteBusinessRequest) Reset()
func (*DeleteBusinessRequest) String ¶
func (x *DeleteBusinessRequest) String() string
func (*DeleteBusinessRequest) Validate ¶
func (m *DeleteBusinessRequest) Validate() error
Validate checks the field values on DeleteBusinessRequest 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 (*DeleteBusinessRequest) ValidateAll ¶
func (m *DeleteBusinessRequest) ValidateAll() error
ValidateAll checks the field values on DeleteBusinessRequest 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 DeleteBusinessRequestMultiError, or nil if none found.
type DeleteBusinessRequestMultiError ¶
type DeleteBusinessRequestMultiError []error
DeleteBusinessRequestMultiError is an error wrapping multiple validation errors returned by DeleteBusinessRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteBusinessRequestMultiError) AllErrors ¶
func (m DeleteBusinessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteBusinessRequestMultiError) Error ¶
func (m DeleteBusinessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteBusinessRequestValidationError ¶
type DeleteBusinessRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteBusinessRequestValidationError is the validation error returned by DeleteBusinessRequest.Validate if the designated constraints aren't met.
func (DeleteBusinessRequestValidationError) Cause ¶
func (e DeleteBusinessRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteBusinessRequestValidationError) Error ¶
func (e DeleteBusinessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteBusinessRequestValidationError) ErrorName ¶
func (e DeleteBusinessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteBusinessRequestValidationError) Field ¶
func (e DeleteBusinessRequestValidationError) Field() string
Field function returns field value.
func (DeleteBusinessRequestValidationError) Key ¶
func (e DeleteBusinessRequestValidationError) Key() bool
Key function returns key value.
func (DeleteBusinessRequestValidationError) Reason ¶
func (e DeleteBusinessRequestValidationError) Reason() string
Reason function returns reason value.
type GetBusinessValuesReply ¶
type GetBusinessValuesReply struct { List []*GetBusinessValuesReply_BusinessValue `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetBusinessValuesReply) Descriptor
deprecated
func (*GetBusinessValuesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessValuesReply.ProtoReflect.Descriptor instead.
func (*GetBusinessValuesReply) GetList ¶
func (x *GetBusinessValuesReply) GetList() []*GetBusinessValuesReply_BusinessValue
func (*GetBusinessValuesReply) ProtoMessage ¶
func (*GetBusinessValuesReply) ProtoMessage()
func (*GetBusinessValuesReply) ProtoReflect ¶
func (x *GetBusinessValuesReply) ProtoReflect() protoreflect.Message
func (*GetBusinessValuesReply) Reset ¶
func (x *GetBusinessValuesReply) Reset()
func (*GetBusinessValuesReply) String ¶
func (x *GetBusinessValuesReply) String() string
func (*GetBusinessValuesReply) Validate ¶
func (m *GetBusinessValuesReply) Validate() error
Validate checks the field values on GetBusinessValuesReply 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 (*GetBusinessValuesReply) ValidateAll ¶
func (m *GetBusinessValuesReply) ValidateAll() error
ValidateAll checks the field values on GetBusinessValuesReply 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 GetBusinessValuesReplyMultiError, or nil if none found.
type GetBusinessValuesReplyMultiError ¶
type GetBusinessValuesReplyMultiError []error
GetBusinessValuesReplyMultiError is an error wrapping multiple validation errors returned by GetBusinessValuesReply.ValidateAll() if the designated constraints aren't met.
func (GetBusinessValuesReplyMultiError) AllErrors ¶
func (m GetBusinessValuesReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBusinessValuesReplyMultiError) Error ¶
func (m GetBusinessValuesReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBusinessValuesReplyValidationError ¶
type GetBusinessValuesReplyValidationError struct {
// contains filtered or unexported fields
}
GetBusinessValuesReplyValidationError is the validation error returned by GetBusinessValuesReply.Validate if the designated constraints aren't met.
func (GetBusinessValuesReplyValidationError) Cause ¶
func (e GetBusinessValuesReplyValidationError) Cause() error
Cause function returns cause value.
func (GetBusinessValuesReplyValidationError) Error ¶
func (e GetBusinessValuesReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetBusinessValuesReplyValidationError) ErrorName ¶
func (e GetBusinessValuesReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetBusinessValuesReplyValidationError) Field ¶
func (e GetBusinessValuesReplyValidationError) Field() string
Field function returns field value.
func (GetBusinessValuesReplyValidationError) Key ¶
func (e GetBusinessValuesReplyValidationError) Key() bool
Key function returns key value.
func (GetBusinessValuesReplyValidationError) Reason ¶
func (e GetBusinessValuesReplyValidationError) Reason() string
Reason function returns reason value.
type GetBusinessValuesReply_BusinessValue ¶
type GetBusinessValuesReply_BusinessValue struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` EnvId uint32 `protobuf:"varint,2,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` BusinessId uint32 `protobuf:"varint,3,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` CreatedAt uint32 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*GetBusinessValuesReply_BusinessValue) Descriptor
deprecated
func (*GetBusinessValuesReply_BusinessValue) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessValuesReply_BusinessValue.ProtoReflect.Descriptor instead.
func (*GetBusinessValuesReply_BusinessValue) GetBusinessId ¶
func (x *GetBusinessValuesReply_BusinessValue) GetBusinessId() uint32
func (*GetBusinessValuesReply_BusinessValue) GetCreatedAt ¶
func (x *GetBusinessValuesReply_BusinessValue) GetCreatedAt() uint32
func (*GetBusinessValuesReply_BusinessValue) GetEnvId ¶
func (x *GetBusinessValuesReply_BusinessValue) GetEnvId() uint32
func (*GetBusinessValuesReply_BusinessValue) GetId ¶
func (x *GetBusinessValuesReply_BusinessValue) GetId() uint32
func (*GetBusinessValuesReply_BusinessValue) GetUpdatedAt ¶
func (x *GetBusinessValuesReply_BusinessValue) GetUpdatedAt() uint32
func (*GetBusinessValuesReply_BusinessValue) GetValue ¶
func (x *GetBusinessValuesReply_BusinessValue) GetValue() string
func (*GetBusinessValuesReply_BusinessValue) ProtoMessage ¶
func (*GetBusinessValuesReply_BusinessValue) ProtoMessage()
func (*GetBusinessValuesReply_BusinessValue) ProtoReflect ¶
func (x *GetBusinessValuesReply_BusinessValue) ProtoReflect() protoreflect.Message
func (*GetBusinessValuesReply_BusinessValue) Reset ¶
func (x *GetBusinessValuesReply_BusinessValue) Reset()
func (*GetBusinessValuesReply_BusinessValue) String ¶
func (x *GetBusinessValuesReply_BusinessValue) String() string
func (*GetBusinessValuesReply_BusinessValue) Validate ¶
func (m *GetBusinessValuesReply_BusinessValue) Validate() error
Validate checks the field values on GetBusinessValuesReply_BusinessValue 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 (*GetBusinessValuesReply_BusinessValue) ValidateAll ¶
func (m *GetBusinessValuesReply_BusinessValue) ValidateAll() error
ValidateAll checks the field values on GetBusinessValuesReply_BusinessValue 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 GetBusinessValuesReply_BusinessValueMultiError, or nil if none found.
type GetBusinessValuesReply_BusinessValueMultiError ¶
type GetBusinessValuesReply_BusinessValueMultiError []error
GetBusinessValuesReply_BusinessValueMultiError is an error wrapping multiple validation errors returned by GetBusinessValuesReply_BusinessValue.ValidateAll() if the designated constraints aren't met.
func (GetBusinessValuesReply_BusinessValueMultiError) AllErrors ¶
func (m GetBusinessValuesReply_BusinessValueMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBusinessValuesReply_BusinessValueMultiError) Error ¶
func (m GetBusinessValuesReply_BusinessValueMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBusinessValuesReply_BusinessValueValidationError ¶
type GetBusinessValuesReply_BusinessValueValidationError struct {
// contains filtered or unexported fields
}
GetBusinessValuesReply_BusinessValueValidationError is the validation error returned by GetBusinessValuesReply_BusinessValue.Validate if the designated constraints aren't met.
func (GetBusinessValuesReply_BusinessValueValidationError) Cause ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) Cause() error
Cause function returns cause value.
func (GetBusinessValuesReply_BusinessValueValidationError) Error ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) Error() string
Error satisfies the builtin error interface
func (GetBusinessValuesReply_BusinessValueValidationError) ErrorName ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) ErrorName() string
ErrorName returns error name.
func (GetBusinessValuesReply_BusinessValueValidationError) Field ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) Field() string
Field function returns field value.
func (GetBusinessValuesReply_BusinessValueValidationError) Key ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) Key() bool
Key function returns key value.
func (GetBusinessValuesReply_BusinessValueValidationError) Reason ¶
func (e GetBusinessValuesReply_BusinessValueValidationError) Reason() string
Reason function returns reason value.
type GetBusinessValuesRequest ¶
type GetBusinessValuesRequest struct { BusinessId uint32 `protobuf:"varint,1,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"` // contains filtered or unexported fields }
func (*GetBusinessValuesRequest) Descriptor
deprecated
func (*GetBusinessValuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessValuesRequest.ProtoReflect.Descriptor instead.
func (*GetBusinessValuesRequest) GetBusinessId ¶
func (x *GetBusinessValuesRequest) GetBusinessId() uint32
func (*GetBusinessValuesRequest) ProtoMessage ¶
func (*GetBusinessValuesRequest) ProtoMessage()
func (*GetBusinessValuesRequest) ProtoReflect ¶
func (x *GetBusinessValuesRequest) ProtoReflect() protoreflect.Message
func (*GetBusinessValuesRequest) Reset ¶
func (x *GetBusinessValuesRequest) Reset()
func (*GetBusinessValuesRequest) String ¶
func (x *GetBusinessValuesRequest) String() string
func (*GetBusinessValuesRequest) Validate ¶
func (m *GetBusinessValuesRequest) Validate() error
Validate checks the field values on GetBusinessValuesRequest 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 (*GetBusinessValuesRequest) ValidateAll ¶
func (m *GetBusinessValuesRequest) ValidateAll() error
ValidateAll checks the field values on GetBusinessValuesRequest 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 GetBusinessValuesRequestMultiError, or nil if none found.
type GetBusinessValuesRequestMultiError ¶
type GetBusinessValuesRequestMultiError []error
GetBusinessValuesRequestMultiError is an error wrapping multiple validation errors returned by GetBusinessValuesRequest.ValidateAll() if the designated constraints aren't met.
func (GetBusinessValuesRequestMultiError) AllErrors ¶
func (m GetBusinessValuesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBusinessValuesRequestMultiError) Error ¶
func (m GetBusinessValuesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBusinessValuesRequestValidationError ¶
type GetBusinessValuesRequestValidationError struct {
// contains filtered or unexported fields
}
GetBusinessValuesRequestValidationError is the validation error returned by GetBusinessValuesRequest.Validate if the designated constraints aren't met.
func (GetBusinessValuesRequestValidationError) Cause ¶
func (e GetBusinessValuesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetBusinessValuesRequestValidationError) Error ¶
func (e GetBusinessValuesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetBusinessValuesRequestValidationError) ErrorName ¶
func (e GetBusinessValuesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetBusinessValuesRequestValidationError) Field ¶
func (e GetBusinessValuesRequestValidationError) Field() string
Field function returns field value.
func (GetBusinessValuesRequestValidationError) Key ¶
func (e GetBusinessValuesRequestValidationError) Key() bool
Key function returns key value.
func (GetBusinessValuesRequestValidationError) Reason ¶
func (e GetBusinessValuesRequestValidationError) Reason() string
Reason function returns reason value.
type PageBusinessReply ¶
type PageBusinessReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Business `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageBusinessReply) Descriptor
deprecated
func (*PageBusinessReply) Descriptor() ([]byte, []int)
Deprecated: Use PageBusinessReply.ProtoReflect.Descriptor instead.
func (*PageBusinessReply) GetList ¶
func (x *PageBusinessReply) GetList() []*Business
func (*PageBusinessReply) GetTotal ¶
func (x *PageBusinessReply) GetTotal() uint32
func (*PageBusinessReply) ProtoMessage ¶
func (*PageBusinessReply) ProtoMessage()
func (*PageBusinessReply) ProtoReflect ¶
func (x *PageBusinessReply) ProtoReflect() protoreflect.Message
func (*PageBusinessReply) Reset ¶
func (x *PageBusinessReply) Reset()
func (*PageBusinessReply) String ¶
func (x *PageBusinessReply) String() string
func (*PageBusinessReply) Validate ¶
func (m *PageBusinessReply) Validate() error
Validate checks the field values on PageBusinessReply 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 (*PageBusinessReply) ValidateAll ¶
func (m *PageBusinessReply) ValidateAll() error
ValidateAll checks the field values on PageBusinessReply 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 PageBusinessReplyMultiError, or nil if none found.
type PageBusinessReplyMultiError ¶
type PageBusinessReplyMultiError []error
PageBusinessReplyMultiError is an error wrapping multiple validation errors returned by PageBusinessReply.ValidateAll() if the designated constraints aren't met.
func (PageBusinessReplyMultiError) AllErrors ¶
func (m PageBusinessReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageBusinessReplyMultiError) Error ¶
func (m PageBusinessReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageBusinessReplyValidationError ¶
type PageBusinessReplyValidationError struct {
// contains filtered or unexported fields
}
PageBusinessReplyValidationError is the validation error returned by PageBusinessReply.Validate if the designated constraints aren't met.
func (PageBusinessReplyValidationError) Cause ¶
func (e PageBusinessReplyValidationError) Cause() error
Cause function returns cause value.
func (PageBusinessReplyValidationError) Error ¶
func (e PageBusinessReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageBusinessReplyValidationError) ErrorName ¶
func (e PageBusinessReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageBusinessReplyValidationError) Field ¶
func (e PageBusinessReplyValidationError) Field() string
Field function returns field value.
func (PageBusinessReplyValidationError) Key ¶
func (e PageBusinessReplyValidationError) Key() bool
Key function returns key value.
func (PageBusinessReplyValidationError) Reason ¶
func (e PageBusinessReplyValidationError) Reason() string
Reason function returns reason value.
type PageBusinessRequest ¶
type PageBusinessRequest 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"` ServerId uint32 `protobuf:"varint,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"` Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Tag *string `protobuf:"bytes,5,opt,name=tag,proto3,oneof" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*PageBusinessRequest) Descriptor
deprecated
func (*PageBusinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageBusinessRequest.ProtoReflect.Descriptor instead.
func (*PageBusinessRequest) GetKeyword ¶
func (x *PageBusinessRequest) GetKeyword() string
func (*PageBusinessRequest) GetPage ¶
func (x *PageBusinessRequest) GetPage() uint32
func (*PageBusinessRequest) GetPageSize ¶
func (x *PageBusinessRequest) GetPageSize() uint32
func (*PageBusinessRequest) GetServerId ¶
func (x *PageBusinessRequest) GetServerId() uint32
func (*PageBusinessRequest) GetTag ¶
func (x *PageBusinessRequest) GetTag() string
func (*PageBusinessRequest) ProtoMessage ¶
func (*PageBusinessRequest) ProtoMessage()
func (*PageBusinessRequest) ProtoReflect ¶
func (x *PageBusinessRequest) ProtoReflect() protoreflect.Message
func (*PageBusinessRequest) Reset ¶
func (x *PageBusinessRequest) Reset()
func (*PageBusinessRequest) String ¶
func (x *PageBusinessRequest) String() string
func (*PageBusinessRequest) Validate ¶
func (m *PageBusinessRequest) Validate() error
Validate checks the field values on PageBusinessRequest 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 (*PageBusinessRequest) ValidateAll ¶
func (m *PageBusinessRequest) ValidateAll() error
ValidateAll checks the field values on PageBusinessRequest 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 PageBusinessRequestMultiError, or nil if none found.
type PageBusinessRequestMultiError ¶
type PageBusinessRequestMultiError []error
PageBusinessRequestMultiError is an error wrapping multiple validation errors returned by PageBusinessRequest.ValidateAll() if the designated constraints aren't met.
func (PageBusinessRequestMultiError) AllErrors ¶
func (m PageBusinessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageBusinessRequestMultiError) Error ¶
func (m PageBusinessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageBusinessRequestValidationError ¶
type PageBusinessRequestValidationError struct {
// contains filtered or unexported fields
}
PageBusinessRequestValidationError is the validation error returned by PageBusinessRequest.Validate if the designated constraints aren't met.
func (PageBusinessRequestValidationError) Cause ¶
func (e PageBusinessRequestValidationError) Cause() error
Cause function returns cause value.
func (PageBusinessRequestValidationError) Error ¶
func (e PageBusinessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageBusinessRequestValidationError) ErrorName ¶
func (e PageBusinessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageBusinessRequestValidationError) Field ¶
func (e PageBusinessRequestValidationError) Field() string
Field function returns field value.
func (PageBusinessRequestValidationError) Key ¶
func (e PageBusinessRequestValidationError) Key() bool
Key function returns key value.
func (PageBusinessRequestValidationError) Reason ¶
func (e PageBusinessRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { PageBusiness(ctx context.Context, in *PageBusinessRequest, opts ...grpc.CallOption) (*PageBusinessReply, error) AddBusiness(ctx context.Context, in *AddBusinessRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateBusiness(ctx context.Context, in *UpdateBusinessRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteBusiness(ctx context.Context, in *DeleteBusinessRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetBusinessValues(ctx context.Context, in *GetBusinessValuesRequest, opts ...grpc.CallOption) (*GetBusinessValuesReply, error) UpdateBusinessValues(ctx context.Context, in *UpdateBusinessValueRequest, 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 { AddBusiness(ctx context.Context, req *AddBusinessRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteBusiness(ctx context.Context, req *DeleteBusinessRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetBusinessValues(ctx context.Context, req *GetBusinessValuesRequest, opts ...http.CallOption) (rsp *GetBusinessValuesReply, err error) PageBusiness(ctx context.Context, req *PageBusinessRequest, opts ...http.CallOption) (rsp *PageBusinessReply, err error) UpdateBusiness(ctx context.Context, req *UpdateBusinessRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateBusinessValues(ctx context.Context, req *UpdateBusinessValueRequest, 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) AddBusiness ¶
func (c *ServiceHTTPClientImpl) AddBusiness(ctx context.Context, in *AddBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) DeleteBusiness ¶
func (c *ServiceHTTPClientImpl) DeleteBusiness(ctx context.Context, in *DeleteBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetBusinessValues ¶
func (c *ServiceHTTPClientImpl) GetBusinessValues(ctx context.Context, in *GetBusinessValuesRequest, opts ...http.CallOption) (*GetBusinessValuesReply, error)
func (*ServiceHTTPClientImpl) PageBusiness ¶
func (c *ServiceHTTPClientImpl) PageBusiness(ctx context.Context, in *PageBusinessRequest, opts ...http.CallOption) (*PageBusinessReply, error)
func (*ServiceHTTPClientImpl) UpdateBusiness ¶
func (c *ServiceHTTPClientImpl) UpdateBusiness(ctx context.Context, in *UpdateBusinessRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UpdateBusinessValues ¶
func (c *ServiceHTTPClientImpl) UpdateBusinessValues(ctx context.Context, in *UpdateBusinessValueRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { AddBusiness(context.Context, *AddBusinessRequest) (*emptypb.Empty, error) DeleteBusiness(context.Context, *DeleteBusinessRequest) (*emptypb.Empty, error) GetBusinessValues(context.Context, *GetBusinessValuesRequest) (*GetBusinessValuesReply, error) PageBusiness(context.Context, *PageBusinessRequest) (*PageBusinessReply, error) UpdateBusiness(context.Context, *UpdateBusinessRequest) (*emptypb.Empty, error) UpdateBusinessValues(context.Context, *UpdateBusinessValueRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { PageBusiness(context.Context, *PageBusinessRequest) (*PageBusinessReply, error) AddBusiness(context.Context, *AddBusinessRequest) (*emptypb.Empty, error) UpdateBusiness(context.Context, *UpdateBusinessRequest) (*emptypb.Empty, error) DeleteBusiness(context.Context, *DeleteBusinessRequest) (*emptypb.Empty, error) GetBusinessValues(context.Context, *GetBusinessValuesRequest) (*GetBusinessValuesReply, error) UpdateBusinessValues(context.Context, *UpdateBusinessValueRequest) (*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) AddBusiness ¶
func (UnimplementedServiceServer) AddBusiness(context.Context, *AddBusinessRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) DeleteBusiness ¶
func (UnimplementedServiceServer) DeleteBusiness(context.Context, *DeleteBusinessRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetBusinessValues ¶
func (UnimplementedServiceServer) GetBusinessValues(context.Context, *GetBusinessValuesRequest) (*GetBusinessValuesReply, error)
func (UnimplementedServiceServer) PageBusiness ¶
func (UnimplementedServiceServer) PageBusiness(context.Context, *PageBusinessRequest) (*PageBusinessReply, error)
func (UnimplementedServiceServer) UpdateBusiness ¶
func (UnimplementedServiceServer) UpdateBusiness(context.Context, *UpdateBusinessRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UpdateBusinessValues ¶
func (UnimplementedServiceServer) UpdateBusinessValues(context.Context, *UpdateBusinessValueRequest) (*emptypb.Empty, error)
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 UpdateBusinessRequest ¶
type UpdateBusinessRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
修改业务key
func (*UpdateBusinessRequest) Descriptor
deprecated
func (*UpdateBusinessRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessRequest.ProtoReflect.Descriptor instead.
func (*UpdateBusinessRequest) GetDescription ¶
func (x *UpdateBusinessRequest) GetDescription() string
func (*UpdateBusinessRequest) GetId ¶
func (x *UpdateBusinessRequest) GetId() uint32
func (*UpdateBusinessRequest) GetKeyword ¶
func (x *UpdateBusinessRequest) GetKeyword() string
func (*UpdateBusinessRequest) GetType ¶
func (x *UpdateBusinessRequest) GetType() string
func (*UpdateBusinessRequest) ProtoMessage ¶
func (*UpdateBusinessRequest) ProtoMessage()
func (*UpdateBusinessRequest) ProtoReflect ¶
func (x *UpdateBusinessRequest) ProtoReflect() protoreflect.Message
func (*UpdateBusinessRequest) Reset ¶
func (x *UpdateBusinessRequest) Reset()
func (*UpdateBusinessRequest) String ¶
func (x *UpdateBusinessRequest) String() string
func (*UpdateBusinessRequest) Validate ¶
func (m *UpdateBusinessRequest) Validate() error
Validate checks the field values on UpdateBusinessRequest 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 (*UpdateBusinessRequest) ValidateAll ¶
func (m *UpdateBusinessRequest) ValidateAll() error
ValidateAll checks the field values on UpdateBusinessRequest 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 UpdateBusinessRequestMultiError, or nil if none found.
type UpdateBusinessRequestMultiError ¶
type UpdateBusinessRequestMultiError []error
UpdateBusinessRequestMultiError is an error wrapping multiple validation errors returned by UpdateBusinessRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateBusinessRequestMultiError) AllErrors ¶
func (m UpdateBusinessRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateBusinessRequestMultiError) Error ¶
func (m UpdateBusinessRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateBusinessRequestValidationError ¶
type UpdateBusinessRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateBusinessRequestValidationError is the validation error returned by UpdateBusinessRequest.Validate if the designated constraints aren't met.
func (UpdateBusinessRequestValidationError) Cause ¶
func (e UpdateBusinessRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateBusinessRequestValidationError) Error ¶
func (e UpdateBusinessRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBusinessRequestValidationError) ErrorName ¶
func (e UpdateBusinessRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBusinessRequestValidationError) Field ¶
func (e UpdateBusinessRequestValidationError) Field() string
Field function returns field value.
func (UpdateBusinessRequestValidationError) Key ¶
func (e UpdateBusinessRequestValidationError) Key() bool
Key function returns key value.
func (UpdateBusinessRequestValidationError) Reason ¶
func (e UpdateBusinessRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateBusinessValueRequest ¶
type UpdateBusinessValueRequest struct { BusinessId uint32 `protobuf:"varint,1,opt,name=business_id,json=businessId,proto3" json:"business_id,omitempty"` List []*UpdateBusinessValueRequest_BusinessValue `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
修改资源值
func (*UpdateBusinessValueRequest) Descriptor
deprecated
func (*UpdateBusinessValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessValueRequest.ProtoReflect.Descriptor instead.
func (*UpdateBusinessValueRequest) GetBusinessId ¶
func (x *UpdateBusinessValueRequest) GetBusinessId() uint32
func (*UpdateBusinessValueRequest) GetList ¶
func (x *UpdateBusinessValueRequest) GetList() []*UpdateBusinessValueRequest_BusinessValue
func (*UpdateBusinessValueRequest) ProtoMessage ¶
func (*UpdateBusinessValueRequest) ProtoMessage()
func (*UpdateBusinessValueRequest) ProtoReflect ¶
func (x *UpdateBusinessValueRequest) ProtoReflect() protoreflect.Message
func (*UpdateBusinessValueRequest) Reset ¶
func (x *UpdateBusinessValueRequest) Reset()
func (*UpdateBusinessValueRequest) String ¶
func (x *UpdateBusinessValueRequest) String() string
func (*UpdateBusinessValueRequest) Validate ¶
func (m *UpdateBusinessValueRequest) Validate() error
Validate checks the field values on UpdateBusinessValueRequest 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 (*UpdateBusinessValueRequest) ValidateAll ¶
func (m *UpdateBusinessValueRequest) ValidateAll() error
ValidateAll checks the field values on UpdateBusinessValueRequest 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 UpdateBusinessValueRequestMultiError, or nil if none found.
type UpdateBusinessValueRequestMultiError ¶
type UpdateBusinessValueRequestMultiError []error
UpdateBusinessValueRequestMultiError is an error wrapping multiple validation errors returned by UpdateBusinessValueRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateBusinessValueRequestMultiError) AllErrors ¶
func (m UpdateBusinessValueRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateBusinessValueRequestMultiError) Error ¶
func (m UpdateBusinessValueRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateBusinessValueRequestValidationError ¶
type UpdateBusinessValueRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateBusinessValueRequestValidationError is the validation error returned by UpdateBusinessValueRequest.Validate if the designated constraints aren't met.
func (UpdateBusinessValueRequestValidationError) Cause ¶
func (e UpdateBusinessValueRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateBusinessValueRequestValidationError) Error ¶
func (e UpdateBusinessValueRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBusinessValueRequestValidationError) ErrorName ¶
func (e UpdateBusinessValueRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBusinessValueRequestValidationError) Field ¶
func (e UpdateBusinessValueRequestValidationError) Field() string
Field function returns field value.
func (UpdateBusinessValueRequestValidationError) Key ¶
func (e UpdateBusinessValueRequestValidationError) Key() bool
Key function returns key value.
func (UpdateBusinessValueRequestValidationError) Reason ¶
func (e UpdateBusinessValueRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateBusinessValueRequest_BusinessValue ¶
type UpdateBusinessValueRequest_BusinessValue struct { EnvId uint32 `protobuf:"varint,1,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UpdateBusinessValueRequest_BusinessValue) Descriptor
deprecated
func (*UpdateBusinessValueRequest_BusinessValue) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessValueRequest_BusinessValue.ProtoReflect.Descriptor instead.
func (*UpdateBusinessValueRequest_BusinessValue) GetEnvId ¶
func (x *UpdateBusinessValueRequest_BusinessValue) GetEnvId() uint32
func (*UpdateBusinessValueRequest_BusinessValue) GetValue ¶
func (x *UpdateBusinessValueRequest_BusinessValue) GetValue() string
func (*UpdateBusinessValueRequest_BusinessValue) ProtoMessage ¶
func (*UpdateBusinessValueRequest_BusinessValue) ProtoMessage()
func (*UpdateBusinessValueRequest_BusinessValue) ProtoReflect ¶
func (x *UpdateBusinessValueRequest_BusinessValue) ProtoReflect() protoreflect.Message
func (*UpdateBusinessValueRequest_BusinessValue) Reset ¶
func (x *UpdateBusinessValueRequest_BusinessValue) Reset()
func (*UpdateBusinessValueRequest_BusinessValue) String ¶
func (x *UpdateBusinessValueRequest_BusinessValue) String() string
func (*UpdateBusinessValueRequest_BusinessValue) Validate ¶
func (m *UpdateBusinessValueRequest_BusinessValue) Validate() error
Validate checks the field values on UpdateBusinessValueRequest_BusinessValue 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 (*UpdateBusinessValueRequest_BusinessValue) ValidateAll ¶
func (m *UpdateBusinessValueRequest_BusinessValue) ValidateAll() error
ValidateAll checks the field values on UpdateBusinessValueRequest_BusinessValue 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 UpdateBusinessValueRequest_BusinessValueMultiError, or nil if none found.
type UpdateBusinessValueRequest_BusinessValueMultiError ¶
type UpdateBusinessValueRequest_BusinessValueMultiError []error
UpdateBusinessValueRequest_BusinessValueMultiError is an error wrapping multiple validation errors returned by UpdateBusinessValueRequest_BusinessValue.ValidateAll() if the designated constraints aren't met.
func (UpdateBusinessValueRequest_BusinessValueMultiError) AllErrors ¶
func (m UpdateBusinessValueRequest_BusinessValueMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateBusinessValueRequest_BusinessValueMultiError) Error ¶
func (m UpdateBusinessValueRequest_BusinessValueMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateBusinessValueRequest_BusinessValueValidationError ¶
type UpdateBusinessValueRequest_BusinessValueValidationError struct {
// contains filtered or unexported fields
}
UpdateBusinessValueRequest_BusinessValueValidationError is the validation error returned by UpdateBusinessValueRequest_BusinessValue.Validate if the designated constraints aren't met.
func (UpdateBusinessValueRequest_BusinessValueValidationError) Cause ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) Cause() error
Cause function returns cause value.
func (UpdateBusinessValueRequest_BusinessValueValidationError) Error ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateBusinessValueRequest_BusinessValueValidationError) ErrorName ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateBusinessValueRequest_BusinessValueValidationError) Field ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) Field() string
Field function returns field value.
func (UpdateBusinessValueRequest_BusinessValueValidationError) Key ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) Key() bool
Key function returns key value.
func (UpdateBusinessValueRequest_BusinessValueValidationError) Reason ¶
func (e UpdateBusinessValueRequest_BusinessValueValidationError) Reason() string
Reason function returns reason value.