Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterExportHTTPServer(s *http.Server, srv ExportHTTPServer)
- func RegisterExportServer(s grpc.ServiceRegistrar, srv ExportServer)
- type CreateExportReply
- func (*CreateExportReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateExportReply) GetId() uint32
- func (*CreateExportReply) ProtoMessage()
- func (x *CreateExportReply) ProtoReflect() protoreflect.Message
- func (x *CreateExportReply) Reset()
- func (x *CreateExportReply) String() string
- func (m *CreateExportReply) Validate() error
- func (m *CreateExportReply) ValidateAll() error
- type CreateExportReplyMultiError
- type CreateExportReplyValidationError
- func (e CreateExportReplyValidationError) Cause() error
- func (e CreateExportReplyValidationError) Error() string
- func (e CreateExportReplyValidationError) ErrorName() string
- func (e CreateExportReplyValidationError) Field() string
- func (e CreateExportReplyValidationError) Key() bool
- func (e CreateExportReplyValidationError) Reason() string
- type CreateExportRequest
- func (*CreateExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateExportRequest) GetDepartmentId() uint32
- func (x *CreateExportRequest) GetName() string
- func (x *CreateExportRequest) GetReason() string
- func (x *CreateExportRequest) GetScene() string
- func (x *CreateExportRequest) GetUserId() uint32
- func (*CreateExportRequest) ProtoMessage()
- func (x *CreateExportRequest) ProtoReflect() protoreflect.Message
- func (x *CreateExportRequest) Reset()
- func (x *CreateExportRequest) String() string
- func (m *CreateExportRequest) Validate() error
- func (m *CreateExportRequest) ValidateAll() error
- type CreateExportRequestMultiError
- type CreateExportRequestValidationError
- func (e CreateExportRequestValidationError) Cause() error
- func (e CreateExportRequestValidationError) Error() string
- func (e CreateExportRequestValidationError) ErrorName() string
- func (e CreateExportRequestValidationError) Field() string
- func (e CreateExportRequestValidationError) Key() bool
- func (e CreateExportRequestValidationError) Reason() string
- type DeleteExportReply
- func (*DeleteExportReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteExportReply) GetTotal() uint32
- func (*DeleteExportReply) ProtoMessage()
- func (x *DeleteExportReply) ProtoReflect() protoreflect.Message
- func (x *DeleteExportReply) Reset()
- func (x *DeleteExportReply) String() string
- func (m *DeleteExportReply) Validate() error
- func (m *DeleteExportReply) ValidateAll() error
- type DeleteExportReplyMultiError
- type DeleteExportReplyValidationError
- func (e DeleteExportReplyValidationError) Cause() error
- func (e DeleteExportReplyValidationError) Error() string
- func (e DeleteExportReplyValidationError) ErrorName() string
- func (e DeleteExportReplyValidationError) Field() string
- func (e DeleteExportReplyValidationError) Key() bool
- func (e DeleteExportReplyValidationError) Reason() string
- type DeleteExportRequest
- func (*DeleteExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteExportRequest) GetIds() []uint32
- func (*DeleteExportRequest) ProtoMessage()
- func (x *DeleteExportRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteExportRequest) Reset()
- func (x *DeleteExportRequest) String() string
- func (m *DeleteExportRequest) Validate() error
- func (m *DeleteExportRequest) ValidateAll() error
- type DeleteExportRequestMultiError
- type DeleteExportRequestValidationError
- func (e DeleteExportRequestValidationError) Cause() error
- func (e DeleteExportRequestValidationError) Error() string
- func (e DeleteExportRequestValidationError) ErrorName() string
- func (e DeleteExportRequestValidationError) Field() string
- func (e DeleteExportRequestValidationError) Key() bool
- func (e DeleteExportRequestValidationError) Reason() string
- type ExportClient
- type ExportHTTPClient
- type ExportHTTPClientImpl
- func (c *ExportHTTPClientImpl) CreateExport(ctx context.Context, in *CreateExportRequest, opts ...http.CallOption) (*CreateExportReply, error)
- func (c *ExportHTTPClientImpl) DeleteExport(ctx context.Context, in *DeleteExportRequest, opts ...http.CallOption) (*DeleteExportReply, error)
- func (c *ExportHTTPClientImpl) ListExport(ctx context.Context, in *ListExportRequest, opts ...http.CallOption) (*ListExportReply, error)
- type ExportHTTPServer
- type ExportServer
- type ListExportReply
- func (*ListExportReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListExportReply) GetList() []*ListExportReply_Export
- func (x *ListExportReply) GetTotal() uint32
- func (*ListExportReply) ProtoMessage()
- func (x *ListExportReply) ProtoReflect() protoreflect.Message
- func (x *ListExportReply) Reset()
- func (x *ListExportReply) String() string
- func (m *ListExportReply) Validate() error
- func (m *ListExportReply) ValidateAll() error
- type ListExportReplyMultiError
- type ListExportReplyValidationError
- func (e ListExportReplyValidationError) Cause() error
- func (e ListExportReplyValidationError) Error() string
- func (e ListExportReplyValidationError) ErrorName() string
- func (e ListExportReplyValidationError) Field() string
- func (e ListExportReplyValidationError) Key() bool
- func (e ListExportReplyValidationError) Reason() string
- type ListExportReply_Export
- func (*ListExportReply_Export) Descriptor() ([]byte, []int)deprecated
- func (x *ListExportReply_Export) GetCreatedAt() uint32
- func (x *ListExportReply_Export) GetDepartmentId() uint32
- func (x *ListExportReply_Export) GetExpiredAt() uint32
- func (x *ListExportReply_Export) GetId() uint32
- func (x *ListExportReply_Export) GetName() string
- func (x *ListExportReply_Export) GetReason() string
- func (x *ListExportReply_Export) GetScene() string
- func (x *ListExportReply_Export) GetSha() string
- func (x *ListExportReply_Export) GetSize() uint32
- func (x *ListExportReply_Export) GetSrc() string
- func (x *ListExportReply_Export) GetStatus() string
- func (x *ListExportReply_Export) GetUpdatedAt() uint32
- func (x *ListExportReply_Export) GetUserId() uint32
- func (*ListExportReply_Export) ProtoMessage()
- func (x *ListExportReply_Export) ProtoReflect() protoreflect.Message
- func (x *ListExportReply_Export) Reset()
- func (x *ListExportReply_Export) String() string
- func (m *ListExportReply_Export) Validate() error
- func (m *ListExportReply_Export) ValidateAll() error
- type ListExportReply_ExportMultiError
- type ListExportReply_ExportValidationError
- func (e ListExportReply_ExportValidationError) Cause() error
- func (e ListExportReply_ExportValidationError) Error() string
- func (e ListExportReply_ExportValidationError) ErrorName() string
- func (e ListExportReply_ExportValidationError) Field() string
- func (e ListExportReply_ExportValidationError) Key() bool
- func (e ListExportReply_ExportValidationError) Reason() string
- type ListExportRequest
- func (*ListExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListExportRequest) GetDepartmentId() uint32
- func (x *ListExportRequest) GetOrder() string
- func (x *ListExportRequest) GetOrderBy() string
- func (x *ListExportRequest) GetPage() uint32
- func (x *ListExportRequest) GetPageSize() uint32
- func (x *ListExportRequest) GetUserId() uint32
- func (*ListExportRequest) ProtoMessage()
- func (x *ListExportRequest) ProtoReflect() protoreflect.Message
- func (x *ListExportRequest) Reset()
- func (x *ListExportRequest) String() string
- func (m *ListExportRequest) Validate() error
- func (m *ListExportRequest) ValidateAll() error
- type ListExportRequestMultiError
- type ListExportRequestValidationError
- func (e ListExportRequestValidationError) Cause() error
- func (e ListExportRequestValidationError) Error() string
- func (e ListExportRequestValidationError) ErrorName() string
- func (e ListExportRequestValidationError) Field() string
- func (e ListExportRequestValidationError) Key() bool
- func (e ListExportRequestValidationError) Reason() string
- type UnimplementedExportServer
- func (UnimplementedExportServer) CreateExport(context.Context, *CreateExportRequest) (*CreateExportReply, error)
- func (UnimplementedExportServer) DeleteExport(context.Context, *DeleteExportRequest) (*DeleteExportReply, error)
- func (UnimplementedExportServer) ListExport(context.Context, *ListExportRequest) (*ListExportReply, error)
- type UnsafeExportServer
Constants ¶
const ( Export_ListExport_FullMethodName = "/resource.api.resource.export.v1.Export/ListExport" Export_CreateExport_FullMethodName = "/resource.api.resource.export.v1.Export/CreateExport" Export_DeleteExport_FullMethodName = "/resource.api.resource.export.v1.Export/DeleteExport" )
const OperationExportCreateExport = "/resource.api.resource.export.v1.Export/CreateExport"
const OperationExportDeleteExport = "/resource.api.resource.export.v1.Export/DeleteExport"
const OperationExportListExport = "/resource.api.resource.export.v1.Export/ListExport"
Variables ¶
var Export_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.resource.export.v1.Export", HandlerType: (*ExportServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListExport", Handler: _Export_ListExport_Handler, }, { MethodName: "CreateExport", Handler: _Export_CreateExport_Handler, }, { MethodName: "DeleteExport", Handler: _Export_DeleteExport_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/resource/export/resource_export_service.proto", }
Export_ServiceDesc is the grpc.ServiceDesc for Export service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_resource_export_resource_export_proto protoreflect.FileDescriptor
var File_api_resource_export_resource_export_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExportHTTPServer ¶
func RegisterExportHTTPServer(s *http.Server, srv ExportHTTPServer)
func RegisterExportServer ¶
func RegisterExportServer(s grpc.ServiceRegistrar, srv ExportServer)
Types ¶
type CreateExportReply ¶
type CreateExportReply struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateExportReply) Descriptor
deprecated
func (*CreateExportReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateExportReply.ProtoReflect.Descriptor instead.
func (*CreateExportReply) GetId ¶
func (x *CreateExportReply) GetId() uint32
func (*CreateExportReply) ProtoMessage ¶
func (*CreateExportReply) ProtoMessage()
func (*CreateExportReply) ProtoReflect ¶
func (x *CreateExportReply) ProtoReflect() protoreflect.Message
func (*CreateExportReply) Reset ¶
func (x *CreateExportReply) Reset()
func (*CreateExportReply) String ¶
func (x *CreateExportReply) String() string
func (*CreateExportReply) Validate ¶
func (m *CreateExportReply) Validate() error
Validate checks the field values on CreateExportReply 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 (*CreateExportReply) ValidateAll ¶
func (m *CreateExportReply) ValidateAll() error
ValidateAll checks the field values on CreateExportReply 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 CreateExportReplyMultiError, or nil if none found.
type CreateExportReplyMultiError ¶
type CreateExportReplyMultiError []error
CreateExportReplyMultiError is an error wrapping multiple validation errors returned by CreateExportReply.ValidateAll() if the designated constraints aren't met.
func (CreateExportReplyMultiError) AllErrors ¶
func (m CreateExportReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateExportReplyMultiError) Error ¶
func (m CreateExportReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateExportReplyValidationError ¶
type CreateExportReplyValidationError struct {
// contains filtered or unexported fields
}
CreateExportReplyValidationError is the validation error returned by CreateExportReply.Validate if the designated constraints aren't met.
func (CreateExportReplyValidationError) Cause ¶
func (e CreateExportReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateExportReplyValidationError) Error ¶
func (e CreateExportReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateExportReplyValidationError) ErrorName ¶
func (e CreateExportReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateExportReplyValidationError) Field ¶
func (e CreateExportReplyValidationError) Field() string
Field function returns field value.
func (CreateExportReplyValidationError) Key ¶
func (e CreateExportReplyValidationError) Key() bool
Key function returns key value.
func (CreateExportReplyValidationError) Reason ¶
func (e CreateExportReplyValidationError) Reason() string
Reason function returns reason value.
type CreateExportRequest ¶
type CreateExportRequest struct {
UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
DepartmentId uint32 `protobuf:"varint,2,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
Scene string `protobuf:"bytes,3,opt,name=scene,proto3" json:"scene,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Reason *string `protobuf:"bytes,5,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*CreateExportRequest) Descriptor
deprecated
func (*CreateExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateExportRequest.ProtoReflect.Descriptor instead.
func (*CreateExportRequest) GetDepartmentId ¶
func (x *CreateExportRequest) GetDepartmentId() uint32
func (*CreateExportRequest) GetName ¶
func (x *CreateExportRequest) GetName() string
func (*CreateExportRequest) GetReason ¶
func (x *CreateExportRequest) GetReason() string
func (*CreateExportRequest) GetScene ¶
func (x *CreateExportRequest) GetScene() string
func (*CreateExportRequest) GetUserId ¶
func (x *CreateExportRequest) GetUserId() uint32
func (*CreateExportRequest) ProtoMessage ¶
func (*CreateExportRequest) ProtoMessage()
func (*CreateExportRequest) ProtoReflect ¶
func (x *CreateExportRequest) ProtoReflect() protoreflect.Message
func (*CreateExportRequest) Reset ¶
func (x *CreateExportRequest) Reset()
func (*CreateExportRequest) String ¶
func (x *CreateExportRequest) String() string
func (*CreateExportRequest) Validate ¶
func (m *CreateExportRequest) Validate() error
Validate checks the field values on CreateExportRequest 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 (*CreateExportRequest) ValidateAll ¶
func (m *CreateExportRequest) ValidateAll() error
ValidateAll checks the field values on CreateExportRequest 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 CreateExportRequestMultiError, or nil if none found.
type CreateExportRequestMultiError ¶
type CreateExportRequestMultiError []error
CreateExportRequestMultiError is an error wrapping multiple validation errors returned by CreateExportRequest.ValidateAll() if the designated constraints aren't met.
func (CreateExportRequestMultiError) AllErrors ¶
func (m CreateExportRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateExportRequestMultiError) Error ¶
func (m CreateExportRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateExportRequestValidationError ¶
type CreateExportRequestValidationError struct {
// contains filtered or unexported fields
}
CreateExportRequestValidationError is the validation error returned by CreateExportRequest.Validate if the designated constraints aren't met.
func (CreateExportRequestValidationError) Cause ¶
func (e CreateExportRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateExportRequestValidationError) Error ¶
func (e CreateExportRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateExportRequestValidationError) ErrorName ¶
func (e CreateExportRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateExportRequestValidationError) Field ¶
func (e CreateExportRequestValidationError) Field() string
Field function returns field value.
func (CreateExportRequestValidationError) Key ¶
func (e CreateExportRequestValidationError) Key() bool
Key function returns key value.
func (CreateExportRequestValidationError) Reason ¶
func (e CreateExportRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteExportReply ¶
type DeleteExportReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteExportReply) Descriptor
deprecated
func (*DeleteExportReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteExportReply.ProtoReflect.Descriptor instead.
func (*DeleteExportReply) GetTotal ¶
func (x *DeleteExportReply) GetTotal() uint32
func (*DeleteExportReply) ProtoMessage ¶
func (*DeleteExportReply) ProtoMessage()
func (*DeleteExportReply) ProtoReflect ¶
func (x *DeleteExportReply) ProtoReflect() protoreflect.Message
func (*DeleteExportReply) Reset ¶
func (x *DeleteExportReply) Reset()
func (*DeleteExportReply) String ¶
func (x *DeleteExportReply) String() string
func (*DeleteExportReply) Validate ¶
func (m *DeleteExportReply) Validate() error
Validate checks the field values on DeleteExportReply 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 (*DeleteExportReply) ValidateAll ¶
func (m *DeleteExportReply) ValidateAll() error
ValidateAll checks the field values on DeleteExportReply 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 DeleteExportReplyMultiError, or nil if none found.
type DeleteExportReplyMultiError ¶
type DeleteExportReplyMultiError []error
DeleteExportReplyMultiError is an error wrapping multiple validation errors returned by DeleteExportReply.ValidateAll() if the designated constraints aren't met.
func (DeleteExportReplyMultiError) AllErrors ¶
func (m DeleteExportReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteExportReplyMultiError) Error ¶
func (m DeleteExportReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteExportReplyValidationError ¶
type DeleteExportReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteExportReplyValidationError is the validation error returned by DeleteExportReply.Validate if the designated constraints aren't met.
func (DeleteExportReplyValidationError) Cause ¶
func (e DeleteExportReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteExportReplyValidationError) Error ¶
func (e DeleteExportReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteExportReplyValidationError) ErrorName ¶
func (e DeleteExportReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteExportReplyValidationError) Field ¶
func (e DeleteExportReplyValidationError) Field() string
Field function returns field value.
func (DeleteExportReplyValidationError) Key ¶
func (e DeleteExportReplyValidationError) Key() bool
Key function returns key value.
func (DeleteExportReplyValidationError) Reason ¶
func (e DeleteExportReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteExportRequest ¶
type DeleteExportRequest struct {
Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteExportRequest) Descriptor
deprecated
func (*DeleteExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteExportRequest.ProtoReflect.Descriptor instead.
func (*DeleteExportRequest) GetIds ¶
func (x *DeleteExportRequest) GetIds() []uint32
func (*DeleteExportRequest) ProtoMessage ¶
func (*DeleteExportRequest) ProtoMessage()
func (*DeleteExportRequest) ProtoReflect ¶
func (x *DeleteExportRequest) ProtoReflect() protoreflect.Message
func (*DeleteExportRequest) Reset ¶
func (x *DeleteExportRequest) Reset()
func (*DeleteExportRequest) String ¶
func (x *DeleteExportRequest) String() string
func (*DeleteExportRequest) Validate ¶
func (m *DeleteExportRequest) Validate() error
Validate checks the field values on DeleteExportRequest 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 (*DeleteExportRequest) ValidateAll ¶
func (m *DeleteExportRequest) ValidateAll() error
ValidateAll checks the field values on DeleteExportRequest 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 DeleteExportRequestMultiError, or nil if none found.
type DeleteExportRequestMultiError ¶
type DeleteExportRequestMultiError []error
DeleteExportRequestMultiError is an error wrapping multiple validation errors returned by DeleteExportRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteExportRequestMultiError) AllErrors ¶
func (m DeleteExportRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteExportRequestMultiError) Error ¶
func (m DeleteExportRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteExportRequestValidationError ¶
type DeleteExportRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteExportRequestValidationError is the validation error returned by DeleteExportRequest.Validate if the designated constraints aren't met.
func (DeleteExportRequestValidationError) Cause ¶
func (e DeleteExportRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteExportRequestValidationError) Error ¶
func (e DeleteExportRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteExportRequestValidationError) ErrorName ¶
func (e DeleteExportRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteExportRequestValidationError) Field ¶
func (e DeleteExportRequestValidationError) Field() string
Field function returns field value.
func (DeleteExportRequestValidationError) Key ¶
func (e DeleteExportRequestValidationError) Key() bool
Key function returns key value.
func (DeleteExportRequestValidationError) Reason ¶
func (e DeleteExportRequestValidationError) Reason() string
Reason function returns reason value.
type ExportClient ¶
type ExportClient interface {
// ListExport 获取导出信息列表
ListExport(ctx context.Context, in *ListExportRequest, opts ...grpc.CallOption) (*ListExportReply, error)
// CreateExport 创建导出信息
CreateExport(ctx context.Context, in *CreateExportRequest, opts ...grpc.CallOption) (*CreateExportReply, error)
// DeleteExport 删除导出信息
DeleteExport(ctx context.Context, in *DeleteExportRequest, opts ...grpc.CallOption) (*DeleteExportReply, error)
}
ExportClient is the client API for Export 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 NewExportClient ¶
func NewExportClient(cc grpc.ClientConnInterface) ExportClient
type ExportHTTPClient ¶
type ExportHTTPClient interface {
CreateExport(ctx context.Context, req *CreateExportRequest, opts ...http.CallOption) (rsp *CreateExportReply, err error)
DeleteExport(ctx context.Context, req *DeleteExportRequest, opts ...http.CallOption) (rsp *DeleteExportReply, err error)
ListExport(ctx context.Context, req *ListExportRequest, opts ...http.CallOption) (rsp *ListExportReply, err error)
}
func NewExportHTTPClient ¶
func NewExportHTTPClient(client *http.Client) ExportHTTPClient
type ExportHTTPClientImpl ¶
type ExportHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ExportHTTPClientImpl) CreateExport ¶
func (c *ExportHTTPClientImpl) CreateExport(ctx context.Context, in *CreateExportRequest, opts ...http.CallOption) (*CreateExportReply, error)
func (*ExportHTTPClientImpl) DeleteExport ¶
func (c *ExportHTTPClientImpl) DeleteExport(ctx context.Context, in *DeleteExportRequest, opts ...http.CallOption) (*DeleteExportReply, error)
func (*ExportHTTPClientImpl) ListExport ¶
func (c *ExportHTTPClientImpl) ListExport(ctx context.Context, in *ListExportRequest, opts ...http.CallOption) (*ListExportReply, error)
type ExportHTTPServer ¶
type ExportHTTPServer interface {
// CreateExport CreateExport 创建导出信息
CreateExport(context.Context, *CreateExportRequest) (*CreateExportReply, error)
// DeleteExport DeleteExport 删除导出信息
DeleteExport(context.Context, *DeleteExportRequest) (*DeleteExportReply, error)
// ListExport ListExport 获取导出信息列表
ListExport(context.Context, *ListExportRequest) (*ListExportReply, error)
}
type ExportServer ¶
type ExportServer interface {
// ListExport 获取导出信息列表
ListExport(context.Context, *ListExportRequest) (*ListExportReply, error)
// CreateExport 创建导出信息
CreateExport(context.Context, *CreateExportRequest) (*CreateExportReply, error)
// DeleteExport 删除导出信息
DeleteExport(context.Context, *DeleteExportRequest) (*DeleteExportReply, error)
// contains filtered or unexported methods
}
ExportServer is the server API for Export service. All implementations must embed UnimplementedExportServer for forward compatibility
type ListExportReply ¶
type ListExportReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*ListExportReply_Export `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListExportReply) Descriptor
deprecated
func (*ListExportReply) Descriptor() ([]byte, []int)
Deprecated: Use ListExportReply.ProtoReflect.Descriptor instead.
func (*ListExportReply) GetList ¶
func (x *ListExportReply) GetList() []*ListExportReply_Export
func (*ListExportReply) GetTotal ¶
func (x *ListExportReply) GetTotal() uint32
func (*ListExportReply) ProtoMessage ¶
func (*ListExportReply) ProtoMessage()
func (*ListExportReply) ProtoReflect ¶
func (x *ListExportReply) ProtoReflect() protoreflect.Message
func (*ListExportReply) Reset ¶
func (x *ListExportReply) Reset()
func (*ListExportReply) String ¶
func (x *ListExportReply) String() string
func (*ListExportReply) Validate ¶
func (m *ListExportReply) Validate() error
Validate checks the field values on ListExportReply 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 (*ListExportReply) ValidateAll ¶
func (m *ListExportReply) ValidateAll() error
ValidateAll checks the field values on ListExportReply 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 ListExportReplyMultiError, or nil if none found.
type ListExportReplyMultiError ¶
type ListExportReplyMultiError []error
ListExportReplyMultiError is an error wrapping multiple validation errors returned by ListExportReply.ValidateAll() if the designated constraints aren't met.
func (ListExportReplyMultiError) AllErrors ¶
func (m ListExportReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListExportReplyMultiError) Error ¶
func (m ListExportReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListExportReplyValidationError ¶
type ListExportReplyValidationError struct {
// contains filtered or unexported fields
}
ListExportReplyValidationError is the validation error returned by ListExportReply.Validate if the designated constraints aren't met.
func (ListExportReplyValidationError) Cause ¶
func (e ListExportReplyValidationError) Cause() error
Cause function returns cause value.
func (ListExportReplyValidationError) Error ¶
func (e ListExportReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListExportReplyValidationError) ErrorName ¶
func (e ListExportReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListExportReplyValidationError) Field ¶
func (e ListExportReplyValidationError) Field() string
Field function returns field value.
func (ListExportReplyValidationError) Key ¶
func (e ListExportReplyValidationError) Key() bool
Key function returns key value.
func (ListExportReplyValidationError) Reason ¶
func (e ListExportReplyValidationError) Reason() string
Reason function returns reason value.
type ListExportReply_Export ¶
type ListExportReply_Export struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
UserId uint32 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
DepartmentId uint32 `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
Scene string `protobuf:"bytes,4,opt,name=scene,proto3" json:"scene,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Size uint32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
Sha *string `protobuf:"bytes,7,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
Src *string `protobuf:"bytes,8,opt,name=src,proto3,oneof" json:"src,omitempty"`
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
Reason *string `protobuf:"bytes,10,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
ExpiredAt uint32 `protobuf:"varint,11,opt,name=expiredAt,proto3" json:"expiredAt,omitempty"`
CreatedAt uint32 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*ListExportReply_Export) Descriptor
deprecated
func (*ListExportReply_Export) Descriptor() ([]byte, []int)
Deprecated: Use ListExportReply_Export.ProtoReflect.Descriptor instead.
func (*ListExportReply_Export) GetCreatedAt ¶
func (x *ListExportReply_Export) GetCreatedAt() uint32
func (*ListExportReply_Export) GetDepartmentId ¶
func (x *ListExportReply_Export) GetDepartmentId() uint32
func (*ListExportReply_Export) GetExpiredAt ¶
func (x *ListExportReply_Export) GetExpiredAt() uint32
func (*ListExportReply_Export) GetId ¶
func (x *ListExportReply_Export) GetId() uint32
func (*ListExportReply_Export) GetName ¶
func (x *ListExportReply_Export) GetName() string
func (*ListExportReply_Export) GetReason ¶
func (x *ListExportReply_Export) GetReason() string
func (*ListExportReply_Export) GetScene ¶
func (x *ListExportReply_Export) GetScene() string
func (*ListExportReply_Export) GetSha ¶
func (x *ListExportReply_Export) GetSha() string
func (*ListExportReply_Export) GetSize ¶
func (x *ListExportReply_Export) GetSize() uint32
func (*ListExportReply_Export) GetSrc ¶
func (x *ListExportReply_Export) GetSrc() string
func (*ListExportReply_Export) GetStatus ¶
func (x *ListExportReply_Export) GetStatus() string
func (*ListExportReply_Export) GetUpdatedAt ¶
func (x *ListExportReply_Export) GetUpdatedAt() uint32
func (*ListExportReply_Export) GetUserId ¶
func (x *ListExportReply_Export) GetUserId() uint32
func (*ListExportReply_Export) ProtoMessage ¶
func (*ListExportReply_Export) ProtoMessage()
func (*ListExportReply_Export) ProtoReflect ¶
func (x *ListExportReply_Export) ProtoReflect() protoreflect.Message
func (*ListExportReply_Export) Reset ¶
func (x *ListExportReply_Export) Reset()
func (*ListExportReply_Export) String ¶
func (x *ListExportReply_Export) String() string
func (*ListExportReply_Export) Validate ¶
func (m *ListExportReply_Export) Validate() error
Validate checks the field values on ListExportReply_Export 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 (*ListExportReply_Export) ValidateAll ¶
func (m *ListExportReply_Export) ValidateAll() error
ValidateAll checks the field values on ListExportReply_Export 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 ListExportReply_ExportMultiError, or nil if none found.
type ListExportReply_ExportMultiError ¶
type ListExportReply_ExportMultiError []error
ListExportReply_ExportMultiError is an error wrapping multiple validation errors returned by ListExportReply_Export.ValidateAll() if the designated constraints aren't met.
func (ListExportReply_ExportMultiError) AllErrors ¶
func (m ListExportReply_ExportMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListExportReply_ExportMultiError) Error ¶
func (m ListExportReply_ExportMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListExportReply_ExportValidationError ¶
type ListExportReply_ExportValidationError struct {
// contains filtered or unexported fields
}
ListExportReply_ExportValidationError is the validation error returned by ListExportReply_Export.Validate if the designated constraints aren't met.
func (ListExportReply_ExportValidationError) Cause ¶
func (e ListExportReply_ExportValidationError) Cause() error
Cause function returns cause value.
func (ListExportReply_ExportValidationError) Error ¶
func (e ListExportReply_ExportValidationError) Error() string
Error satisfies the builtin error interface
func (ListExportReply_ExportValidationError) ErrorName ¶
func (e ListExportReply_ExportValidationError) ErrorName() string
ErrorName returns error name.
func (ListExportReply_ExportValidationError) Field ¶
func (e ListExportReply_ExportValidationError) Field() string
Field function returns field value.
func (ListExportReply_ExportValidationError) Key ¶
func (e ListExportReply_ExportValidationError) Key() bool
Key function returns key value.
func (ListExportReply_ExportValidationError) Reason ¶
func (e ListExportReply_ExportValidationError) Reason() string
Reason function returns reason value.
type ListExportRequest ¶
type ListExportRequest struct {
Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
Order *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
OrderBy *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
UserId *uint32 `protobuf:"varint,5,opt,name=userId,proto3,oneof" json:"userId,omitempty"`
DepartmentId *uint32 `protobuf:"varint,6,opt,name=departmentId,proto3,oneof" json:"departmentId,omitempty"`
// contains filtered or unexported fields
}
func (*ListExportRequest) Descriptor
deprecated
func (*ListExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListExportRequest.ProtoReflect.Descriptor instead.
func (*ListExportRequest) GetDepartmentId ¶
func (x *ListExportRequest) GetDepartmentId() uint32
func (*ListExportRequest) GetOrder ¶
func (x *ListExportRequest) GetOrder() string
func (*ListExportRequest) GetOrderBy ¶
func (x *ListExportRequest) GetOrderBy() string
func (*ListExportRequest) GetPage ¶
func (x *ListExportRequest) GetPage() uint32
func (*ListExportRequest) GetPageSize ¶
func (x *ListExportRequest) GetPageSize() uint32
func (*ListExportRequest) GetUserId ¶
func (x *ListExportRequest) GetUserId() uint32
func (*ListExportRequest) ProtoMessage ¶
func (*ListExportRequest) ProtoMessage()
func (*ListExportRequest) ProtoReflect ¶
func (x *ListExportRequest) ProtoReflect() protoreflect.Message
func (*ListExportRequest) Reset ¶
func (x *ListExportRequest) Reset()
func (*ListExportRequest) String ¶
func (x *ListExportRequest) String() string
func (*ListExportRequest) Validate ¶
func (m *ListExportRequest) Validate() error
Validate checks the field values on ListExportRequest 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 (*ListExportRequest) ValidateAll ¶
func (m *ListExportRequest) ValidateAll() error
ValidateAll checks the field values on ListExportRequest 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 ListExportRequestMultiError, or nil if none found.
type ListExportRequestMultiError ¶
type ListExportRequestMultiError []error
ListExportRequestMultiError is an error wrapping multiple validation errors returned by ListExportRequest.ValidateAll() if the designated constraints aren't met.
func (ListExportRequestMultiError) AllErrors ¶
func (m ListExportRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListExportRequestMultiError) Error ¶
func (m ListExportRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListExportRequestValidationError ¶
type ListExportRequestValidationError struct {
// contains filtered or unexported fields
}
ListExportRequestValidationError is the validation error returned by ListExportRequest.Validate if the designated constraints aren't met.
func (ListExportRequestValidationError) Cause ¶
func (e ListExportRequestValidationError) Cause() error
Cause function returns cause value.
func (ListExportRequestValidationError) Error ¶
func (e ListExportRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListExportRequestValidationError) ErrorName ¶
func (e ListExportRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListExportRequestValidationError) Field ¶
func (e ListExportRequestValidationError) Field() string
Field function returns field value.
func (ListExportRequestValidationError) Key ¶
func (e ListExportRequestValidationError) Key() bool
Key function returns key value.
func (ListExportRequestValidationError) Reason ¶
func (e ListExportRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedExportServer ¶
type UnimplementedExportServer struct {
}
UnimplementedExportServer must be embedded to have forward compatible implementations.
func (UnimplementedExportServer) CreateExport ¶
func (UnimplementedExportServer) CreateExport(context.Context, *CreateExportRequest) (*CreateExportReply, error)
func (UnimplementedExportServer) DeleteExport ¶
func (UnimplementedExportServer) DeleteExport(context.Context, *DeleteExportRequest) (*DeleteExportReply, error)
func (UnimplementedExportServer) ListExport ¶
func (UnimplementedExportServer) ListExport(context.Context, *ListExportRequest) (*ListExportReply, error)
type UnsafeExportServer ¶
type UnsafeExportServer interface {
// contains filtered or unexported methods
}
UnsafeExportServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExportServer will result in compilation errors.