v1

package
v1.0.32 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationServiceAddBusiness = "/configure_business.Service/AddBusiness"
View Source
const OperationServiceDeleteBusiness = "/configure_business.Service/DeleteBusiness"
View Source
const OperationServiceGetBusinessValues = "/configure_business.Service/GetBusinessValues"
View Source
const OperationServicePageBusiness = "/configure_business.Service/PageBusiness"
View Source
const OperationServiceUpdateBusiness = "/configure_business.Service/UpdateBusiness"
View Source
const OperationServiceUpdateBusinessValues = "/configure_business.Service/UpdateBusinessValues"

Variables

View Source
var File_configure_business_proto protoreflect.FileDescriptor
View Source
var File_configure_business_service_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (AddBusinessRequestValidationError) Error

Error satisfies the builtin error interface

func (AddBusinessRequestValidationError) ErrorName

ErrorName returns error name.

func (AddBusinessRequestValidationError) Field

Field function returns field value.

func (AddBusinessRequestValidationError) Key

Key function returns key value.

func (AddBusinessRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Business.ProtoReflect.Descriptor instead.

func (*Business) GetCreatedAt

func (x *Business) GetCreatedAt() uint32

func (*Business) GetDescription

func (x *Business) GetDescription() string

func (*Business) GetId

func (x *Business) GetId() uint32

func (*Business) GetKeyword

func (x *Business) GetKeyword() string

func (*Business) GetServerId

func (x *Business) GetServerId() uint32

func (*Business) GetType

func (x *Business) GetType() string

func (*Business) GetUpdatedAt

func (x *Business) GetUpdatedAt() uint32

func (*Business) ProtoMessage

func (*Business) ProtoMessage()

func (*Business) ProtoReflect

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

func (*Business) Reset

func (x *Business) Reset()

func (*Business) String

func (x *Business) String() string

func (*Business) Validate

func (m *Business) Validate() error

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

func (m *Business) ValidateAll() error

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

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

Cause function returns cause value.

func (DeleteBusinessRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteBusinessRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteBusinessRequestValidationError) Field

Field function returns field value.

func (DeleteBusinessRequestValidationError) Key

Key function returns key value.

func (DeleteBusinessRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetBusinessValuesReplyValidationError) Error

Error satisfies the builtin error interface

func (GetBusinessValuesReplyValidationError) ErrorName

ErrorName returns error name.

func (GetBusinessValuesReplyValidationError) Field

Field function returns field value.

func (GetBusinessValuesReplyValidationError) Key

Key function returns key value.

func (GetBusinessValuesReplyValidationError) Reason

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 (*GetBusinessValuesReply_BusinessValue) GetId

func (*GetBusinessValuesReply_BusinessValue) GetUpdatedAt

func (x *GetBusinessValuesReply_BusinessValue) GetUpdatedAt() uint32

func (*GetBusinessValuesReply_BusinessValue) GetValue

func (*GetBusinessValuesReply_BusinessValue) ProtoMessage

func (*GetBusinessValuesReply_BusinessValue) ProtoMessage()

func (*GetBusinessValuesReply_BusinessValue) ProtoReflect

func (*GetBusinessValuesReply_BusinessValue) Reset

func (*GetBusinessValuesReply_BusinessValue) String

func (*GetBusinessValuesReply_BusinessValue) Validate

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

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

AllErrors returns a list of validation violation errors.

func (GetBusinessValuesReply_BusinessValueMultiError) Error

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

Cause function returns cause value.

func (GetBusinessValuesReply_BusinessValueValidationError) Error

Error satisfies the builtin error interface

func (GetBusinessValuesReply_BusinessValueValidationError) ErrorName

ErrorName returns error name.

func (GetBusinessValuesReply_BusinessValueValidationError) Field

Field function returns field value.

func (GetBusinessValuesReply_BusinessValueValidationError) Key

Key function returns key value.

func (GetBusinessValuesReply_BusinessValueValidationError) Reason

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

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

Cause function returns cause value.

func (GetBusinessValuesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetBusinessValuesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetBusinessValuesRequestValidationError) Field

Field function returns field value.

func (GetBusinessValuesRequestValidationError) Key

Key function returns key value.

func (GetBusinessValuesRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PageBusinessReplyValidationError) Error

Error satisfies the builtin error interface

func (PageBusinessReplyValidationError) ErrorName

ErrorName returns error name.

func (PageBusinessReplyValidationError) Field

Field function returns field value.

func (PageBusinessReplyValidationError) Key

Key function returns key value.

func (PageBusinessReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PageBusinessRequestValidationError) Error

Error satisfies the builtin error interface

func (PageBusinessRequestValidationError) ErrorName

ErrorName returns error name.

func (PageBusinessRequestValidationError) Field

Field function returns field value.

func (PageBusinessRequestValidationError) Key

Key function returns key value.

func (PageBusinessRequestValidationError) Reason

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 (*ServiceHTTPClientImpl) DeleteBusiness

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

func (*ServiceHTTPClientImpl) GetBusinessValues

func (*ServiceHTTPClientImpl) PageBusiness

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 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) DeleteBusiness

func (UnimplementedServiceServer) GetBusinessValues

func (UnimplementedServiceServer) PageBusiness

func (UnimplementedServiceServer) UpdateBusiness

func (UnimplementedServiceServer) UpdateBusinessValues

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

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

Cause function returns cause value.

func (UpdateBusinessRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateBusinessRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateBusinessRequestValidationError) Field

Field function returns field value.

func (UpdateBusinessRequestValidationError) Key

Key function returns key value.

func (UpdateBusinessRequestValidationError) Reason

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 (*UpdateBusinessValueRequest) ProtoMessage

func (*UpdateBusinessValueRequest) ProtoMessage()

func (*UpdateBusinessValueRequest) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (UpdateBusinessValueRequestMultiError) Error

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

Cause function returns cause value.

func (UpdateBusinessValueRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateBusinessValueRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateBusinessValueRequestValidationError) Field

Field function returns field value.

func (UpdateBusinessValueRequestValidationError) Key

Key function returns key value.

func (UpdateBusinessValueRequestValidationError) Reason

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 (*UpdateBusinessValueRequest_BusinessValue) GetValue

func (*UpdateBusinessValueRequest_BusinessValue) ProtoMessage

func (*UpdateBusinessValueRequest_BusinessValue) ProtoReflect

func (*UpdateBusinessValueRequest_BusinessValue) Reset

func (*UpdateBusinessValueRequest_BusinessValue) String

func (*UpdateBusinessValueRequest_BusinessValue) Validate

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

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

AllErrors returns a list of validation violation errors.

func (UpdateBusinessValueRequest_BusinessValueMultiError) Error

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

Cause function returns cause value.

func (UpdateBusinessValueRequest_BusinessValueValidationError) Error

Error satisfies the builtin error interface

func (UpdateBusinessValueRequest_BusinessValueValidationError) ErrorName

ErrorName returns error name.

func (UpdateBusinessValueRequest_BusinessValueValidationError) Field

Field function returns field value.

func (UpdateBusinessValueRequest_BusinessValueValidationError) Key

Key function returns key value.

func (UpdateBusinessValueRequest_BusinessValueValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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