v1

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocumentService_CreateDocument_FullMethodName      = "/api.admin.document.v1.DocumentService/CreateDocument"
	DocumentService_UpdateDocument_FullMethodName      = "/api.admin.document.v1.DocumentService/UpdateDocument"
	DocumentService_DeleteDocument_FullMethodName      = "/api.admin.document.v1.DocumentService/DeleteDocument"
	DocumentService_BatchDeleteDocument_FullMethodName = "/api.admin.document.v1.DocumentService/BatchDeleteDocument"
	DocumentService_GetDocumentList_FullMethodName     = "/api.admin.document.v1.DocumentService/GetDocumentList"
	DocumentService_GetDocumentDetail_FullMethodName   = "/api.admin.document.v1.DocumentService/GetDocumentDetail"
)
View Source
const OperationDocumentServiceBatchDeleteDocument = "/api.admin.document.v1.DocumentService/BatchDeleteDocument"
View Source
const OperationDocumentServiceCreateDocument = "/api.admin.document.v1.DocumentService/CreateDocument"
View Source
const OperationDocumentServiceDeleteDocument = "/api.admin.document.v1.DocumentService/DeleteDocument"
View Source
const OperationDocumentServiceGetDocumentDetail = "/api.admin.document.v1.DocumentService/GetDocumentDetail"
View Source
const OperationDocumentServiceGetDocumentList = "/api.admin.document.v1.DocumentService/GetDocumentList"
View Source
const OperationDocumentServiceUpdateDocument = "/api.admin.document.v1.DocumentService/UpdateDocument"

Variables

View Source
var DocumentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.document.v1.DocumentService",
	HandlerType: (*DocumentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDocument",
			Handler:    _DocumentService_CreateDocument_Handler,
		},
		{
			MethodName: "UpdateDocument",
			Handler:    _DocumentService_UpdateDocument_Handler,
		},
		{
			MethodName: "DeleteDocument",
			Handler:    _DocumentService_DeleteDocument_Handler,
		},
		{
			MethodName: "BatchDeleteDocument",
			Handler:    _DocumentService_BatchDeleteDocument_Handler,
		},
		{
			MethodName: "GetDocumentList",
			Handler:    _DocumentService_GetDocumentList_Handler,
		},
		{
			MethodName: "GetDocumentDetail",
			Handler:    _DocumentService_GetDocumentDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/document/v1/document.proto",
}

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

View Source
var File_admin_document_v1_document_proto protoreflect.FileDescriptor

Functions

func RegisterDocumentServiceHTTPServer

func RegisterDocumentServiceHTTPServer(s *http.Server, srv DocumentServiceHTTPServer)

func RegisterDocumentServiceServer

func RegisterDocumentServiceServer(s grpc.ServiceRegistrar, srv DocumentServiceServer)

Types

type BatchDeleteDocumentData

type BatchDeleteDocumentData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

批量删除文档数据

func (*BatchDeleteDocumentData) Descriptor deprecated

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

Deprecated: Use BatchDeleteDocumentData.ProtoReflect.Descriptor instead.

func (*BatchDeleteDocumentData) GetSuccess

func (x *BatchDeleteDocumentData) GetSuccess() bool

func (*BatchDeleteDocumentData) ProtoMessage

func (*BatchDeleteDocumentData) ProtoMessage()

func (*BatchDeleteDocumentData) ProtoReflect

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

func (*BatchDeleteDocumentData) Reset

func (x *BatchDeleteDocumentData) Reset()

func (*BatchDeleteDocumentData) String

func (x *BatchDeleteDocumentData) String() string

func (*BatchDeleteDocumentData) Validate

func (m *BatchDeleteDocumentData) Validate() error

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

func (m *BatchDeleteDocumentData) ValidateAll() error

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

type BatchDeleteDocumentDataMultiError

type BatchDeleteDocumentDataMultiError []error

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

func (BatchDeleteDocumentDataMultiError) AllErrors

func (m BatchDeleteDocumentDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchDeleteDocumentDataMultiError) Error

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

type BatchDeleteDocumentDataValidationError

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

BatchDeleteDocumentDataValidationError is the validation error returned by BatchDeleteDocumentData.Validate if the designated constraints aren't met.

func (BatchDeleteDocumentDataValidationError) Cause

Cause function returns cause value.

func (BatchDeleteDocumentDataValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteDocumentDataValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteDocumentDataValidationError) Field

Field function returns field value.

func (BatchDeleteDocumentDataValidationError) Key

Key function returns key value.

func (BatchDeleteDocumentDataValidationError) Reason

Reason function returns reason value.

type BatchDeleteDocumentReply

type BatchDeleteDocumentReply struct {
	Code    int32                    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string                   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *BatchDeleteDocumentData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

批量删除文档响应

func (*BatchDeleteDocumentReply) Descriptor deprecated

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

Deprecated: Use BatchDeleteDocumentReply.ProtoReflect.Descriptor instead.

func (*BatchDeleteDocumentReply) GetCode

func (x *BatchDeleteDocumentReply) GetCode() int32

func (*BatchDeleteDocumentReply) GetData

func (*BatchDeleteDocumentReply) GetMessage

func (x *BatchDeleteDocumentReply) GetMessage() string

func (*BatchDeleteDocumentReply) ProtoMessage

func (*BatchDeleteDocumentReply) ProtoMessage()

func (*BatchDeleteDocumentReply) ProtoReflect

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

func (*BatchDeleteDocumentReply) Reset

func (x *BatchDeleteDocumentReply) Reset()

func (*BatchDeleteDocumentReply) String

func (x *BatchDeleteDocumentReply) String() string

func (*BatchDeleteDocumentReply) Validate

func (m *BatchDeleteDocumentReply) Validate() error

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

func (m *BatchDeleteDocumentReply) ValidateAll() error

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

type BatchDeleteDocumentReplyMultiError

type BatchDeleteDocumentReplyMultiError []error

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

func (BatchDeleteDocumentReplyMultiError) AllErrors

func (m BatchDeleteDocumentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BatchDeleteDocumentReplyMultiError) Error

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

type BatchDeleteDocumentReplyValidationError

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

BatchDeleteDocumentReplyValidationError is the validation error returned by BatchDeleteDocumentReply.Validate if the designated constraints aren't met.

func (BatchDeleteDocumentReplyValidationError) Cause

Cause function returns cause value.

func (BatchDeleteDocumentReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteDocumentReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteDocumentReplyValidationError) Field

Field function returns field value.

func (BatchDeleteDocumentReplyValidationError) Key

Key function returns key value.

func (BatchDeleteDocumentReplyValidationError) Reason

Reason function returns reason value.

type BatchDeleteDocumentRequest

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

批量删除文档请求

func (*BatchDeleteDocumentRequest) Descriptor deprecated

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

Deprecated: Use BatchDeleteDocumentRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteDocumentRequest) GetIds

func (x *BatchDeleteDocumentRequest) GetIds() []int64

func (*BatchDeleteDocumentRequest) ProtoMessage

func (*BatchDeleteDocumentRequest) ProtoMessage()

func (*BatchDeleteDocumentRequest) ProtoReflect

func (*BatchDeleteDocumentRequest) Reset

func (x *BatchDeleteDocumentRequest) Reset()

func (*BatchDeleteDocumentRequest) String

func (x *BatchDeleteDocumentRequest) String() string

func (*BatchDeleteDocumentRequest) Validate

func (m *BatchDeleteDocumentRequest) Validate() error

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

func (m *BatchDeleteDocumentRequest) ValidateAll() error

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

type BatchDeleteDocumentRequestMultiError

type BatchDeleteDocumentRequestMultiError []error

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

func (BatchDeleteDocumentRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchDeleteDocumentRequestMultiError) Error

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

type BatchDeleteDocumentRequestValidationError

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

BatchDeleteDocumentRequestValidationError is the validation error returned by BatchDeleteDocumentRequest.Validate if the designated constraints aren't met.

func (BatchDeleteDocumentRequestValidationError) Cause

Cause function returns cause value.

func (BatchDeleteDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteDocumentRequestValidationError) Field

Field function returns field value.

func (BatchDeleteDocumentRequestValidationError) Key

Key function returns key value.

func (BatchDeleteDocumentRequestValidationError) Reason

Reason function returns reason value.

type CreateDocumentReply

type CreateDocumentReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	// contains filtered or unexported fields
}

创建文档响应

func (*CreateDocumentReply) Descriptor deprecated

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

Deprecated: Use CreateDocumentReply.ProtoReflect.Descriptor instead.

func (*CreateDocumentReply) GetCode

func (x *CreateDocumentReply) GetCode() int32

func (*CreateDocumentReply) GetMessage

func (x *CreateDocumentReply) GetMessage() string

func (*CreateDocumentReply) ProtoMessage

func (*CreateDocumentReply) ProtoMessage()

func (*CreateDocumentReply) ProtoReflect

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

func (*CreateDocumentReply) Reset

func (x *CreateDocumentReply) Reset()

func (*CreateDocumentReply) String

func (x *CreateDocumentReply) String() string

func (*CreateDocumentReply) Validate

func (m *CreateDocumentReply) Validate() error

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

func (m *CreateDocumentReply) ValidateAll() error

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

type CreateDocumentReplyMultiError

type CreateDocumentReplyMultiError []error

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

func (CreateDocumentReplyMultiError) AllErrors

func (m CreateDocumentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDocumentReplyMultiError) Error

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

type CreateDocumentReplyValidationError

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

CreateDocumentReplyValidationError is the validation error returned by CreateDocumentReply.Validate if the designated constraints aren't met.

func (CreateDocumentReplyValidationError) Cause

Cause function returns cause value.

func (CreateDocumentReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentReplyValidationError) Field

Field function returns field value.

func (CreateDocumentReplyValidationError) Key

Key function returns key value.

func (CreateDocumentReplyValidationError) Reason

Reason function returns reason value.

type CreateDocumentRequest

type CreateDocumentRequest struct {
	Title   string                `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Content string                `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Tags    []string              `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	Show    *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=show,proto3" json:"show,omitempty"`
	// contains filtered or unexported fields
}

创建文档请求

func (*CreateDocumentRequest) Descriptor deprecated

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

Deprecated: Use CreateDocumentRequest.ProtoReflect.Descriptor instead.

func (*CreateDocumentRequest) GetContent

func (x *CreateDocumentRequest) GetContent() string

func (*CreateDocumentRequest) GetShow

func (*CreateDocumentRequest) GetTags

func (x *CreateDocumentRequest) GetTags() []string

func (*CreateDocumentRequest) GetTitle

func (x *CreateDocumentRequest) GetTitle() string

func (*CreateDocumentRequest) ProtoMessage

func (*CreateDocumentRequest) ProtoMessage()

func (*CreateDocumentRequest) ProtoReflect

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

func (*CreateDocumentRequest) Reset

func (x *CreateDocumentRequest) Reset()

func (*CreateDocumentRequest) String

func (x *CreateDocumentRequest) String() string

func (*CreateDocumentRequest) Validate

func (m *CreateDocumentRequest) Validate() error

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

func (m *CreateDocumentRequest) ValidateAll() error

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

type CreateDocumentRequestMultiError

type CreateDocumentRequestMultiError []error

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

func (CreateDocumentRequestMultiError) AllErrors

func (m CreateDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDocumentRequestMultiError) Error

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

type CreateDocumentRequestValidationError

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

CreateDocumentRequestValidationError is the validation error returned by CreateDocumentRequest.Validate if the designated constraints aren't met.

func (CreateDocumentRequestValidationError) Cause

Cause function returns cause value.

func (CreateDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDocumentRequestValidationError) Field

Field function returns field value.

func (CreateDocumentRequestValidationError) Key

Key function returns key value.

func (CreateDocumentRequestValidationError) Reason

Reason function returns reason value.

type DeleteDocumentData

type DeleteDocumentData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

删除文档数据

func (*DeleteDocumentData) Descriptor deprecated

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

Deprecated: Use DeleteDocumentData.ProtoReflect.Descriptor instead.

func (*DeleteDocumentData) GetSuccess

func (x *DeleteDocumentData) GetSuccess() bool

func (*DeleteDocumentData) ProtoMessage

func (*DeleteDocumentData) ProtoMessage()

func (*DeleteDocumentData) ProtoReflect

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

func (*DeleteDocumentData) Reset

func (x *DeleteDocumentData) Reset()

func (*DeleteDocumentData) String

func (x *DeleteDocumentData) String() string

func (*DeleteDocumentData) Validate

func (m *DeleteDocumentData) Validate() error

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

func (m *DeleteDocumentData) ValidateAll() error

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

type DeleteDocumentDataMultiError

type DeleteDocumentDataMultiError []error

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

func (DeleteDocumentDataMultiError) AllErrors

func (m DeleteDocumentDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDocumentDataMultiError) Error

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

type DeleteDocumentDataValidationError

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

DeleteDocumentDataValidationError is the validation error returned by DeleteDocumentData.Validate if the designated constraints aren't met.

func (DeleteDocumentDataValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentDataValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentDataValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentDataValidationError) Field

Field function returns field value.

func (DeleteDocumentDataValidationError) Key

Key function returns key value.

func (DeleteDocumentDataValidationError) Reason

Reason function returns reason value.

type DeleteDocumentReply

type DeleteDocumentReply struct {
	Code    int32               `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *DeleteDocumentData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

删除文档响应

func (*DeleteDocumentReply) Descriptor deprecated

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

Deprecated: Use DeleteDocumentReply.ProtoReflect.Descriptor instead.

func (*DeleteDocumentReply) GetCode

func (x *DeleteDocumentReply) GetCode() int32

func (*DeleteDocumentReply) GetData

func (*DeleteDocumentReply) GetMessage

func (x *DeleteDocumentReply) GetMessage() string

func (*DeleteDocumentReply) ProtoMessage

func (*DeleteDocumentReply) ProtoMessage()

func (*DeleteDocumentReply) ProtoReflect

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

func (*DeleteDocumentReply) Reset

func (x *DeleteDocumentReply) Reset()

func (*DeleteDocumentReply) String

func (x *DeleteDocumentReply) String() string

func (*DeleteDocumentReply) Validate

func (m *DeleteDocumentReply) Validate() error

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

func (m *DeleteDocumentReply) ValidateAll() error

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

type DeleteDocumentReplyMultiError

type DeleteDocumentReplyMultiError []error

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

func (DeleteDocumentReplyMultiError) AllErrors

func (m DeleteDocumentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDocumentReplyMultiError) Error

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

type DeleteDocumentReplyValidationError

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

DeleteDocumentReplyValidationError is the validation error returned by DeleteDocumentReply.Validate if the designated constraints aren't met.

func (DeleteDocumentReplyValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentReplyValidationError) Field

Field function returns field value.

func (DeleteDocumentReplyValidationError) Key

Key function returns key value.

func (DeleteDocumentReplyValidationError) Reason

Reason function returns reason value.

type DeleteDocumentRequest

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

删除文档请求

func (*DeleteDocumentRequest) Descriptor deprecated

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

Deprecated: Use DeleteDocumentRequest.ProtoReflect.Descriptor instead.

func (*DeleteDocumentRequest) GetId

func (x *DeleteDocumentRequest) GetId() int64

func (*DeleteDocumentRequest) ProtoMessage

func (*DeleteDocumentRequest) ProtoMessage()

func (*DeleteDocumentRequest) ProtoReflect

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

func (*DeleteDocumentRequest) Reset

func (x *DeleteDocumentRequest) Reset()

func (*DeleteDocumentRequest) String

func (x *DeleteDocumentRequest) String() string

func (*DeleteDocumentRequest) Validate

func (m *DeleteDocumentRequest) Validate() error

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

func (m *DeleteDocumentRequest) ValidateAll() error

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

type DeleteDocumentRequestMultiError

type DeleteDocumentRequestMultiError []error

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

func (DeleteDocumentRequestMultiError) AllErrors

func (m DeleteDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteDocumentRequestMultiError) Error

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

type DeleteDocumentRequestValidationError

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

DeleteDocumentRequestValidationError is the validation error returned by DeleteDocumentRequest.Validate if the designated constraints aren't met.

func (DeleteDocumentRequestValidationError) Cause

Cause function returns cause value.

func (DeleteDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDocumentRequestValidationError) Field

Field function returns field value.

func (DeleteDocumentRequestValidationError) Key

Key function returns key value.

func (DeleteDocumentRequestValidationError) Reason

Reason function returns reason value.

type Document

type Document struct {
	Id        int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title     string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content   string   `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Tags      []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	Show      bool     `protobuf:"varint,5,opt,name=show,proto3" json:"show,omitempty"`
	CreatedAt int64    `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Unix timestamp in seconds
	UpdatedAt int64    `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Unix timestamp in seconds
	// contains filtered or unexported fields
}

文档信息

func (*Document) Descriptor deprecated

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

Deprecated: Use Document.ProtoReflect.Descriptor instead.

func (*Document) GetContent

func (x *Document) GetContent() string

func (*Document) GetCreatedAt

func (x *Document) GetCreatedAt() int64

func (*Document) GetId

func (x *Document) GetId() int64

func (*Document) GetShow

func (x *Document) GetShow() bool

func (*Document) GetTags

func (x *Document) GetTags() []string

func (*Document) GetTitle

func (x *Document) GetTitle() string

func (*Document) GetUpdatedAt

func (x *Document) GetUpdatedAt() int64

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) ProtoReflect

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

func (*Document) Reset

func (x *Document) Reset()

func (*Document) String

func (x *Document) String() string

func (*Document) Validate

func (m *Document) Validate() error

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

func (m *Document) ValidateAll() error

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

type DocumentMultiError

type DocumentMultiError []error

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

func (DocumentMultiError) AllErrors

func (m DocumentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DocumentMultiError) Error

func (m DocumentMultiError) Error() string

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

type DocumentServiceClient

type DocumentServiceClient interface {
	// 创建文档
	CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*CreateDocumentReply, error)
	// 更新文档
	UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...grpc.CallOption) (*UpdateDocumentReply, error)
	// 删除文档
	DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*DeleteDocumentReply, error)
	// 批量删除文档
	BatchDeleteDocument(ctx context.Context, in *BatchDeleteDocumentRequest, opts ...grpc.CallOption) (*BatchDeleteDocumentReply, error)
	// 获取文档列表
	GetDocumentList(ctx context.Context, in *GetDocumentListRequest, opts ...grpc.CallOption) (*GetDocumentListReply, error)
	// 获取文档详情
	GetDocumentDetail(ctx context.Context, in *GetDocumentDetailRequest, opts ...grpc.CallOption) (*GetDocumentDetailReply, error)
}

DocumentServiceClient is the client API for DocumentService 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.

文档管理服务

type DocumentServiceHTTPClient

type DocumentServiceHTTPClient interface {
	// BatchDeleteDocument 批量删除文档
	BatchDeleteDocument(ctx context.Context, req *BatchDeleteDocumentRequest, opts ...http.CallOption) (rsp *BatchDeleteDocumentReply, err error)
	// CreateDocument 创建文档
	CreateDocument(ctx context.Context, req *CreateDocumentRequest, opts ...http.CallOption) (rsp *CreateDocumentReply, err error)
	// DeleteDocument 删除文档
	DeleteDocument(ctx context.Context, req *DeleteDocumentRequest, opts ...http.CallOption) (rsp *DeleteDocumentReply, err error)
	// GetDocumentDetail 获取文档详情
	GetDocumentDetail(ctx context.Context, req *GetDocumentDetailRequest, opts ...http.CallOption) (rsp *GetDocumentDetailReply, err error)
	// GetDocumentList 获取文档列表
	GetDocumentList(ctx context.Context, req *GetDocumentListRequest, opts ...http.CallOption) (rsp *GetDocumentListReply, err error)
	// UpdateDocument 更新文档
	UpdateDocument(ctx context.Context, req *UpdateDocumentRequest, opts ...http.CallOption) (rsp *UpdateDocumentReply, err error)
}

func NewDocumentServiceHTTPClient

func NewDocumentServiceHTTPClient(client *http.Client) DocumentServiceHTTPClient

type DocumentServiceHTTPClientImpl

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

func (*DocumentServiceHTTPClientImpl) BatchDeleteDocument

BatchDeleteDocument 批量删除文档

func (*DocumentServiceHTTPClientImpl) CreateDocument

CreateDocument 创建文档

func (*DocumentServiceHTTPClientImpl) DeleteDocument

DeleteDocument 删除文档

func (*DocumentServiceHTTPClientImpl) GetDocumentDetail

GetDocumentDetail 获取文档详情

func (*DocumentServiceHTTPClientImpl) GetDocumentList

GetDocumentList 获取文档列表

func (*DocumentServiceHTTPClientImpl) UpdateDocument

UpdateDocument 更新文档

type DocumentServiceHTTPServer

type DocumentServiceHTTPServer interface {
	// BatchDeleteDocument 批量删除文档
	BatchDeleteDocument(context.Context, *BatchDeleteDocumentRequest) (*BatchDeleteDocumentReply, error)
	// CreateDocument 创建文档
	CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentReply, error)
	// DeleteDocument 删除文档
	DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentReply, error)
	// GetDocumentDetail 获取文档详情
	GetDocumentDetail(context.Context, *GetDocumentDetailRequest) (*GetDocumentDetailReply, error)
	// GetDocumentList 获取文档列表
	GetDocumentList(context.Context, *GetDocumentListRequest) (*GetDocumentListReply, error)
	// UpdateDocument 更新文档
	UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentReply, error)
}

type DocumentServiceServer

type DocumentServiceServer interface {
	// 创建文档
	CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentReply, error)
	// 更新文档
	UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentReply, error)
	// 删除文档
	DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentReply, error)
	// 批量删除文档
	BatchDeleteDocument(context.Context, *BatchDeleteDocumentRequest) (*BatchDeleteDocumentReply, error)
	// 获取文档列表
	GetDocumentList(context.Context, *GetDocumentListRequest) (*GetDocumentListReply, error)
	// 获取文档详情
	GetDocumentDetail(context.Context, *GetDocumentDetailRequest) (*GetDocumentDetailReply, error)
	// contains filtered or unexported methods
}

DocumentServiceServer is the server API for DocumentService service. All implementations must embed UnimplementedDocumentServiceServer for forward compatibility.

文档管理服务

type DocumentValidationError

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

DocumentValidationError is the validation error returned by Document.Validate if the designated constraints aren't met.

func (DocumentValidationError) Cause

func (e DocumentValidationError) Cause() error

Cause function returns cause value.

func (DocumentValidationError) Error

func (e DocumentValidationError) Error() string

Error satisfies the builtin error interface

func (DocumentValidationError) ErrorName

func (e DocumentValidationError) ErrorName() string

ErrorName returns error name.

func (DocumentValidationError) Field

func (e DocumentValidationError) Field() string

Field function returns field value.

func (DocumentValidationError) Key

func (e DocumentValidationError) Key() bool

Key function returns key value.

func (DocumentValidationError) Reason

func (e DocumentValidationError) Reason() string

Reason function returns reason value.

type GetDocumentDetailData

type GetDocumentDetailData struct {
	Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	// contains filtered or unexported fields
}

获取文档详情数据

func (*GetDocumentDetailData) Descriptor deprecated

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

Deprecated: Use GetDocumentDetailData.ProtoReflect.Descriptor instead.

func (*GetDocumentDetailData) GetDocument

func (x *GetDocumentDetailData) GetDocument() *Document

func (*GetDocumentDetailData) ProtoMessage

func (*GetDocumentDetailData) ProtoMessage()

func (*GetDocumentDetailData) ProtoReflect

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

func (*GetDocumentDetailData) Reset

func (x *GetDocumentDetailData) Reset()

func (*GetDocumentDetailData) String

func (x *GetDocumentDetailData) String() string

func (*GetDocumentDetailData) Validate

func (m *GetDocumentDetailData) Validate() error

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

func (m *GetDocumentDetailData) ValidateAll() error

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

type GetDocumentDetailDataMultiError

type GetDocumentDetailDataMultiError []error

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

func (GetDocumentDetailDataMultiError) AllErrors

func (m GetDocumentDetailDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentDetailDataMultiError) Error

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

type GetDocumentDetailDataValidationError

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

GetDocumentDetailDataValidationError is the validation error returned by GetDocumentDetailData.Validate if the designated constraints aren't met.

func (GetDocumentDetailDataValidationError) Cause

Cause function returns cause value.

func (GetDocumentDetailDataValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentDetailDataValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentDetailDataValidationError) Field

Field function returns field value.

func (GetDocumentDetailDataValidationError) Key

Key function returns key value.

func (GetDocumentDetailDataValidationError) Reason

Reason function returns reason value.

type GetDocumentDetailReply

type GetDocumentDetailReply struct {
	Code    int32                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *GetDocumentDetailData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

获取文档详情响应

func (*GetDocumentDetailReply) Descriptor deprecated

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

Deprecated: Use GetDocumentDetailReply.ProtoReflect.Descriptor instead.

func (*GetDocumentDetailReply) GetCode

func (x *GetDocumentDetailReply) GetCode() int32

func (*GetDocumentDetailReply) GetData

func (*GetDocumentDetailReply) GetMessage

func (x *GetDocumentDetailReply) GetMessage() string

func (*GetDocumentDetailReply) ProtoMessage

func (*GetDocumentDetailReply) ProtoMessage()

func (*GetDocumentDetailReply) ProtoReflect

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

func (*GetDocumentDetailReply) Reset

func (x *GetDocumentDetailReply) Reset()

func (*GetDocumentDetailReply) String

func (x *GetDocumentDetailReply) String() string

func (*GetDocumentDetailReply) Validate

func (m *GetDocumentDetailReply) Validate() error

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

func (m *GetDocumentDetailReply) ValidateAll() error

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

type GetDocumentDetailReplyMultiError

type GetDocumentDetailReplyMultiError []error

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

func (GetDocumentDetailReplyMultiError) AllErrors

func (m GetDocumentDetailReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentDetailReplyMultiError) Error

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

type GetDocumentDetailReplyValidationError

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

GetDocumentDetailReplyValidationError is the validation error returned by GetDocumentDetailReply.Validate if the designated constraints aren't met.

func (GetDocumentDetailReplyValidationError) Cause

Cause function returns cause value.

func (GetDocumentDetailReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentDetailReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentDetailReplyValidationError) Field

Field function returns field value.

func (GetDocumentDetailReplyValidationError) Key

Key function returns key value.

func (GetDocumentDetailReplyValidationError) Reason

Reason function returns reason value.

type GetDocumentDetailRequest

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

获取文档详情请求

func (*GetDocumentDetailRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentDetailRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentDetailRequest) GetId

func (x *GetDocumentDetailRequest) GetId() int64

func (*GetDocumentDetailRequest) ProtoMessage

func (*GetDocumentDetailRequest) ProtoMessage()

func (*GetDocumentDetailRequest) ProtoReflect

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

func (*GetDocumentDetailRequest) Reset

func (x *GetDocumentDetailRequest) Reset()

func (*GetDocumentDetailRequest) String

func (x *GetDocumentDetailRequest) String() string

func (*GetDocumentDetailRequest) Validate

func (m *GetDocumentDetailRequest) Validate() error

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

func (m *GetDocumentDetailRequest) ValidateAll() error

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

type GetDocumentDetailRequestMultiError

type GetDocumentDetailRequestMultiError []error

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

func (GetDocumentDetailRequestMultiError) AllErrors

func (m GetDocumentDetailRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentDetailRequestMultiError) Error

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

type GetDocumentDetailRequestValidationError

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

GetDocumentDetailRequestValidationError is the validation error returned by GetDocumentDetailRequest.Validate if the designated constraints aren't met.

func (GetDocumentDetailRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentDetailRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentDetailRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentDetailRequestValidationError) Field

Field function returns field value.

func (GetDocumentDetailRequestValidationError) Key

Key function returns key value.

func (GetDocumentDetailRequestValidationError) Reason

Reason function returns reason value.

type GetDocumentListData

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

获取文档列表数据

func (*GetDocumentListData) Descriptor deprecated

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

Deprecated: Use GetDocumentListData.ProtoReflect.Descriptor instead.

func (*GetDocumentListData) GetList

func (x *GetDocumentListData) GetList() []*Document

func (*GetDocumentListData) GetTotal

func (x *GetDocumentListData) GetTotal() int32

func (*GetDocumentListData) ProtoMessage

func (*GetDocumentListData) ProtoMessage()

func (*GetDocumentListData) ProtoReflect

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

func (*GetDocumentListData) Reset

func (x *GetDocumentListData) Reset()

func (*GetDocumentListData) String

func (x *GetDocumentListData) String() string

func (*GetDocumentListData) Validate

func (m *GetDocumentListData) Validate() error

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

func (m *GetDocumentListData) ValidateAll() error

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

type GetDocumentListDataMultiError

type GetDocumentListDataMultiError []error

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

func (GetDocumentListDataMultiError) AllErrors

func (m GetDocumentListDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentListDataMultiError) Error

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

type GetDocumentListDataValidationError

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

GetDocumentListDataValidationError is the validation error returned by GetDocumentListData.Validate if the designated constraints aren't met.

func (GetDocumentListDataValidationError) Cause

Cause function returns cause value.

func (GetDocumentListDataValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentListDataValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentListDataValidationError) Field

Field function returns field value.

func (GetDocumentListDataValidationError) Key

Key function returns key value.

func (GetDocumentListDataValidationError) Reason

Reason function returns reason value.

type GetDocumentListReply

type GetDocumentListReply struct {
	Code    int32                `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string               `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *GetDocumentListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

获取文档列表响应

func (*GetDocumentListReply) Descriptor deprecated

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

Deprecated: Use GetDocumentListReply.ProtoReflect.Descriptor instead.

func (*GetDocumentListReply) GetCode

func (x *GetDocumentListReply) GetCode() int32

func (*GetDocumentListReply) GetData

func (*GetDocumentListReply) GetMessage

func (x *GetDocumentListReply) GetMessage() string

func (*GetDocumentListReply) ProtoMessage

func (*GetDocumentListReply) ProtoMessage()

func (*GetDocumentListReply) ProtoReflect

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

func (*GetDocumentListReply) Reset

func (x *GetDocumentListReply) Reset()

func (*GetDocumentListReply) String

func (x *GetDocumentListReply) String() string

func (*GetDocumentListReply) Validate

func (m *GetDocumentListReply) Validate() error

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

func (m *GetDocumentListReply) ValidateAll() error

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

type GetDocumentListReplyMultiError

type GetDocumentListReplyMultiError []error

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

func (GetDocumentListReplyMultiError) AllErrors

func (m GetDocumentListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentListReplyMultiError) Error

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

type GetDocumentListReplyValidationError

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

GetDocumentListReplyValidationError is the validation error returned by GetDocumentListReply.Validate if the designated constraints aren't met.

func (GetDocumentListReplyValidationError) Cause

Cause function returns cause value.

func (GetDocumentListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentListReplyValidationError) Field

Field function returns field value.

func (GetDocumentListReplyValidationError) Key

Key function returns key value.

func (GetDocumentListReplyValidationError) Reason

Reason function returns reason value.

type GetDocumentListRequest

type GetDocumentListRequest struct {
	Page   int64  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size   int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Tag    string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
	Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"`
	// contains filtered or unexported fields
}

获取文档列表请求

func (*GetDocumentListRequest) Descriptor deprecated

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

Deprecated: Use GetDocumentListRequest.ProtoReflect.Descriptor instead.

func (*GetDocumentListRequest) GetPage

func (x *GetDocumentListRequest) GetPage() int64

func (*GetDocumentListRequest) GetSearch

func (x *GetDocumentListRequest) GetSearch() string

func (*GetDocumentListRequest) GetSize

func (x *GetDocumentListRequest) GetSize() int64

func (*GetDocumentListRequest) GetTag

func (x *GetDocumentListRequest) GetTag() string

func (*GetDocumentListRequest) ProtoMessage

func (*GetDocumentListRequest) ProtoMessage()

func (*GetDocumentListRequest) ProtoReflect

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

func (*GetDocumentListRequest) Reset

func (x *GetDocumentListRequest) Reset()

func (*GetDocumentListRequest) String

func (x *GetDocumentListRequest) String() string

func (*GetDocumentListRequest) Validate

func (m *GetDocumentListRequest) Validate() error

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

func (m *GetDocumentListRequest) ValidateAll() error

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

type GetDocumentListRequestMultiError

type GetDocumentListRequestMultiError []error

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

func (GetDocumentListRequestMultiError) AllErrors

func (m GetDocumentListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDocumentListRequestMultiError) Error

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

type GetDocumentListRequestValidationError

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

GetDocumentListRequestValidationError is the validation error returned by GetDocumentListRequest.Validate if the designated constraints aren't met.

func (GetDocumentListRequestValidationError) Cause

Cause function returns cause value.

func (GetDocumentListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDocumentListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDocumentListRequestValidationError) Field

Field function returns field value.

func (GetDocumentListRequestValidationError) Key

Key function returns key value.

func (GetDocumentListRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedDocumentServiceServer

type UnimplementedDocumentServiceServer struct{}

UnimplementedDocumentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDocumentServiceServer) BatchDeleteDocument

func (UnimplementedDocumentServiceServer) CreateDocument

func (UnimplementedDocumentServiceServer) DeleteDocument

func (UnimplementedDocumentServiceServer) GetDocumentDetail

func (UnimplementedDocumentServiceServer) GetDocumentList

func (UnimplementedDocumentServiceServer) UpdateDocument

type UnsafeDocumentServiceServer

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

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

type UpdateDocumentReply

type UpdateDocumentReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	// contains filtered or unexported fields
}

更新文档响应

func (*UpdateDocumentReply) Descriptor deprecated

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

Deprecated: Use UpdateDocumentReply.ProtoReflect.Descriptor instead.

func (*UpdateDocumentReply) GetCode

func (x *UpdateDocumentReply) GetCode() int32

func (*UpdateDocumentReply) GetMessage

func (x *UpdateDocumentReply) GetMessage() string

func (*UpdateDocumentReply) ProtoMessage

func (*UpdateDocumentReply) ProtoMessage()

func (*UpdateDocumentReply) ProtoReflect

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

func (*UpdateDocumentReply) Reset

func (x *UpdateDocumentReply) Reset()

func (*UpdateDocumentReply) String

func (x *UpdateDocumentReply) String() string

func (*UpdateDocumentReply) Validate

func (m *UpdateDocumentReply) Validate() error

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

func (m *UpdateDocumentReply) ValidateAll() error

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

type UpdateDocumentReplyMultiError

type UpdateDocumentReplyMultiError []error

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

func (UpdateDocumentReplyMultiError) AllErrors

func (m UpdateDocumentReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDocumentReplyMultiError) Error

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

type UpdateDocumentReplyValidationError

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

UpdateDocumentReplyValidationError is the validation error returned by UpdateDocumentReply.Validate if the designated constraints aren't met.

func (UpdateDocumentReplyValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentReplyValidationError) Field

Field function returns field value.

func (UpdateDocumentReplyValidationError) Key

Key function returns key value.

func (UpdateDocumentReplyValidationError) Reason

Reason function returns reason value.

type UpdateDocumentRequest

type UpdateDocumentRequest struct {
	Id      int64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title   string                `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Content string                `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Tags    []string              `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	Show    *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=show,proto3" json:"show,omitempty"`
	// contains filtered or unexported fields
}

更新文档请求

func (*UpdateDocumentRequest) Descriptor deprecated

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

Deprecated: Use UpdateDocumentRequest.ProtoReflect.Descriptor instead.

func (*UpdateDocumentRequest) GetContent

func (x *UpdateDocumentRequest) GetContent() string

func (*UpdateDocumentRequest) GetId

func (x *UpdateDocumentRequest) GetId() int64

func (*UpdateDocumentRequest) GetShow

func (*UpdateDocumentRequest) GetTags

func (x *UpdateDocumentRequest) GetTags() []string

func (*UpdateDocumentRequest) GetTitle

func (x *UpdateDocumentRequest) GetTitle() string

func (*UpdateDocumentRequest) ProtoMessage

func (*UpdateDocumentRequest) ProtoMessage()

func (*UpdateDocumentRequest) ProtoReflect

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

func (*UpdateDocumentRequest) Reset

func (x *UpdateDocumentRequest) Reset()

func (*UpdateDocumentRequest) String

func (x *UpdateDocumentRequest) String() string

func (*UpdateDocumentRequest) Validate

func (m *UpdateDocumentRequest) Validate() error

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

func (m *UpdateDocumentRequest) ValidateAll() error

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

type UpdateDocumentRequestMultiError

type UpdateDocumentRequestMultiError []error

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

func (UpdateDocumentRequestMultiError) AllErrors

func (m UpdateDocumentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDocumentRequestMultiError) Error

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

type UpdateDocumentRequestValidationError

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

UpdateDocumentRequestValidationError is the validation error returned by UpdateDocumentRequest.Validate if the designated constraints aren't met.

func (UpdateDocumentRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDocumentRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDocumentRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDocumentRequestValidationError) Field

Field function returns field value.

func (UpdateDocumentRequestValidationError) Key

Key function returns key value.

func (UpdateDocumentRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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