Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDocumentServiceHTTPServer(s *http.Server, srv DocumentServiceHTTPServer)
- func RegisterDocumentServiceServer(s grpc.ServiceRegistrar, srv DocumentServiceServer)
- type BatchDeleteDocumentData
- func (*BatchDeleteDocumentData) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteDocumentData) GetSuccess() bool
- func (*BatchDeleteDocumentData) ProtoMessage()
- func (x *BatchDeleteDocumentData) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteDocumentData) Reset()
- func (x *BatchDeleteDocumentData) String() string
- func (m *BatchDeleteDocumentData) Validate() error
- func (m *BatchDeleteDocumentData) ValidateAll() error
- type BatchDeleteDocumentDataMultiError
- type BatchDeleteDocumentDataValidationError
- func (e BatchDeleteDocumentDataValidationError) Cause() error
- func (e BatchDeleteDocumentDataValidationError) Error() string
- func (e BatchDeleteDocumentDataValidationError) ErrorName() string
- func (e BatchDeleteDocumentDataValidationError) Field() string
- func (e BatchDeleteDocumentDataValidationError) Key() bool
- func (e BatchDeleteDocumentDataValidationError) Reason() string
- type BatchDeleteDocumentReply
- func (*BatchDeleteDocumentReply) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteDocumentReply) GetCode() int32
- func (x *BatchDeleteDocumentReply) GetData() *BatchDeleteDocumentData
- func (x *BatchDeleteDocumentReply) GetMessage() string
- func (*BatchDeleteDocumentReply) ProtoMessage()
- func (x *BatchDeleteDocumentReply) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteDocumentReply) Reset()
- func (x *BatchDeleteDocumentReply) String() string
- func (m *BatchDeleteDocumentReply) Validate() error
- func (m *BatchDeleteDocumentReply) ValidateAll() error
- type BatchDeleteDocumentReplyMultiError
- type BatchDeleteDocumentReplyValidationError
- func (e BatchDeleteDocumentReplyValidationError) Cause() error
- func (e BatchDeleteDocumentReplyValidationError) Error() string
- func (e BatchDeleteDocumentReplyValidationError) ErrorName() string
- func (e BatchDeleteDocumentReplyValidationError) Field() string
- func (e BatchDeleteDocumentReplyValidationError) Key() bool
- func (e BatchDeleteDocumentReplyValidationError) Reason() string
- type BatchDeleteDocumentRequest
- func (*BatchDeleteDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteDocumentRequest) GetIds() []int64
- func (*BatchDeleteDocumentRequest) ProtoMessage()
- func (x *BatchDeleteDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteDocumentRequest) Reset()
- func (x *BatchDeleteDocumentRequest) String() string
- func (m *BatchDeleteDocumentRequest) Validate() error
- func (m *BatchDeleteDocumentRequest) ValidateAll() error
- type BatchDeleteDocumentRequestMultiError
- type BatchDeleteDocumentRequestValidationError
- func (e BatchDeleteDocumentRequestValidationError) Cause() error
- func (e BatchDeleteDocumentRequestValidationError) Error() string
- func (e BatchDeleteDocumentRequestValidationError) ErrorName() string
- func (e BatchDeleteDocumentRequestValidationError) Field() string
- func (e BatchDeleteDocumentRequestValidationError) Key() bool
- func (e BatchDeleteDocumentRequestValidationError) Reason() string
- type CreateDocumentReply
- func (*CreateDocumentReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDocumentReply) GetCode() int32
- func (x *CreateDocumentReply) GetMessage() string
- func (*CreateDocumentReply) ProtoMessage()
- func (x *CreateDocumentReply) ProtoReflect() protoreflect.Message
- func (x *CreateDocumentReply) Reset()
- func (x *CreateDocumentReply) String() string
- func (m *CreateDocumentReply) Validate() error
- func (m *CreateDocumentReply) ValidateAll() error
- type CreateDocumentReplyMultiError
- type CreateDocumentReplyValidationError
- func (e CreateDocumentReplyValidationError) Cause() error
- func (e CreateDocumentReplyValidationError) Error() string
- func (e CreateDocumentReplyValidationError) ErrorName() string
- func (e CreateDocumentReplyValidationError) Field() string
- func (e CreateDocumentReplyValidationError) Key() bool
- func (e CreateDocumentReplyValidationError) Reason() string
- type CreateDocumentRequest
- func (*CreateDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDocumentRequest) GetContent() string
- func (x *CreateDocumentRequest) GetShow() *wrapperspb.BoolValue
- func (x *CreateDocumentRequest) GetTags() []string
- func (x *CreateDocumentRequest) GetTitle() string
- func (*CreateDocumentRequest) ProtoMessage()
- func (x *CreateDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDocumentRequest) Reset()
- func (x *CreateDocumentRequest) String() string
- func (m *CreateDocumentRequest) Validate() error
- func (m *CreateDocumentRequest) ValidateAll() error
- type CreateDocumentRequestMultiError
- type CreateDocumentRequestValidationError
- func (e CreateDocumentRequestValidationError) Cause() error
- func (e CreateDocumentRequestValidationError) Error() string
- func (e CreateDocumentRequestValidationError) ErrorName() string
- func (e CreateDocumentRequestValidationError) Field() string
- func (e CreateDocumentRequestValidationError) Key() bool
- func (e CreateDocumentRequestValidationError) Reason() string
- type DeleteDocumentData
- func (*DeleteDocumentData) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDocumentData) GetSuccess() bool
- func (*DeleteDocumentData) ProtoMessage()
- func (x *DeleteDocumentData) ProtoReflect() protoreflect.Message
- func (x *DeleteDocumentData) Reset()
- func (x *DeleteDocumentData) String() string
- func (m *DeleteDocumentData) Validate() error
- func (m *DeleteDocumentData) ValidateAll() error
- type DeleteDocumentDataMultiError
- type DeleteDocumentDataValidationError
- func (e DeleteDocumentDataValidationError) Cause() error
- func (e DeleteDocumentDataValidationError) Error() string
- func (e DeleteDocumentDataValidationError) ErrorName() string
- func (e DeleteDocumentDataValidationError) Field() string
- func (e DeleteDocumentDataValidationError) Key() bool
- func (e DeleteDocumentDataValidationError) Reason() string
- type DeleteDocumentReply
- func (*DeleteDocumentReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDocumentReply) GetCode() int32
- func (x *DeleteDocumentReply) GetData() *DeleteDocumentData
- func (x *DeleteDocumentReply) GetMessage() string
- func (*DeleteDocumentReply) ProtoMessage()
- func (x *DeleteDocumentReply) ProtoReflect() protoreflect.Message
- func (x *DeleteDocumentReply) Reset()
- func (x *DeleteDocumentReply) String() string
- func (m *DeleteDocumentReply) Validate() error
- func (m *DeleteDocumentReply) ValidateAll() error
- type DeleteDocumentReplyMultiError
- type DeleteDocumentReplyValidationError
- func (e DeleteDocumentReplyValidationError) Cause() error
- func (e DeleteDocumentReplyValidationError) Error() string
- func (e DeleteDocumentReplyValidationError) ErrorName() string
- func (e DeleteDocumentReplyValidationError) Field() string
- func (e DeleteDocumentReplyValidationError) Key() bool
- func (e DeleteDocumentReplyValidationError) Reason() string
- type DeleteDocumentRequest
- func (*DeleteDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDocumentRequest) GetId() int64
- func (*DeleteDocumentRequest) ProtoMessage()
- func (x *DeleteDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDocumentRequest) Reset()
- func (x *DeleteDocumentRequest) String() string
- func (m *DeleteDocumentRequest) Validate() error
- func (m *DeleteDocumentRequest) ValidateAll() error
- type DeleteDocumentRequestMultiError
- type DeleteDocumentRequestValidationError
- func (e DeleteDocumentRequestValidationError) Cause() error
- func (e DeleteDocumentRequestValidationError) Error() string
- func (e DeleteDocumentRequestValidationError) ErrorName() string
- func (e DeleteDocumentRequestValidationError) Field() string
- func (e DeleteDocumentRequestValidationError) Key() bool
- func (e DeleteDocumentRequestValidationError) Reason() string
- type Document
- func (*Document) Descriptor() ([]byte, []int)deprecated
- func (x *Document) GetContent() string
- func (x *Document) GetCreatedAt() int64
- func (x *Document) GetId() int64
- func (x *Document) GetShow() bool
- func (x *Document) GetTags() []string
- func (x *Document) GetTitle() string
- func (x *Document) GetUpdatedAt() int64
- func (*Document) ProtoMessage()
- func (x *Document) ProtoReflect() protoreflect.Message
- func (x *Document) Reset()
- func (x *Document) String() string
- func (m *Document) Validate() error
- func (m *Document) ValidateAll() error
- type DocumentMultiError
- type DocumentServiceClient
- type DocumentServiceHTTPClient
- type DocumentServiceHTTPClientImpl
- func (c *DocumentServiceHTTPClientImpl) BatchDeleteDocument(ctx context.Context, in *BatchDeleteDocumentRequest, opts ...http.CallOption) (*BatchDeleteDocumentReply, error)
- func (c *DocumentServiceHTTPClientImpl) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...http.CallOption) (*CreateDocumentReply, error)
- func (c *DocumentServiceHTTPClientImpl) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...http.CallOption) (*DeleteDocumentReply, error)
- func (c *DocumentServiceHTTPClientImpl) GetDocumentDetail(ctx context.Context, in *GetDocumentDetailRequest, opts ...http.CallOption) (*GetDocumentDetailReply, error)
- func (c *DocumentServiceHTTPClientImpl) GetDocumentList(ctx context.Context, in *GetDocumentListRequest, opts ...http.CallOption) (*GetDocumentListReply, error)
- func (c *DocumentServiceHTTPClientImpl) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...http.CallOption) (*UpdateDocumentReply, error)
- type DocumentServiceHTTPServer
- type DocumentServiceServer
- type DocumentValidationError
- type GetDocumentDetailData
- func (*GetDocumentDetailData) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentDetailData) GetDocument() *Document
- func (*GetDocumentDetailData) ProtoMessage()
- func (x *GetDocumentDetailData) ProtoReflect() protoreflect.Message
- func (x *GetDocumentDetailData) Reset()
- func (x *GetDocumentDetailData) String() string
- func (m *GetDocumentDetailData) Validate() error
- func (m *GetDocumentDetailData) ValidateAll() error
- type GetDocumentDetailDataMultiError
- type GetDocumentDetailDataValidationError
- func (e GetDocumentDetailDataValidationError) Cause() error
- func (e GetDocumentDetailDataValidationError) Error() string
- func (e GetDocumentDetailDataValidationError) ErrorName() string
- func (e GetDocumentDetailDataValidationError) Field() string
- func (e GetDocumentDetailDataValidationError) Key() bool
- func (e GetDocumentDetailDataValidationError) Reason() string
- type GetDocumentDetailReply
- func (*GetDocumentDetailReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentDetailReply) GetCode() int32
- func (x *GetDocumentDetailReply) GetData() *GetDocumentDetailData
- func (x *GetDocumentDetailReply) GetMessage() string
- func (*GetDocumentDetailReply) ProtoMessage()
- func (x *GetDocumentDetailReply) ProtoReflect() protoreflect.Message
- func (x *GetDocumentDetailReply) Reset()
- func (x *GetDocumentDetailReply) String() string
- func (m *GetDocumentDetailReply) Validate() error
- func (m *GetDocumentDetailReply) ValidateAll() error
- type GetDocumentDetailReplyMultiError
- type GetDocumentDetailReplyValidationError
- func (e GetDocumentDetailReplyValidationError) Cause() error
- func (e GetDocumentDetailReplyValidationError) Error() string
- func (e GetDocumentDetailReplyValidationError) ErrorName() string
- func (e GetDocumentDetailReplyValidationError) Field() string
- func (e GetDocumentDetailReplyValidationError) Key() bool
- func (e GetDocumentDetailReplyValidationError) Reason() string
- type GetDocumentDetailRequest
- func (*GetDocumentDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentDetailRequest) GetId() int64
- func (*GetDocumentDetailRequest) ProtoMessage()
- func (x *GetDocumentDetailRequest) ProtoReflect() protoreflect.Message
- func (x *GetDocumentDetailRequest) Reset()
- func (x *GetDocumentDetailRequest) String() string
- func (m *GetDocumentDetailRequest) Validate() error
- func (m *GetDocumentDetailRequest) ValidateAll() error
- type GetDocumentDetailRequestMultiError
- type GetDocumentDetailRequestValidationError
- func (e GetDocumentDetailRequestValidationError) Cause() error
- func (e GetDocumentDetailRequestValidationError) Error() string
- func (e GetDocumentDetailRequestValidationError) ErrorName() string
- func (e GetDocumentDetailRequestValidationError) Field() string
- func (e GetDocumentDetailRequestValidationError) Key() bool
- func (e GetDocumentDetailRequestValidationError) Reason() string
- type GetDocumentListData
- func (*GetDocumentListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentListData) GetList() []*Document
- func (x *GetDocumentListData) GetTotal() int32
- func (*GetDocumentListData) ProtoMessage()
- func (x *GetDocumentListData) ProtoReflect() protoreflect.Message
- func (x *GetDocumentListData) Reset()
- func (x *GetDocumentListData) String() string
- func (m *GetDocumentListData) Validate() error
- func (m *GetDocumentListData) ValidateAll() error
- type GetDocumentListDataMultiError
- type GetDocumentListDataValidationError
- func (e GetDocumentListDataValidationError) Cause() error
- func (e GetDocumentListDataValidationError) Error() string
- func (e GetDocumentListDataValidationError) ErrorName() string
- func (e GetDocumentListDataValidationError) Field() string
- func (e GetDocumentListDataValidationError) Key() bool
- func (e GetDocumentListDataValidationError) Reason() string
- type GetDocumentListReply
- func (*GetDocumentListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentListReply) GetCode() int32
- func (x *GetDocumentListReply) GetData() *GetDocumentListData
- func (x *GetDocumentListReply) GetMessage() string
- func (*GetDocumentListReply) ProtoMessage()
- func (x *GetDocumentListReply) ProtoReflect() protoreflect.Message
- func (x *GetDocumentListReply) Reset()
- func (x *GetDocumentListReply) String() string
- func (m *GetDocumentListReply) Validate() error
- func (m *GetDocumentListReply) ValidateAll() error
- type GetDocumentListReplyMultiError
- type GetDocumentListReplyValidationError
- func (e GetDocumentListReplyValidationError) Cause() error
- func (e GetDocumentListReplyValidationError) Error() string
- func (e GetDocumentListReplyValidationError) ErrorName() string
- func (e GetDocumentListReplyValidationError) Field() string
- func (e GetDocumentListReplyValidationError) Key() bool
- func (e GetDocumentListReplyValidationError) Reason() string
- type GetDocumentListRequest
- func (*GetDocumentListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDocumentListRequest) GetPage() int64
- func (x *GetDocumentListRequest) GetSearch() string
- func (x *GetDocumentListRequest) GetSize() int64
- func (x *GetDocumentListRequest) GetTag() string
- func (*GetDocumentListRequest) ProtoMessage()
- func (x *GetDocumentListRequest) ProtoReflect() protoreflect.Message
- func (x *GetDocumentListRequest) Reset()
- func (x *GetDocumentListRequest) String() string
- func (m *GetDocumentListRequest) Validate() error
- func (m *GetDocumentListRequest) ValidateAll() error
- type GetDocumentListRequestMultiError
- type GetDocumentListRequestValidationError
- func (e GetDocumentListRequestValidationError) Cause() error
- func (e GetDocumentListRequestValidationError) Error() string
- func (e GetDocumentListRequestValidationError) ErrorName() string
- func (e GetDocumentListRequestValidationError) Field() string
- func (e GetDocumentListRequestValidationError) Key() bool
- func (e GetDocumentListRequestValidationError) Reason() string
- type UnimplementedDocumentServiceServer
- func (UnimplementedDocumentServiceServer) BatchDeleteDocument(context.Context, *BatchDeleteDocumentRequest) (*BatchDeleteDocumentReply, error)
- func (UnimplementedDocumentServiceServer) CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentReply, error)
- func (UnimplementedDocumentServiceServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentReply, error)
- func (UnimplementedDocumentServiceServer) GetDocumentDetail(context.Context, *GetDocumentDetailRequest) (*GetDocumentDetailReply, error)
- func (UnimplementedDocumentServiceServer) GetDocumentList(context.Context, *GetDocumentListRequest) (*GetDocumentListReply, error)
- func (UnimplementedDocumentServiceServer) UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentReply, error)
- type UnsafeDocumentServiceServer
- type UpdateDocumentReply
- func (*UpdateDocumentReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDocumentReply) GetCode() int32
- func (x *UpdateDocumentReply) GetMessage() string
- func (*UpdateDocumentReply) ProtoMessage()
- func (x *UpdateDocumentReply) ProtoReflect() protoreflect.Message
- func (x *UpdateDocumentReply) Reset()
- func (x *UpdateDocumentReply) String() string
- func (m *UpdateDocumentReply) Validate() error
- func (m *UpdateDocumentReply) ValidateAll() error
- type UpdateDocumentReplyMultiError
- type UpdateDocumentReplyValidationError
- func (e UpdateDocumentReplyValidationError) Cause() error
- func (e UpdateDocumentReplyValidationError) Error() string
- func (e UpdateDocumentReplyValidationError) ErrorName() string
- func (e UpdateDocumentReplyValidationError) Field() string
- func (e UpdateDocumentReplyValidationError) Key() bool
- func (e UpdateDocumentReplyValidationError) Reason() string
- type UpdateDocumentRequest
- func (*UpdateDocumentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDocumentRequest) GetContent() string
- func (x *UpdateDocumentRequest) GetId() int64
- func (x *UpdateDocumentRequest) GetShow() *wrapperspb.BoolValue
- func (x *UpdateDocumentRequest) GetTags() []string
- func (x *UpdateDocumentRequest) GetTitle() string
- func (*UpdateDocumentRequest) ProtoMessage()
- func (x *UpdateDocumentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDocumentRequest) Reset()
- func (x *UpdateDocumentRequest) String() string
- func (m *UpdateDocumentRequest) Validate() error
- func (m *UpdateDocumentRequest) ValidateAll() error
- type UpdateDocumentRequestMultiError
- type UpdateDocumentRequestValidationError
- func (e UpdateDocumentRequestValidationError) Cause() error
- func (e UpdateDocumentRequestValidationError) Error() string
- func (e UpdateDocumentRequestValidationError) ErrorName() string
- func (e UpdateDocumentRequestValidationError) Field() string
- func (e UpdateDocumentRequestValidationError) Key() bool
- func (e UpdateDocumentRequestValidationError) Reason() string
Constants ¶
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" )
const OperationDocumentServiceBatchDeleteDocument = "/api.admin.document.v1.DocumentService/BatchDeleteDocument"
const OperationDocumentServiceCreateDocument = "/api.admin.document.v1.DocumentService/CreateDocument"
const OperationDocumentServiceDeleteDocument = "/api.admin.document.v1.DocumentService/DeleteDocument"
const OperationDocumentServiceGetDocumentDetail = "/api.admin.document.v1.DocumentService/GetDocumentDetail"
const OperationDocumentServiceGetDocumentList = "/api.admin.document.v1.DocumentService/GetDocumentList"
const OperationDocumentServiceUpdateDocument = "/api.admin.document.v1.DocumentService/UpdateDocument"
Variables ¶
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)
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 ¶
func (m BatchDeleteDocumentDataMultiError) Error() string
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 ¶
func (e BatchDeleteDocumentDataValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteDocumentDataValidationError) Error ¶
func (e BatchDeleteDocumentDataValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteDocumentDataValidationError) ErrorName ¶
func (e BatchDeleteDocumentDataValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteDocumentDataValidationError) Field ¶
func (e BatchDeleteDocumentDataValidationError) Field() string
Field function returns field value.
func (BatchDeleteDocumentDataValidationError) Key ¶
func (e BatchDeleteDocumentDataValidationError) Key() bool
Key function returns key value.
func (BatchDeleteDocumentDataValidationError) Reason ¶
func (e BatchDeleteDocumentDataValidationError) Reason() string
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 (x *BatchDeleteDocumentReply) GetData() *BatchDeleteDocumentData
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 ¶
func (m BatchDeleteDocumentReplyMultiError) Error() string
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 ¶
func (e BatchDeleteDocumentReplyValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteDocumentReplyValidationError) Error ¶
func (e BatchDeleteDocumentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteDocumentReplyValidationError) ErrorName ¶
func (e BatchDeleteDocumentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteDocumentReplyValidationError) Field ¶
func (e BatchDeleteDocumentReplyValidationError) Field() string
Field function returns field value.
func (BatchDeleteDocumentReplyValidationError) Key ¶
func (e BatchDeleteDocumentReplyValidationError) Key() bool
Key function returns key value.
func (BatchDeleteDocumentReplyValidationError) Reason ¶
func (e BatchDeleteDocumentReplyValidationError) Reason() string
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 (x *BatchDeleteDocumentRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m BatchDeleteDocumentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteDocumentRequestMultiError) Error ¶
func (m BatchDeleteDocumentRequestMultiError) Error() string
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 ¶
func (e BatchDeleteDocumentRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteDocumentRequestValidationError) Error ¶
func (e BatchDeleteDocumentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteDocumentRequestValidationError) ErrorName ¶
func (e BatchDeleteDocumentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteDocumentRequestValidationError) Field ¶
func (e BatchDeleteDocumentRequestValidationError) Field() string
Field function returns field value.
func (BatchDeleteDocumentRequestValidationError) Key ¶
func (e BatchDeleteDocumentRequestValidationError) Key() bool
Key function returns key value.
func (BatchDeleteDocumentRequestValidationError) Reason ¶
func (e BatchDeleteDocumentRequestValidationError) Reason() string
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 ¶
func (m CreateDocumentReplyMultiError) Error() string
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 ¶
func (e CreateDocumentReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateDocumentReplyValidationError) Error ¶
func (e CreateDocumentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDocumentReplyValidationError) ErrorName ¶
func (e CreateDocumentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDocumentReplyValidationError) Field ¶
func (e CreateDocumentReplyValidationError) Field() string
Field function returns field value.
func (CreateDocumentReplyValidationError) Key ¶
func (e CreateDocumentReplyValidationError) Key() bool
Key function returns key value.
func (CreateDocumentReplyValidationError) Reason ¶
func (e CreateDocumentReplyValidationError) Reason() string
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 (x *CreateDocumentRequest) GetShow() *wrapperspb.BoolValue
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 ¶
func (m CreateDocumentRequestMultiError) Error() string
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 ¶
func (e CreateDocumentRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDocumentRequestValidationError) Error ¶
func (e CreateDocumentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDocumentRequestValidationError) ErrorName ¶
func (e CreateDocumentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDocumentRequestValidationError) Field ¶
func (e CreateDocumentRequestValidationError) Field() string
Field function returns field value.
func (CreateDocumentRequestValidationError) Key ¶
func (e CreateDocumentRequestValidationError) Key() bool
Key function returns key value.
func (CreateDocumentRequestValidationError) Reason ¶
func (e CreateDocumentRequestValidationError) Reason() string
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 ¶
func (m DeleteDocumentDataMultiError) Error() string
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 ¶
func (e DeleteDocumentDataValidationError) Cause() error
Cause function returns cause value.
func (DeleteDocumentDataValidationError) Error ¶
func (e DeleteDocumentDataValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDocumentDataValidationError) ErrorName ¶
func (e DeleteDocumentDataValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDocumentDataValidationError) Field ¶
func (e DeleteDocumentDataValidationError) Field() string
Field function returns field value.
func (DeleteDocumentDataValidationError) Key ¶
func (e DeleteDocumentDataValidationError) Key() bool
Key function returns key value.
func (DeleteDocumentDataValidationError) Reason ¶
func (e DeleteDocumentDataValidationError) Reason() string
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 (x *DeleteDocumentReply) GetData() *DeleteDocumentData
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 ¶
func (m DeleteDocumentReplyMultiError) Error() string
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 ¶
func (e DeleteDocumentReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteDocumentReplyValidationError) Error ¶
func (e DeleteDocumentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDocumentReplyValidationError) ErrorName ¶
func (e DeleteDocumentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDocumentReplyValidationError) Field ¶
func (e DeleteDocumentReplyValidationError) Field() string
Field function returns field value.
func (DeleteDocumentReplyValidationError) Key ¶
func (e DeleteDocumentReplyValidationError) Key() bool
Key function returns key value.
func (DeleteDocumentReplyValidationError) Reason ¶
func (e DeleteDocumentReplyValidationError) Reason() string
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 ¶
func (m DeleteDocumentRequestMultiError) Error() string
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 ¶
func (e DeleteDocumentRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDocumentRequestValidationError) Error ¶
func (e DeleteDocumentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDocumentRequestValidationError) ErrorName ¶
func (e DeleteDocumentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDocumentRequestValidationError) Field ¶
func (e DeleteDocumentRequestValidationError) Field() string
Field function returns field value.
func (DeleteDocumentRequestValidationError) Key ¶
func (e DeleteDocumentRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDocumentRequestValidationError) Reason ¶
func (e DeleteDocumentRequestValidationError) Reason() string
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) GetContent ¶
func (*Document) GetCreatedAt ¶
func (*Document) GetUpdatedAt ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶
func (x *Document) ProtoReflect() protoreflect.Message
func (*Document) Validate ¶
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 ¶
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.
文档管理服务
func NewDocumentServiceClient ¶
func NewDocumentServiceClient(cc grpc.ClientConnInterface) DocumentServiceClient
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 ¶
func (c *DocumentServiceHTTPClientImpl) BatchDeleteDocument(ctx context.Context, in *BatchDeleteDocumentRequest, opts ...http.CallOption) (*BatchDeleteDocumentReply, error)
BatchDeleteDocument 批量删除文档
func (*DocumentServiceHTTPClientImpl) CreateDocument ¶
func (c *DocumentServiceHTTPClientImpl) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...http.CallOption) (*CreateDocumentReply, error)
CreateDocument 创建文档
func (*DocumentServiceHTTPClientImpl) DeleteDocument ¶
func (c *DocumentServiceHTTPClientImpl) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...http.CallOption) (*DeleteDocumentReply, error)
DeleteDocument 删除文档
func (*DocumentServiceHTTPClientImpl) GetDocumentDetail ¶
func (c *DocumentServiceHTTPClientImpl) GetDocumentDetail(ctx context.Context, in *GetDocumentDetailRequest, opts ...http.CallOption) (*GetDocumentDetailReply, error)
GetDocumentDetail 获取文档详情
func (*DocumentServiceHTTPClientImpl) GetDocumentList ¶
func (c *DocumentServiceHTTPClientImpl) GetDocumentList(ctx context.Context, in *GetDocumentListRequest, opts ...http.CallOption) (*GetDocumentListReply, error)
GetDocumentList 获取文档列表
func (*DocumentServiceHTTPClientImpl) UpdateDocument ¶
func (c *DocumentServiceHTTPClientImpl) UpdateDocument(ctx context.Context, in *UpdateDocumentRequest, opts ...http.CallOption) (*UpdateDocumentReply, error)
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 ¶
func (m GetDocumentDetailDataMultiError) Error() string
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 ¶
func (e GetDocumentDetailDataValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentDetailDataValidationError) Error ¶
func (e GetDocumentDetailDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentDetailDataValidationError) ErrorName ¶
func (e GetDocumentDetailDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentDetailDataValidationError) Field ¶
func (e GetDocumentDetailDataValidationError) Field() string
Field function returns field value.
func (GetDocumentDetailDataValidationError) Key ¶
func (e GetDocumentDetailDataValidationError) Key() bool
Key function returns key value.
func (GetDocumentDetailDataValidationError) Reason ¶
func (e GetDocumentDetailDataValidationError) Reason() string
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 (x *GetDocumentDetailReply) GetData() *GetDocumentDetailData
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 ¶
func (m GetDocumentDetailReplyMultiError) Error() string
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 ¶
func (e GetDocumentDetailReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentDetailReplyValidationError) Error ¶
func (e GetDocumentDetailReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentDetailReplyValidationError) ErrorName ¶
func (e GetDocumentDetailReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentDetailReplyValidationError) Field ¶
func (e GetDocumentDetailReplyValidationError) Field() string
Field function returns field value.
func (GetDocumentDetailReplyValidationError) Key ¶
func (e GetDocumentDetailReplyValidationError) Key() bool
Key function returns key value.
func (GetDocumentDetailReplyValidationError) Reason ¶
func (e GetDocumentDetailReplyValidationError) Reason() string
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 ¶
func (m GetDocumentDetailRequestMultiError) Error() string
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 ¶
func (e GetDocumentDetailRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentDetailRequestValidationError) Error ¶
func (e GetDocumentDetailRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentDetailRequestValidationError) ErrorName ¶
func (e GetDocumentDetailRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentDetailRequestValidationError) Field ¶
func (e GetDocumentDetailRequestValidationError) Field() string
Field function returns field value.
func (GetDocumentDetailRequestValidationError) Key ¶
func (e GetDocumentDetailRequestValidationError) Key() bool
Key function returns key value.
func (GetDocumentDetailRequestValidationError) Reason ¶
func (e GetDocumentDetailRequestValidationError) Reason() string
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 ¶
func (m GetDocumentListDataMultiError) Error() string
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 ¶
func (e GetDocumentListDataValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentListDataValidationError) Error ¶
func (e GetDocumentListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentListDataValidationError) ErrorName ¶
func (e GetDocumentListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentListDataValidationError) Field ¶
func (e GetDocumentListDataValidationError) Field() string
Field function returns field value.
func (GetDocumentListDataValidationError) Key ¶
func (e GetDocumentListDataValidationError) Key() bool
Key function returns key value.
func (GetDocumentListDataValidationError) Reason ¶
func (e GetDocumentListDataValidationError) Reason() string
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 (x *GetDocumentListReply) GetData() *GetDocumentListData
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 ¶
func (m GetDocumentListReplyMultiError) Error() string
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 ¶
func (e GetDocumentListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentListReplyValidationError) Error ¶
func (e GetDocumentListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentListReplyValidationError) ErrorName ¶
func (e GetDocumentListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentListReplyValidationError) Field ¶
func (e GetDocumentListReplyValidationError) Field() string
Field function returns field value.
func (GetDocumentListReplyValidationError) Key ¶
func (e GetDocumentListReplyValidationError) Key() bool
Key function returns key value.
func (GetDocumentListReplyValidationError) Reason ¶
func (e GetDocumentListReplyValidationError) Reason() string
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 ¶
func (m GetDocumentListRequestMultiError) Error() string
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 ¶
func (e GetDocumentListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDocumentListRequestValidationError) Error ¶
func (e GetDocumentListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDocumentListRequestValidationError) ErrorName ¶
func (e GetDocumentListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDocumentListRequestValidationError) Field ¶
func (e GetDocumentListRequestValidationError) Field() string
Field function returns field value.
func (GetDocumentListRequestValidationError) Key ¶
func (e GetDocumentListRequestValidationError) Key() bool
Key function returns key value.
func (GetDocumentListRequestValidationError) Reason ¶
func (e GetDocumentListRequestValidationError) Reason() string
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) BatchDeleteDocument(context.Context, *BatchDeleteDocumentRequest) (*BatchDeleteDocumentReply, error)
func (UnimplementedDocumentServiceServer) CreateDocument ¶
func (UnimplementedDocumentServiceServer) CreateDocument(context.Context, *CreateDocumentRequest) (*CreateDocumentReply, error)
func (UnimplementedDocumentServiceServer) DeleteDocument ¶
func (UnimplementedDocumentServiceServer) DeleteDocument(context.Context, *DeleteDocumentRequest) (*DeleteDocumentReply, error)
func (UnimplementedDocumentServiceServer) GetDocumentDetail ¶
func (UnimplementedDocumentServiceServer) GetDocumentDetail(context.Context, *GetDocumentDetailRequest) (*GetDocumentDetailReply, error)
func (UnimplementedDocumentServiceServer) GetDocumentList ¶
func (UnimplementedDocumentServiceServer) GetDocumentList(context.Context, *GetDocumentListRequest) (*GetDocumentListReply, error)
func (UnimplementedDocumentServiceServer) UpdateDocument ¶
func (UnimplementedDocumentServiceServer) UpdateDocument(context.Context, *UpdateDocumentRequest) (*UpdateDocumentReply, error)
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 ¶
func (m UpdateDocumentReplyMultiError) Error() string
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 ¶
func (e UpdateDocumentReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateDocumentReplyValidationError) Error ¶
func (e UpdateDocumentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDocumentReplyValidationError) ErrorName ¶
func (e UpdateDocumentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDocumentReplyValidationError) Field ¶
func (e UpdateDocumentReplyValidationError) Field() string
Field function returns field value.
func (UpdateDocumentReplyValidationError) Key ¶
func (e UpdateDocumentReplyValidationError) Key() bool
Key function returns key value.
func (UpdateDocumentReplyValidationError) Reason ¶
func (e UpdateDocumentReplyValidationError) Reason() string
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 (x *UpdateDocumentRequest) GetShow() *wrapperspb.BoolValue
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 ¶
func (m UpdateDocumentRequestMultiError) Error() string
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 ¶
func (e UpdateDocumentRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDocumentRequestValidationError) Error ¶
func (e UpdateDocumentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDocumentRequestValidationError) ErrorName ¶
func (e UpdateDocumentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDocumentRequestValidationError) Field ¶
func (e UpdateDocumentRequestValidationError) Field() string
Field function returns field value.
func (UpdateDocumentRequestValidationError) Key ¶
func (e UpdateDocumentRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDocumentRequestValidationError) Reason ¶
func (e UpdateDocumentRequestValidationError) Reason() string
Reason function returns reason value.