v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_PageContent_FullMethodName       = "/agreement.Service/PageContent"
	Service_GetContent_FullMethodName        = "/agreement.Service/GetContent"
	Service_AddContent_FullMethodName        = "/agreement.Service/AddContent"
	Service_UpdateContent_FullMethodName     = "/agreement.Service/UpdateContent"
	Service_DeleteContent_FullMethodName     = "/agreement.Service/DeleteContent"
	Service_PageScene_FullMethodName         = "/agreement.Service/PageScene"
	Service_GetSceneByKeyword_FullMethodName = "/agreement.Service/GetSceneByKeyword"
	Service_AddScene_FullMethodName          = "/agreement.Service/AddScene"
	Service_UpdateScene_FullMethodName       = "/agreement.Service/UpdateScene"
	Service_DeleteScene_FullMethodName       = "/agreement.Service/DeleteScene"
)
View Source
const OperationServiceAddContent = "/agreement.Service/AddContent"
View Source
const OperationServiceAddScene = "/agreement.Service/AddScene"
View Source
const OperationServiceDeleteContent = "/agreement.Service/DeleteContent"
View Source
const OperationServiceDeleteScene = "/agreement.Service/DeleteScene"
View Source
const OperationServiceGetContent = "/agreement.Service/GetContent"
View Source
const OperationServiceGetSceneByKeyword = "/agreement.Service/GetSceneByKeyword"
View Source
const OperationServicePageContent = "/agreement.Service/PageContent"
View Source
const OperationServicePageScene = "/agreement.Service/PageScene"
View Source
const OperationServiceUpdateContent = "/agreement.Service/UpdateContent"
View Source
const OperationServiceUpdateScene = "/agreement.Service/UpdateScene"

Variables

View Source
var File_user_center_agreement_content_proto protoreflect.FileDescriptor
View Source
var File_user_center_agreement_scene_proto protoreflect.FileDescriptor
View Source
var File_user_center_agreement_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "agreement.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PageContent",
			Handler:    _Service_PageContent_Handler,
		},
		{
			MethodName: "GetContent",
			Handler:    _Service_GetContent_Handler,
		},
		{
			MethodName: "AddContent",
			Handler:    _Service_AddContent_Handler,
		},
		{
			MethodName: "UpdateContent",
			Handler:    _Service_UpdateContent_Handler,
		},
		{
			MethodName: "DeleteContent",
			Handler:    _Service_DeleteContent_Handler,
		},
		{
			MethodName: "PageScene",
			Handler:    _Service_PageScene_Handler,
		},
		{
			MethodName: "GetSceneByKeyword",
			Handler:    _Service_GetSceneByKeyword_Handler,
		},
		{
			MethodName: "AddScene",
			Handler:    _Service_AddScene_Handler,
		},
		{
			MethodName: "UpdateScene",
			Handler:    _Service_UpdateScene_Handler,
		},
		{
			MethodName: "DeleteScene",
			Handler:    _Service_DeleteScene_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_center_agreement_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 AddContentReply

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

func (*AddContentReply) Descriptor deprecated

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

Deprecated: Use AddContentReply.ProtoReflect.Descriptor instead.

func (*AddContentReply) GetId

func (x *AddContentReply) GetId() uint32

func (*AddContentReply) ProtoMessage

func (*AddContentReply) ProtoMessage()

func (*AddContentReply) ProtoReflect

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

func (*AddContentReply) Reset

func (x *AddContentReply) Reset()

func (*AddContentReply) String

func (x *AddContentReply) String() string

func (*AddContentReply) Validate

func (m *AddContentReply) Validate() error

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

func (m *AddContentReply) ValidateAll() error

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

type AddContentReplyMultiError

type AddContentReplyMultiError []error

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

func (AddContentReplyMultiError) AllErrors

func (m AddContentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddContentReplyMultiError) Error

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

type AddContentReplyValidationError

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

AddContentReplyValidationError is the validation error returned by AddContentReply.Validate if the designated constraints aren't met.

func (AddContentReplyValidationError) Cause

Cause function returns cause value.

func (AddContentReplyValidationError) Error

Error satisfies the builtin error interface

func (AddContentReplyValidationError) ErrorName

func (e AddContentReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddContentReplyValidationError) Field

Field function returns field value.

func (AddContentReplyValidationError) Key

Key function returns key value.

func (AddContentReplyValidationError) Reason

Reason function returns reason value.

type AddContentRequest

type AddContentRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status      bool   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Content     string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*AddContentRequest) Descriptor deprecated

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

Deprecated: Use AddContentRequest.ProtoReflect.Descriptor instead.

func (*AddContentRequest) GetContent

func (x *AddContentRequest) GetContent() string

func (*AddContentRequest) GetDescription

func (x *AddContentRequest) GetDescription() string

func (*AddContentRequest) GetName

func (x *AddContentRequest) GetName() string

func (*AddContentRequest) GetStatus

func (x *AddContentRequest) GetStatus() bool

func (*AddContentRequest) ProtoMessage

func (*AddContentRequest) ProtoMessage()

func (*AddContentRequest) ProtoReflect

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

func (*AddContentRequest) Reset

func (x *AddContentRequest) Reset()

func (*AddContentRequest) String

func (x *AddContentRequest) String() string

func (*AddContentRequest) Validate

func (m *AddContentRequest) Validate() error

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

func (m *AddContentRequest) ValidateAll() error

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

type AddContentRequestMultiError

type AddContentRequestMultiError []error

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

func (AddContentRequestMultiError) AllErrors

func (m AddContentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddContentRequestMultiError) Error

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

type AddContentRequestValidationError

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

AddContentRequestValidationError is the validation error returned by AddContentRequest.Validate if the designated constraints aren't met.

func (AddContentRequestValidationError) Cause

Cause function returns cause value.

func (AddContentRequestValidationError) Error

Error satisfies the builtin error interface

func (AddContentRequestValidationError) ErrorName

ErrorName returns error name.

func (AddContentRequestValidationError) Field

Field function returns field value.

func (AddContentRequestValidationError) Key

Key function returns key value.

func (AddContentRequestValidationError) Reason

Reason function returns reason value.

type AddSceneReply

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

func (*AddSceneReply) Descriptor deprecated

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

Deprecated: Use AddSceneReply.ProtoReflect.Descriptor instead.

func (*AddSceneReply) GetId

func (x *AddSceneReply) GetId() uint32

func (*AddSceneReply) ProtoMessage

func (*AddSceneReply) ProtoMessage()

func (*AddSceneReply) ProtoReflect

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

func (*AddSceneReply) Reset

func (x *AddSceneReply) Reset()

func (*AddSceneReply) String

func (x *AddSceneReply) String() string

func (*AddSceneReply) Validate

func (m *AddSceneReply) Validate() error

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

func (m *AddSceneReply) ValidateAll() error

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

type AddSceneReplyMultiError

type AddSceneReplyMultiError []error

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

func (AddSceneReplyMultiError) AllErrors

func (m AddSceneReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddSceneReplyMultiError) Error

func (m AddSceneReplyMultiError) Error() string

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

type AddSceneReplyValidationError

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

AddSceneReplyValidationError is the validation error returned by AddSceneReply.Validate if the designated constraints aren't met.

func (AddSceneReplyValidationError) Cause

Cause function returns cause value.

func (AddSceneReplyValidationError) Error

Error satisfies the builtin error interface

func (AddSceneReplyValidationError) ErrorName

func (e AddSceneReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddSceneReplyValidationError) Field

Field function returns field value.

func (AddSceneReplyValidationError) Key

Key function returns key value.

func (AddSceneReplyValidationError) Reason

Reason function returns reason value.

type AddSceneRequest

type AddSceneRequest struct {
	Keyword     string   `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	ContentIds  []uint32 `protobuf:"varint,4,rep,packed,name=content_ids,json=contentIds,proto3" json:"content_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AddSceneRequest) Descriptor deprecated

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

Deprecated: Use AddSceneRequest.ProtoReflect.Descriptor instead.

func (*AddSceneRequest) GetContentIds

func (x *AddSceneRequest) GetContentIds() []uint32

func (*AddSceneRequest) GetDescription

func (x *AddSceneRequest) GetDescription() string

func (*AddSceneRequest) GetKeyword

func (x *AddSceneRequest) GetKeyword() string

func (*AddSceneRequest) GetName

func (x *AddSceneRequest) GetName() string

func (*AddSceneRequest) ProtoMessage

func (*AddSceneRequest) ProtoMessage()

func (*AddSceneRequest) ProtoReflect

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

func (*AddSceneRequest) Reset

func (x *AddSceneRequest) Reset()

func (*AddSceneRequest) String

func (x *AddSceneRequest) String() string

func (*AddSceneRequest) Validate

func (m *AddSceneRequest) Validate() error

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

func (m *AddSceneRequest) ValidateAll() error

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

type AddSceneRequestMultiError

type AddSceneRequestMultiError []error

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

func (AddSceneRequestMultiError) AllErrors

func (m AddSceneRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddSceneRequestMultiError) Error

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

type AddSceneRequestValidationError

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

AddSceneRequestValidationError is the validation error returned by AddSceneRequest.Validate if the designated constraints aren't met.

func (AddSceneRequestValidationError) Cause

Cause function returns cause value.

func (AddSceneRequestValidationError) Error

Error satisfies the builtin error interface

func (AddSceneRequestValidationError) ErrorName

func (e AddSceneRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddSceneRequestValidationError) Field

Field function returns field value.

func (AddSceneRequestValidationError) Key

Key function returns key value.

func (AddSceneRequestValidationError) Reason

Reason function returns reason value.

type Content

type Content struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Status      bool   `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Content     string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,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 (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetContent

func (x *Content) GetContent() string

func (*Content) GetCreatedAt

func (x *Content) GetCreatedAt() uint32

func (*Content) GetDescription

func (x *Content) GetDescription() string

func (*Content) GetId

func (x *Content) GetId() uint32

func (*Content) GetName

func (x *Content) GetName() string

func (*Content) GetStatus

func (x *Content) GetStatus() bool

func (*Content) GetUpdatedAt

func (x *Content) GetUpdatedAt() uint32

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

func (*Content) Validate

func (m *Content) Validate() error

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

func (m *Content) ValidateAll() error

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

type ContentMultiError

type ContentMultiError []error

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

func (ContentMultiError) AllErrors

func (m ContentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ContentMultiError) Error

func (m ContentMultiError) Error() string

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

type ContentValidationError

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

ContentValidationError is the validation error returned by Content.Validate if the designated constraints aren't met.

func (ContentValidationError) Cause

func (e ContentValidationError) Cause() error

Cause function returns cause value.

func (ContentValidationError) Error

func (e ContentValidationError) Error() string

Error satisfies the builtin error interface

func (ContentValidationError) ErrorName

func (e ContentValidationError) ErrorName() string

ErrorName returns error name.

func (ContentValidationError) Field

func (e ContentValidationError) Field() string

Field function returns field value.

func (ContentValidationError) Key

func (e ContentValidationError) Key() bool

Key function returns key value.

func (ContentValidationError) Reason

func (e ContentValidationError) Reason() string

Reason function returns reason value.

type DeleteContentRequest

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

func (*DeleteContentRequest) Descriptor deprecated

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

Deprecated: Use DeleteContentRequest.ProtoReflect.Descriptor instead.

func (*DeleteContentRequest) GetId

func (x *DeleteContentRequest) GetId() uint32

func (*DeleteContentRequest) ProtoMessage

func (*DeleteContentRequest) ProtoMessage()

func (*DeleteContentRequest) ProtoReflect

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

func (*DeleteContentRequest) Reset

func (x *DeleteContentRequest) Reset()

func (*DeleteContentRequest) String

func (x *DeleteContentRequest) String() string

func (*DeleteContentRequest) Validate

func (m *DeleteContentRequest) Validate() error

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

func (m *DeleteContentRequest) ValidateAll() error

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

type DeleteContentRequestMultiError

type DeleteContentRequestMultiError []error

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

func (DeleteContentRequestMultiError) AllErrors

func (m DeleteContentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteContentRequestMultiError) Error

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

type DeleteContentRequestValidationError

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

DeleteContentRequestValidationError is the validation error returned by DeleteContentRequest.Validate if the designated constraints aren't met.

func (DeleteContentRequestValidationError) Cause

Cause function returns cause value.

func (DeleteContentRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteContentRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteContentRequestValidationError) Field

Field function returns field value.

func (DeleteContentRequestValidationError) Key

Key function returns key value.

func (DeleteContentRequestValidationError) Reason

Reason function returns reason value.

type DeleteSceneRequest

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

func (*DeleteSceneRequest) Descriptor deprecated

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

Deprecated: Use DeleteSceneRequest.ProtoReflect.Descriptor instead.

func (*DeleteSceneRequest) GetId

func (x *DeleteSceneRequest) GetId() uint32

func (*DeleteSceneRequest) ProtoMessage

func (*DeleteSceneRequest) ProtoMessage()

func (*DeleteSceneRequest) ProtoReflect

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

func (*DeleteSceneRequest) Reset

func (x *DeleteSceneRequest) Reset()

func (*DeleteSceneRequest) String

func (x *DeleteSceneRequest) String() string

func (*DeleteSceneRequest) Validate

func (m *DeleteSceneRequest) Validate() error

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

func (m *DeleteSceneRequest) ValidateAll() error

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

type DeleteSceneRequestMultiError

type DeleteSceneRequestMultiError []error

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

func (DeleteSceneRequestMultiError) AllErrors

func (m DeleteSceneRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteSceneRequestMultiError) Error

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

type DeleteSceneRequestValidationError

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

DeleteSceneRequestValidationError is the validation error returned by DeleteSceneRequest.Validate if the designated constraints aren't met.

func (DeleteSceneRequestValidationError) Cause

Cause function returns cause value.

func (DeleteSceneRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteSceneRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteSceneRequestValidationError) Field

Field function returns field value.

func (DeleteSceneRequestValidationError) Key

Key function returns key value.

func (DeleteSceneRequestValidationError) Reason

Reason function returns reason value.

type GetContentRequest

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

func (*GetContentRequest) Descriptor deprecated

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

Deprecated: Use GetContentRequest.ProtoReflect.Descriptor instead.

func (*GetContentRequest) GetId

func (x *GetContentRequest) GetId() uint32

func (*GetContentRequest) ProtoMessage

func (*GetContentRequest) ProtoMessage()

func (*GetContentRequest) ProtoReflect

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

func (*GetContentRequest) Reset

func (x *GetContentRequest) Reset()

func (*GetContentRequest) String

func (x *GetContentRequest) String() string

func (*GetContentRequest) Validate

func (m *GetContentRequest) Validate() error

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

func (m *GetContentRequest) ValidateAll() error

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

type GetContentRequestMultiError

type GetContentRequestMultiError []error

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

func (GetContentRequestMultiError) AllErrors

func (m GetContentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetContentRequestMultiError) Error

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

type GetContentRequestValidationError

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

GetContentRequestValidationError is the validation error returned by GetContentRequest.Validate if the designated constraints aren't met.

func (GetContentRequestValidationError) Cause

Cause function returns cause value.

func (GetContentRequestValidationError) Error

Error satisfies the builtin error interface

func (GetContentRequestValidationError) ErrorName

ErrorName returns error name.

func (GetContentRequestValidationError) Field

Field function returns field value.

func (GetContentRequestValidationError) Key

Key function returns key value.

func (GetContentRequestValidationError) Reason

Reason function returns reason value.

type GetSceneByKeywordRequest

type GetSceneByKeywordRequest struct {
	Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSceneByKeywordRequest) Descriptor deprecated

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

Deprecated: Use GetSceneByKeywordRequest.ProtoReflect.Descriptor instead.

func (*GetSceneByKeywordRequest) GetKeyword

func (x *GetSceneByKeywordRequest) GetKeyword() string

func (*GetSceneByKeywordRequest) ProtoMessage

func (*GetSceneByKeywordRequest) ProtoMessage()

func (*GetSceneByKeywordRequest) ProtoReflect

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

func (*GetSceneByKeywordRequest) Reset

func (x *GetSceneByKeywordRequest) Reset()

func (*GetSceneByKeywordRequest) String

func (x *GetSceneByKeywordRequest) String() string

func (*GetSceneByKeywordRequest) Validate

func (m *GetSceneByKeywordRequest) Validate() error

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

func (m *GetSceneByKeywordRequest) ValidateAll() error

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

type GetSceneByKeywordRequestMultiError

type GetSceneByKeywordRequestMultiError []error

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

func (GetSceneByKeywordRequestMultiError) AllErrors

func (m GetSceneByKeywordRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSceneByKeywordRequestMultiError) Error

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

type GetSceneByKeywordRequestValidationError

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

GetSceneByKeywordRequestValidationError is the validation error returned by GetSceneByKeywordRequest.Validate if the designated constraints aren't met.

func (GetSceneByKeywordRequestValidationError) Cause

Cause function returns cause value.

func (GetSceneByKeywordRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSceneByKeywordRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSceneByKeywordRequestValidationError) Field

Field function returns field value.

func (GetSceneByKeywordRequestValidationError) Key

Key function returns key value.

func (GetSceneByKeywordRequestValidationError) Reason

Reason function returns reason value.

type PageContentReply

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

func (*PageContentReply) Descriptor deprecated

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

Deprecated: Use PageContentReply.ProtoReflect.Descriptor instead.

func (*PageContentReply) GetList

func (x *PageContentReply) GetList() []*Content

func (*PageContentReply) GetTotal

func (x *PageContentReply) GetTotal() uint32

func (*PageContentReply) ProtoMessage

func (*PageContentReply) ProtoMessage()

func (*PageContentReply) ProtoReflect

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

func (*PageContentReply) Reset

func (x *PageContentReply) Reset()

func (*PageContentReply) String

func (x *PageContentReply) String() string

func (*PageContentReply) Validate

func (m *PageContentReply) Validate() error

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

func (m *PageContentReply) ValidateAll() error

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

type PageContentReplyMultiError

type PageContentReplyMultiError []error

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

func (PageContentReplyMultiError) AllErrors

func (m PageContentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageContentReplyMultiError) Error

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

type PageContentReplyValidationError

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

PageContentReplyValidationError is the validation error returned by PageContentReply.Validate if the designated constraints aren't met.

func (PageContentReplyValidationError) Cause

Cause function returns cause value.

func (PageContentReplyValidationError) Error

Error satisfies the builtin error interface

func (PageContentReplyValidationError) ErrorName

ErrorName returns error name.

func (PageContentReplyValidationError) Field

Field function returns field value.

func (PageContentReplyValidationError) Key

Key function returns key value.

func (PageContentReplyValidationError) Reason

Reason function returns reason value.

type PageContentRequest

type PageContentRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Name     *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PageContentRequest) Descriptor deprecated

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

Deprecated: Use PageContentRequest.ProtoReflect.Descriptor instead.

func (*PageContentRequest) GetName

func (x *PageContentRequest) GetName() string

func (*PageContentRequest) GetPage

func (x *PageContentRequest) GetPage() uint32

func (*PageContentRequest) GetPageSize

func (x *PageContentRequest) GetPageSize() uint32

func (*PageContentRequest) ProtoMessage

func (*PageContentRequest) ProtoMessage()

func (*PageContentRequest) ProtoReflect

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

func (*PageContentRequest) Reset

func (x *PageContentRequest) Reset()

func (*PageContentRequest) String

func (x *PageContentRequest) String() string

func (*PageContentRequest) Validate

func (m *PageContentRequest) Validate() error

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

func (m *PageContentRequest) ValidateAll() error

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

type PageContentRequestMultiError

type PageContentRequestMultiError []error

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

func (PageContentRequestMultiError) AllErrors

func (m PageContentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageContentRequestMultiError) Error

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

type PageContentRequestValidationError

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

PageContentRequestValidationError is the validation error returned by PageContentRequest.Validate if the designated constraints aren't met.

func (PageContentRequestValidationError) Cause

Cause function returns cause value.

func (PageContentRequestValidationError) Error

Error satisfies the builtin error interface

func (PageContentRequestValidationError) ErrorName

ErrorName returns error name.

func (PageContentRequestValidationError) Field

Field function returns field value.

func (PageContentRequestValidationError) Key

Key function returns key value.

func (PageContentRequestValidationError) Reason

Reason function returns reason value.

type PageSceneReply

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

func (*PageSceneReply) Descriptor deprecated

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

Deprecated: Use PageSceneReply.ProtoReflect.Descriptor instead.

func (*PageSceneReply) GetList

func (x *PageSceneReply) GetList() []*Scene

func (*PageSceneReply) GetTotal

func (x *PageSceneReply) GetTotal() uint32

func (*PageSceneReply) ProtoMessage

func (*PageSceneReply) ProtoMessage()

func (*PageSceneReply) ProtoReflect

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

func (*PageSceneReply) Reset

func (x *PageSceneReply) Reset()

func (*PageSceneReply) String

func (x *PageSceneReply) String() string

func (*PageSceneReply) Validate

func (m *PageSceneReply) Validate() error

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

func (m *PageSceneReply) ValidateAll() error

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

type PageSceneReplyMultiError

type PageSceneReplyMultiError []error

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

func (PageSceneReplyMultiError) AllErrors

func (m PageSceneReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageSceneReplyMultiError) Error

func (m PageSceneReplyMultiError) Error() string

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

type PageSceneReplyValidationError

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

PageSceneReplyValidationError is the validation error returned by PageSceneReply.Validate if the designated constraints aren't met.

func (PageSceneReplyValidationError) Cause

Cause function returns cause value.

func (PageSceneReplyValidationError) Error

Error satisfies the builtin error interface

func (PageSceneReplyValidationError) ErrorName

func (e PageSceneReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageSceneReplyValidationError) Field

Field function returns field value.

func (PageSceneReplyValidationError) Key

Key function returns key value.

func (PageSceneReplyValidationError) Reason

Reason function returns reason value.

type PageSceneRequest

type PageSceneRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Name     *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PageSceneRequest) Descriptor deprecated

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

Deprecated: Use PageSceneRequest.ProtoReflect.Descriptor instead.

func (*PageSceneRequest) GetName

func (x *PageSceneRequest) GetName() string

func (*PageSceneRequest) GetPage

func (x *PageSceneRequest) GetPage() uint32

func (*PageSceneRequest) GetPageSize

func (x *PageSceneRequest) GetPageSize() uint32

func (*PageSceneRequest) ProtoMessage

func (*PageSceneRequest) ProtoMessage()

func (*PageSceneRequest) ProtoReflect

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

func (*PageSceneRequest) Reset

func (x *PageSceneRequest) Reset()

func (*PageSceneRequest) String

func (x *PageSceneRequest) String() string

func (*PageSceneRequest) Validate

func (m *PageSceneRequest) Validate() error

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

func (m *PageSceneRequest) ValidateAll() error

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

type PageSceneRequestMultiError

type PageSceneRequestMultiError []error

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

func (PageSceneRequestMultiError) AllErrors

func (m PageSceneRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageSceneRequestMultiError) Error

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

type PageSceneRequestValidationError

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

PageSceneRequestValidationError is the validation error returned by PageSceneRequest.Validate if the designated constraints aren't met.

func (PageSceneRequestValidationError) Cause

Cause function returns cause value.

func (PageSceneRequestValidationError) Error

Error satisfies the builtin error interface

func (PageSceneRequestValidationError) ErrorName

ErrorName returns error name.

func (PageSceneRequestValidationError) Field

Field function returns field value.

func (PageSceneRequestValidationError) Key

Key function returns key value.

func (PageSceneRequestValidationError) Reason

Reason function returns reason value.

type Scene

type Scene struct {
	Id          uint32           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string           `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string           `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string           `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Contents    []*Scene_Content `protobuf:"bytes,5,rep,name=contents,proto3" json:"contents,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 (*Scene) Descriptor deprecated

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

Deprecated: Use Scene.ProtoReflect.Descriptor instead.

func (*Scene) GetContents

func (x *Scene) GetContents() []*Scene_Content

func (*Scene) GetCreatedAt

func (x *Scene) GetCreatedAt() uint32

func (*Scene) GetDescription

func (x *Scene) GetDescription() string

func (*Scene) GetId

func (x *Scene) GetId() uint32

func (*Scene) GetKeyword

func (x *Scene) GetKeyword() string

func (*Scene) GetName

func (x *Scene) GetName() string

func (*Scene) GetUpdatedAt

func (x *Scene) GetUpdatedAt() uint32

func (*Scene) ProtoMessage

func (*Scene) ProtoMessage()

func (*Scene) ProtoReflect

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

func (*Scene) Reset

func (x *Scene) Reset()

func (*Scene) String

func (x *Scene) String() string

func (*Scene) Validate

func (m *Scene) Validate() error

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

func (m *Scene) ValidateAll() error

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

type SceneMultiError

type SceneMultiError []error

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

func (SceneMultiError) AllErrors

func (m SceneMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SceneMultiError) Error

func (m SceneMultiError) Error() string

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

type SceneValidationError

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

SceneValidationError is the validation error returned by Scene.Validate if the designated constraints aren't met.

func (SceneValidationError) Cause

func (e SceneValidationError) Cause() error

Cause function returns cause value.

func (SceneValidationError) Error

func (e SceneValidationError) Error() string

Error satisfies the builtin error interface

func (SceneValidationError) ErrorName

func (e SceneValidationError) ErrorName() string

ErrorName returns error name.

func (SceneValidationError) Field

func (e SceneValidationError) Field() string

Field function returns field value.

func (SceneValidationError) Key

func (e SceneValidationError) Key() bool

Key function returns key value.

func (SceneValidationError) Reason

func (e SceneValidationError) Reason() string

Reason function returns reason value.

type Scene_Content

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

func (*Scene_Content) Descriptor deprecated

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

Deprecated: Use Scene_Content.ProtoReflect.Descriptor instead.

func (*Scene_Content) GetId

func (x *Scene_Content) GetId() uint32

func (*Scene_Content) GetName

func (x *Scene_Content) GetName() string

func (*Scene_Content) ProtoMessage

func (*Scene_Content) ProtoMessage()

func (*Scene_Content) ProtoReflect

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

func (*Scene_Content) Reset

func (x *Scene_Content) Reset()

func (*Scene_Content) String

func (x *Scene_Content) String() string

func (*Scene_Content) Validate

func (m *Scene_Content) Validate() error

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

func (m *Scene_Content) ValidateAll() error

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

type Scene_ContentMultiError

type Scene_ContentMultiError []error

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

func (Scene_ContentMultiError) AllErrors

func (m Scene_ContentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Scene_ContentMultiError) Error

func (m Scene_ContentMultiError) Error() string

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

type Scene_ContentValidationError

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

Scene_ContentValidationError is the validation error returned by Scene_Content.Validate if the designated constraints aren't met.

func (Scene_ContentValidationError) Cause

Cause function returns cause value.

func (Scene_ContentValidationError) Error

Error satisfies the builtin error interface

func (Scene_ContentValidationError) ErrorName

func (e Scene_ContentValidationError) ErrorName() string

ErrorName returns error name.

func (Scene_ContentValidationError) Field

Field function returns field value.

func (Scene_ContentValidationError) Key

Key function returns key value.

func (Scene_ContentValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	// 获取分页协议
	PageContent(ctx context.Context, in *PageContentRequest, opts ...grpc.CallOption) (*PageContentReply, error)
	// 获取协议的详细内容
	GetContent(ctx context.Context, in *GetContentRequest, opts ...grpc.CallOption) (*Content, error)
	// 新增协议内容
	AddContent(ctx context.Context, in *AddContentRequest, opts ...grpc.CallOption) (*AddContentReply, error)
	// 更新协议内容
	UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除指定的协议内容
	DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 获取分页协议场景
	PageScene(ctx context.Context, in *PageSceneRequest, opts ...grpc.CallOption) (*PageSceneReply, error)
	// 获取指定的协议场景以及协议场景包含的协议列表
	GetSceneByKeyword(ctx context.Context, in *GetSceneByKeywordRequest, opts ...grpc.CallOption) (*Scene, error)
	// 新增协议场景
	AddScene(ctx context.Context, in *AddSceneRequest, opts ...grpc.CallOption) (*AddSceneReply, error)
	// 更新协议场景
	UpdateScene(ctx context.Context, in *UpdateSceneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// 删除协议场景
	DeleteScene(ctx context.Context, in *DeleteSceneRequest, 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 {
	AddContent(ctx context.Context, req *AddContentRequest, opts ...http.CallOption) (rsp *AddContentReply, err error)
	AddScene(ctx context.Context, req *AddSceneRequest, opts ...http.CallOption) (rsp *AddSceneReply, err error)
	DeleteContent(ctx context.Context, req *DeleteContentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	DeleteScene(ctx context.Context, req *DeleteSceneRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	GetContent(ctx context.Context, req *GetContentRequest, opts ...http.CallOption) (rsp *Content, err error)
	GetSceneByKeyword(ctx context.Context, req *GetSceneByKeywordRequest, opts ...http.CallOption) (rsp *Scene, err error)
	PageContent(ctx context.Context, req *PageContentRequest, opts ...http.CallOption) (rsp *PageContentReply, err error)
	PageScene(ctx context.Context, req *PageSceneRequest, opts ...http.CallOption) (rsp *PageSceneReply, err error)
	UpdateContent(ctx context.Context, req *UpdateContentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	UpdateScene(ctx context.Context, req *UpdateSceneRequest, 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) AddContent

func (*ServiceHTTPClientImpl) AddScene

func (*ServiceHTTPClientImpl) DeleteContent

func (*ServiceHTTPClientImpl) DeleteScene

func (*ServiceHTTPClientImpl) GetContent

func (c *ServiceHTTPClientImpl) GetContent(ctx context.Context, in *GetContentRequest, opts ...http.CallOption) (*Content, error)

func (*ServiceHTTPClientImpl) GetSceneByKeyword

func (c *ServiceHTTPClientImpl) GetSceneByKeyword(ctx context.Context, in *GetSceneByKeywordRequest, opts ...http.CallOption) (*Scene, error)

func (*ServiceHTTPClientImpl) PageContent

func (*ServiceHTTPClientImpl) PageScene

func (*ServiceHTTPClientImpl) UpdateContent

func (*ServiceHTTPClientImpl) UpdateScene

type ServiceHTTPServer

type ServiceHTTPServer interface {
	// AddContent 新增协议内容
	AddContent(context.Context, *AddContentRequest) (*AddContentReply, error)
	// AddScene 新增协议场景
	AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error)
	// DeleteContent 删除指定的协议内容
	DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error)
	// DeleteScene 删除协议场景
	DeleteScene(context.Context, *DeleteSceneRequest) (*emptypb.Empty, error)
	// GetContent 获取协议的详细内容
	GetContent(context.Context, *GetContentRequest) (*Content, error)
	// GetSceneByKeyword 获取指定的协议场景以及协议场景包含的协议列表
	GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error)
	// PageContent 获取分页协议
	PageContent(context.Context, *PageContentRequest) (*PageContentReply, error)
	// PageScene 获取分页协议场景
	PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error)
	// UpdateContent 更新协议内容
	UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error)
	// UpdateScene 更新协议场景
	UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error)
}

type ServiceServer

type ServiceServer interface {
	// 获取分页协议
	PageContent(context.Context, *PageContentRequest) (*PageContentReply, error)
	// 获取协议的详细内容
	GetContent(context.Context, *GetContentRequest) (*Content, error)
	// 新增协议内容
	AddContent(context.Context, *AddContentRequest) (*AddContentReply, error)
	// 更新协议内容
	UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error)
	// 删除指定的协议内容
	DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error)
	// 获取分页协议场景
	PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error)
	// 获取指定的协议场景以及协议场景包含的协议列表
	GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error)
	// 新增协议场景
	AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error)
	// 更新协议场景
	UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error)
	// 删除协议场景
	DeleteScene(context.Context, *DeleteSceneRequest) (*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) AddContent

func (UnimplementedServiceServer) AddScene

func (UnimplementedServiceServer) DeleteContent

func (UnimplementedServiceServer) DeleteScene

func (UnimplementedServiceServer) GetContent

func (UnimplementedServiceServer) GetSceneByKeyword

func (UnimplementedServiceServer) PageContent

func (UnimplementedServiceServer) PageScene

func (UnimplementedServiceServer) UpdateContent

func (UnimplementedServiceServer) UpdateScene

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 UpdateContentRequest

type UpdateContentRequest struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Status      *bool  `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Content     string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateContentRequest) Descriptor deprecated

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

Deprecated: Use UpdateContentRequest.ProtoReflect.Descriptor instead.

func (*UpdateContentRequest) GetContent

func (x *UpdateContentRequest) GetContent() string

func (*UpdateContentRequest) GetDescription

func (x *UpdateContentRequest) GetDescription() string

func (*UpdateContentRequest) GetId

func (x *UpdateContentRequest) GetId() uint32

func (*UpdateContentRequest) GetName

func (x *UpdateContentRequest) GetName() string

func (*UpdateContentRequest) GetStatus

func (x *UpdateContentRequest) GetStatus() bool

func (*UpdateContentRequest) ProtoMessage

func (*UpdateContentRequest) ProtoMessage()

func (*UpdateContentRequest) ProtoReflect

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

func (*UpdateContentRequest) Reset

func (x *UpdateContentRequest) Reset()

func (*UpdateContentRequest) String

func (x *UpdateContentRequest) String() string

func (*UpdateContentRequest) Validate

func (m *UpdateContentRequest) Validate() error

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

func (m *UpdateContentRequest) ValidateAll() error

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

type UpdateContentRequestMultiError

type UpdateContentRequestMultiError []error

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

func (UpdateContentRequestMultiError) AllErrors

func (m UpdateContentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateContentRequestMultiError) Error

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

type UpdateContentRequestValidationError

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

UpdateContentRequestValidationError is the validation error returned by UpdateContentRequest.Validate if the designated constraints aren't met.

func (UpdateContentRequestValidationError) Cause

Cause function returns cause value.

func (UpdateContentRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateContentRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateContentRequestValidationError) Field

Field function returns field value.

func (UpdateContentRequestValidationError) Key

Key function returns key value.

func (UpdateContentRequestValidationError) Reason

Reason function returns reason value.

type UpdateSceneRequest

type UpdateSceneRequest struct {
	Id          uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string   `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Name        string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	ContentIds  []uint32 `protobuf:"varint,5,rep,packed,name=content_ids,json=contentIds,proto3" json:"content_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSceneRequest) Descriptor deprecated

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

Deprecated: Use UpdateSceneRequest.ProtoReflect.Descriptor instead.

func (*UpdateSceneRequest) GetContentIds

func (x *UpdateSceneRequest) GetContentIds() []uint32

func (*UpdateSceneRequest) GetDescription

func (x *UpdateSceneRequest) GetDescription() string

func (*UpdateSceneRequest) GetId

func (x *UpdateSceneRequest) GetId() uint32

func (*UpdateSceneRequest) GetKeyword

func (x *UpdateSceneRequest) GetKeyword() string

func (*UpdateSceneRequest) GetName

func (x *UpdateSceneRequest) GetName() string

func (*UpdateSceneRequest) ProtoMessage

func (*UpdateSceneRequest) ProtoMessage()

func (*UpdateSceneRequest) ProtoReflect

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

func (*UpdateSceneRequest) Reset

func (x *UpdateSceneRequest) Reset()

func (*UpdateSceneRequest) String

func (x *UpdateSceneRequest) String() string

func (*UpdateSceneRequest) Validate

func (m *UpdateSceneRequest) Validate() error

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

func (m *UpdateSceneRequest) ValidateAll() error

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

type UpdateSceneRequestMultiError

type UpdateSceneRequestMultiError []error

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

func (UpdateSceneRequestMultiError) AllErrors

func (m UpdateSceneRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateSceneRequestMultiError) Error

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

type UpdateSceneRequestValidationError

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

UpdateSceneRequestValidationError is the validation error returned by UpdateSceneRequest.Validate if the designated constraints aren't met.

func (UpdateSceneRequestValidationError) Cause

Cause function returns cause value.

func (UpdateSceneRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateSceneRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateSceneRequestValidationError) Field

Field function returns field value.

func (UpdateSceneRequestValidationError) Key

Key function returns key value.

func (UpdateSceneRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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