Documentation ¶
Overview ¶
Package basic is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterFileBasicHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFileBasicHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileBasicClient) error
- func RegisterFileBasicHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFileBasicHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileBasicServer) error
- func RegisterFileBasicServer(s grpc.ServiceRegistrar, srv FileBasicServer)
- type Chart
- type ChartSeries
- func (*ChartSeries) Descriptor() ([]byte, []int)deprecated
- func (x *ChartSeries) GetData() []float64
- func (x *ChartSeries) GetName() string
- func (*ChartSeries) ProtoMessage()
- func (x *ChartSeries) ProtoReflect() protoreflect.Message
- func (x *ChartSeries) Reset()
- func (x *ChartSeries) String() string
- type CustomEnumValue
- func (*CustomEnumValue) Descriptor() ([]byte, []int)deprecated
- func (x *CustomEnumValue) GetDisplayName() string
- func (x *CustomEnumValue) GetName() string
- func (x *CustomEnumValue) GetOrdinal() int32
- func (x *CustomEnumValue) GetType() int32
- func (x *CustomEnumValue) GetValue() int32
- func (*CustomEnumValue) ProtoMessage()
- func (x *CustomEnumValue) ProtoReflect() protoreflect.Message
- func (x *CustomEnumValue) Reset()
- func (x *CustomEnumValue) String() string
- type CustomEnumValueMap
- func (*CustomEnumValueMap) Descriptor() ([]byte, []int)deprecated
- func (x *CustomEnumValueMap) GetValues() map[int32]*CustomEnumValue
- func (*CustomEnumValueMap) ProtoMessage()
- func (x *CustomEnumValueMap) ProtoReflect() protoreflect.Message
- func (x *CustomEnumValueMap) Reset()
- func (x *CustomEnumValueMap) String() string
- type DownloadReq
- func (*DownloadReq) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadReq) GetFileId() string
- func (x *DownloadReq) GetTenant() string
- func (*DownloadReq) ProtoMessage()
- func (x *DownloadReq) ProtoReflect() protoreflect.Message
- func (x *DownloadReq) Reset()
- func (x *DownloadReq) String() string
- type DownloadSrcReq
- type Entry
- type EntryList
- type EntryMap
- type EnumEntryReq
- func (*EnumEntryReq) Descriptor() ([]byte, []int)deprecated
- func (x *EnumEntryReq) GetClassName() string
- func (x *EnumEntryReq) GetType() int32
- func (*EnumEntryReq) ProtoMessage()
- func (x *EnumEntryReq) ProtoReflect() protoreflect.Message
- func (x *EnumEntryReq) Reset()
- func (x *EnumEntryReq) String() string
- type EnumValueList
- type ExcelContentData
- func (*ExcelContentData) Descriptor() ([]byte, []int)deprecated
- func (x *ExcelContentData) GetRowData() map[string]string
- func (*ExcelContentData) ProtoMessage()
- func (x *ExcelContentData) ProtoReflect() protoreflect.Message
- func (x *ExcelContentData) Reset()
- func (x *ExcelContentData) String() string
- type ExcelHeaderData
- func (*ExcelHeaderData) Descriptor() ([]byte, []int)deprecated
- func (x *ExcelHeaderData) GetChildren() []*ExcelHeaderData
- func (x *ExcelHeaderData) GetColumnIndex() int32
- func (x *ExcelHeaderData) GetLabel() string
- func (x *ExcelHeaderData) GetProp() string
- func (*ExcelHeaderData) ProtoMessage()
- func (x *ExcelHeaderData) ProtoReflect() protoreflect.Message
- func (x *ExcelHeaderData) Reset()
- func (x *ExcelHeaderData) String() string
- type ExcelImportSheet
- func (*ExcelImportSheet) Descriptor() ([]byte, []int)deprecated
- func (x *ExcelImportSheet) GetDataStartRow() int32
- func (x *ExcelImportSheet) GetFileName() string
- func (x *ExcelImportSheet) GetPropColumn() map[string]int32
- func (x *ExcelImportSheet) GetSheet() int32
- func (*ExcelImportSheet) ProtoMessage()
- func (x *ExcelImportSheet) ProtoReflect() protoreflect.Message
- func (x *ExcelImportSheet) Reset()
- func (x *ExcelImportSheet) String() string
- type ExcelPreviewData
- func (*ExcelPreviewData) Descriptor() ([]byte, []int)deprecated
- func (x *ExcelPreviewData) GetContentList() []*ExcelContentData
- func (x *ExcelPreviewData) GetHeaderCount() int32
- func (x *ExcelPreviewData) GetHeaderList() []*ExcelHeaderData
- func (x *ExcelPreviewData) GetHeaderStartRow() int32
- func (*ExcelPreviewData) ProtoMessage()
- func (x *ExcelPreviewData) ProtoReflect() protoreflect.Message
- func (x *ExcelPreviewData) Reset()
- func (x *ExcelPreviewData) String() string
- type ExcelSheet
- func (*ExcelSheet) Descriptor() ([]byte, []int)deprecated
- func (x *ExcelSheet) GetFileName() string
- func (x *ExcelSheet) GetHeaderCount() int32
- func (x *ExcelSheet) GetHeaderStartRow() int32
- func (x *ExcelSheet) GetSheet() int32
- func (*ExcelSheet) ProtoMessage()
- func (x *ExcelSheet) ProtoReflect() protoreflect.Message
- func (x *ExcelSheet) Reset()
- func (x *ExcelSheet) String() string
- type FileBase64Req
- func (*FileBase64Req) Descriptor() ([]byte, []int)deprecated
- func (x *FileBase64Req) GetBase64() string
- func (x *FileBase64Req) GetContentType() string
- func (x *FileBase64Req) GetFileDir() string
- func (x *FileBase64Req) GetFileName() string
- func (x *FileBase64Req) GetTenant() string
- func (*FileBase64Req) ProtoMessage()
- func (x *FileBase64Req) ProtoReflect() protoreflect.Message
- func (x *FileBase64Req) Reset()
- func (x *FileBase64Req) String() string
- type FileBasicClient
- type FileBasicServer
- type FileBasic_DownloadFileBySrcClient
- type FileBasic_DownloadFileBySrcServer
- type FileBasic_DownloadFileClient
- type FileBasic_DownloadFileServer
- type FileBasic_DownloadThumbBySrcClient
- type FileBasic_DownloadThumbBySrcServer
- type FileBasic_DownloadThumbClient
- type FileBasic_DownloadThumbServer
- type FileBasic_UploadFileClient
- type FileBasic_UploadFileServer
- type FileDownloadResp
- func (*FileDownloadResp) Descriptor() ([]byte, []int)deprecated
- func (x *FileDownloadResp) GetBody() []byte
- func (x *FileDownloadResp) GetContentType() string
- func (x *FileDownloadResp) GetFileExt() string
- func (x *FileDownloadResp) GetFileHeight() int32
- func (x *FileDownloadResp) GetFileName() string
- func (x *FileDownloadResp) GetFilePart() int32
- func (x *FileDownloadResp) GetFileSize() int64
- func (x *FileDownloadResp) GetFileType() FileType
- func (x *FileDownloadResp) GetFileWidth() int32
- func (*FileDownloadResp) ProtoMessage()
- func (x *FileDownloadResp) ProtoReflect() protoreflect.Message
- func (x *FileDownloadResp) Reset()
- func (x *FileDownloadResp) String() string
- type FileHash
- func (*FileHash) Descriptor() ([]byte, []int)deprecated
- func (x *FileHash) GetFileSize() int64
- func (x *FileHash) GetHashSha256() []byte
- func (x *FileHash) GetHashSm3() []byte
- func (x *FileHash) GetTenant() string
- func (*FileHash) ProtoMessage()
- func (x *FileHash) ProtoReflect() protoreflect.Message
- func (x *FileHash) Reset()
- func (x *FileHash) String() string
- type FileHashHex
- func (*FileHashHex) Descriptor() ([]byte, []int)deprecated
- func (x *FileHashHex) GetFileSize() int64
- func (x *FileHashHex) GetHashSha256() string
- func (x *FileHashHex) GetHashSm3() string
- func (x *FileHashHex) GetTenant() string
- func (*FileHashHex) ProtoMessage()
- func (x *FileHashHex) ProtoReflect() protoreflect.Message
- func (x *FileHashHex) Reset()
- func (x *FileHashHex) String() string
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetContentType() string
- func (x *FileInfo) GetCreateDate() *timestamppb.Timestamp
- func (x *FileInfo) GetFileExt() string
- func (x *FileInfo) GetFileHeight() int32
- func (x *FileInfo) GetFileId() string
- func (x *FileInfo) GetFileLocation() string
- func (x *FileInfo) GetFileName() string
- func (x *FileInfo) GetFileSize() int64
- func (x *FileInfo) GetFileSrc() string
- func (x *FileInfo) GetFileTime() int64
- func (x *FileInfo) GetFileType() FileType
- func (x *FileInfo) GetFileWidth() int32
- func (x *FileInfo) GetHashSha256() []byte
- func (x *FileInfo) GetHashSm3() []byte
- func (x *FileInfo) GetPosition() *Geolocation
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type FileType
- type FileUploadReq
- func (*FileUploadReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileUploadReq) GetBody() []byte
- func (x *FileUploadReq) GetContentType() string
- func (x *FileUploadReq) GetFileDir() string
- func (x *FileUploadReq) GetFileName() string
- func (x *FileUploadReq) GetFileSize() int64
- func (x *FileUploadReq) GetTenant() string
- func (*FileUploadReq) ProtoMessage()
- func (x *FileUploadReq) ProtoReflect() protoreflect.Message
- func (x *FileUploadReq) Reset()
- func (x *FileUploadReq) String() string
- type FileWebUploadReq
- func (*FileWebUploadReq) Descriptor() ([]byte, []int)deprecated
- func (x *FileWebUploadReq) GetBody() []byte
- func (x *FileWebUploadReq) GetContentType() string
- func (x *FileWebUploadReq) GetFileDir() string
- func (x *FileWebUploadReq) GetFileName() string
- func (x *FileWebUploadReq) GetFilePart() int32
- func (x *FileWebUploadReq) GetFileSize() int64
- func (x *FileWebUploadReq) GetRequestId() string
- func (x *FileWebUploadReq) GetTenant() string
- func (*FileWebUploadReq) ProtoMessage()
- func (x *FileWebUploadReq) ProtoReflect() protoreflect.Message
- func (x *FileWebUploadReq) Reset()
- func (x *FileWebUploadReq) String() string
- type Gender
- type Geolocation
- func (*Geolocation) Descriptor() ([]byte, []int)deprecated
- func (x *Geolocation) GetAccuracy() int32
- func (x *Geolocation) GetAltitude() float64
- func (x *Geolocation) GetAltitudeAccracy() int32
- func (x *Geolocation) GetLatitude() float64
- func (x *Geolocation) GetLongitude() float64
- func (*Geolocation) ProtoMessage()
- func (x *Geolocation) ProtoReflect() protoreflect.Message
- func (x *Geolocation) Reset()
- func (x *Geolocation) String() string
- type TableHead
- func (*TableHead) Descriptor() ([]byte, []int)deprecated
- func (x *TableHead) GetLabel() string
- func (x *TableHead) GetProp() string
- func (x *TableHead) GetSerial() bool
- func (*TableHead) ProtoMessage()
- func (x *TableHead) ProtoReflect() protoreflect.Message
- func (x *TableHead) Reset()
- func (x *TableHead) String() string
- type TenantReq
- type ThumbDownloadReq
- func (*ThumbDownloadReq) Descriptor() ([]byte, []int)deprecated
- func (x *ThumbDownloadReq) GetFileId() string
- func (x *ThumbDownloadReq) GetHeight() int32
- func (x *ThumbDownloadReq) GetTenant() string
- func (x *ThumbDownloadReq) GetThumbType() ThumbType
- func (x *ThumbDownloadReq) GetWidth() int32
- func (*ThumbDownloadReq) ProtoMessage()
- func (x *ThumbDownloadReq) ProtoReflect() protoreflect.Message
- func (x *ThumbDownloadReq) Reset()
- func (x *ThumbDownloadReq) String() string
- type ThumbSrcDownloadReq
- func (*ThumbSrcDownloadReq) Descriptor() ([]byte, []int)deprecated
- func (x *ThumbSrcDownloadReq) GetFileSrc() string
- func (x *ThumbSrcDownloadReq) GetHeight() int32
- func (x *ThumbSrcDownloadReq) GetThumbType() ThumbType
- func (x *ThumbSrcDownloadReq) GetWidth() int32
- func (*ThumbSrcDownloadReq) ProtoMessage()
- func (x *ThumbSrcDownloadReq) ProtoReflect() protoreflect.Message
- func (x *ThumbSrcDownloadReq) Reset()
- func (x *ThumbSrcDownloadReq) String() string
- type ThumbType
- type TreeList
- type TreeModel
- func (*TreeModel) Descriptor() ([]byte, []int)deprecated
- func (x *TreeModel) GetChildren() []*TreeModel
- func (x *TreeModel) GetLabel() string
- func (x *TreeModel) GetParentId() string
- func (x *TreeModel) GetValue() string
- func (*TreeModel) ProtoMessage()
- func (x *TreeModel) ProtoReflect() protoreflect.Message
- func (x *TreeModel) Reset()
- func (x *TreeModel) String() string
- type UUIDValue
- type UnimplementedFileBasicServer
- func (UnimplementedFileBasicServer) DownloadFile(*DownloadReq, FileBasic_DownloadFileServer) error
- func (UnimplementedFileBasicServer) DownloadFileBySrc(*DownloadSrcReq, FileBasic_DownloadFileBySrcServer) error
- func (UnimplementedFileBasicServer) DownloadThumb(*ThumbDownloadReq, FileBasic_DownloadThumbServer) error
- func (UnimplementedFileBasicServer) DownloadThumbBySrc(*ThumbSrcDownloadReq, FileBasic_DownloadThumbBySrcServer) error
- func (UnimplementedFileBasicServer) ExistFile(context.Context, *FileHash) (*FileInfo, error)
- func (UnimplementedFileBasicServer) ExistFileHex(context.Context, *FileHashHex) (*FileInfo, error)
- func (UnimplementedFileBasicServer) UploadBase64File(context.Context, *FileBase64Req) (*FileInfo, error)
- func (UnimplementedFileBasicServer) UploadFile(FileBasic_UploadFileServer) error
- func (UnimplementedFileBasicServer) UploadFileWeb(context.Context, *FileWebUploadReq) (*FileInfo, error)
- func (UnimplementedFileBasicServer) Version(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error)
- type UnsafeFileBasicServer
Constants ¶
This section is empty.
Variables ¶
var ( Gender_name = map[int32]string{ 0: "unknown", 1: "male", 2: "female", 9: "undeclared", } Gender_value = map[string]int32{ "unknown": 0, "male": 1, "female": 2, "undeclared": 9, } )
Enum value maps for Gender.
var ( // 枚举显示名 // // optional string display_name = 50001; E_DisplayName = &file_jmash_protobuf_basic_proto_extTypes[0] // 枚举类型 // // optional int32 type = 50002; E_Type = &file_jmash_protobuf_basic_proto_extTypes[1] )
Extension fields to descriptorpb.EnumValueOptions.
var ( FileType_name = map[int32]string{ 0: "text", 1: "video", 2: "image", 3: "audio", 4: "zip", 5: "file", } FileType_value = map[string]int32{ "text": 0, "video": 1, "image": 2, "audio": 3, "zip": 4, "file": 5, } )
Enum value maps for FileType.
var ( ThumbType_name = map[int32]string{ 0: "resize", 1: "white", 2: "trans", 3: "clip", } ThumbType_value = map[string]int32{ "resize": 0, "white": 1, "trans": 2, "clip": 3, } )
Enum value maps for ThumbType.
var FileBasic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "jmash.basic.FileBasic", HandlerType: (*FileBasicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "version", Handler: _FileBasic_Version_Handler, }, { MethodName: "uploadFileWeb", Handler: _FileBasic_UploadFileWeb_Handler, }, { MethodName: "uploadBase64File", Handler: _FileBasic_UploadBase64File_Handler, }, { MethodName: "existFile", Handler: _FileBasic_ExistFile_Handler, }, { MethodName: "existFileHex", Handler: _FileBasic_ExistFileHex_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "uploadFile", Handler: _FileBasic_UploadFile_Handler, ClientStreams: true, }, { StreamName: "downloadFile", Handler: _FileBasic_DownloadFile_Handler, ServerStreams: true, }, { StreamName: "downloadFileBySrc", Handler: _FileBasic_DownloadFileBySrc_Handler, ServerStreams: true, }, { StreamName: "downloadThumb", Handler: _FileBasic_DownloadThumb_Handler, ServerStreams: true, }, { StreamName: "downloadThumbBySrc", Handler: _FileBasic_DownloadThumbBySrc_Handler, ServerStreams: true, }, }, Metadata: "jmash/basic/file_basic_rpc.proto", }
FileBasic_ServiceDesc is the grpc.ServiceDesc for FileBasic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_jmash_basic_file_basic_rpc_proto protoreflect.FileDescriptor
var File_jmash_protobuf_basic_proto protoreflect.FileDescriptor
var File_jmash_protobuf_file_basic_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileBasicHandler ¶
func RegisterFileBasicHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFileBasicHandler registers the http handlers for service FileBasic to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFileBasicHandlerClient ¶
func RegisterFileBasicHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileBasicClient) error
RegisterFileBasicHandlerClient registers the http handlers for service FileBasic to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileBasicClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileBasicClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileBasicClient" to call the correct interceptors.
func RegisterFileBasicHandlerFromEndpoint ¶
func RegisterFileBasicHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFileBasicHandlerFromEndpoint is same as RegisterFileBasicHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFileBasicHandlerServer ¶
func RegisterFileBasicHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileBasicServer) error
RegisterFileBasicHandlerServer registers the http handlers for service FileBasic to "mux". UnaryRPC :call FileBasicServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFileBasicHandlerFromEndpoint instead.
func RegisterFileBasicServer ¶
func RegisterFileBasicServer(s grpc.ServiceRegistrar, srv FileBasicServer)
Types ¶
type Chart ¶
type Chart struct { // X轴坐标数组 XAxisData []string `protobuf:"bytes,1,rep,name=x_axis_data,json=xAxisData,proto3" json:"x_axis_data,omitempty"` // 展示数据数组 Series []*ChartSeries `protobuf:"bytes,2,rep,name=series,proto3" json:"series,omitempty"` // contains filtered or unexported fields }
图表数据
func (*Chart) Descriptor
deprecated
func (*Chart) GetSeries ¶
func (x *Chart) GetSeries() []*ChartSeries
func (*Chart) GetXAxisData ¶
func (*Chart) ProtoMessage ¶
func (*Chart) ProtoMessage()
func (*Chart) ProtoReflect ¶
func (x *Chart) ProtoReflect() protoreflect.Message
type ChartSeries ¶
type ChartSeries struct { // 数据名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 展示数据数组 Data []float64 `protobuf:"fixed64,2,rep,packed,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
图标数据
func (*ChartSeries) Descriptor
deprecated
func (*ChartSeries) Descriptor() ([]byte, []int)
Deprecated: Use ChartSeries.ProtoReflect.Descriptor instead.
func (*ChartSeries) GetData ¶
func (x *ChartSeries) GetData() []float64
func (*ChartSeries) GetName ¶
func (x *ChartSeries) GetName() string
func (*ChartSeries) ProtoMessage ¶
func (*ChartSeries) ProtoMessage()
func (*ChartSeries) ProtoReflect ¶
func (x *ChartSeries) ProtoReflect() protoreflect.Message
func (*ChartSeries) Reset ¶
func (x *ChartSeries) Reset()
func (*ChartSeries) String ¶
func (x *ChartSeries) String() string
type CustomEnumValue ¶
type CustomEnumValue struct { // 枚举值 Ordinal int32 `protobuf:"varint,1,opt,name=ordinal,proto3" json:"ordinal,omitempty"` // 枚举名 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // proto配置value值. Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` // 显示名称. DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // 枚举类型 Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
自定义枚举值
func (*CustomEnumValue) Descriptor
deprecated
func (*CustomEnumValue) Descriptor() ([]byte, []int)
Deprecated: Use CustomEnumValue.ProtoReflect.Descriptor instead.
func (*CustomEnumValue) GetDisplayName ¶
func (x *CustomEnumValue) GetDisplayName() string
func (*CustomEnumValue) GetName ¶
func (x *CustomEnumValue) GetName() string
func (*CustomEnumValue) GetOrdinal ¶
func (x *CustomEnumValue) GetOrdinal() int32
func (*CustomEnumValue) GetType ¶
func (x *CustomEnumValue) GetType() int32
func (*CustomEnumValue) GetValue ¶
func (x *CustomEnumValue) GetValue() int32
func (*CustomEnumValue) ProtoMessage ¶
func (*CustomEnumValue) ProtoMessage()
func (*CustomEnumValue) ProtoReflect ¶
func (x *CustomEnumValue) ProtoReflect() protoreflect.Message
func (*CustomEnumValue) Reset ¶
func (x *CustomEnumValue) Reset()
func (*CustomEnumValue) String ¶
func (x *CustomEnumValue) String() string
type CustomEnumValueMap ¶
type CustomEnumValueMap struct { Values map[int32]*CustomEnumValue `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
枚举值枚举
func (*CustomEnumValueMap) Descriptor
deprecated
func (*CustomEnumValueMap) Descriptor() ([]byte, []int)
Deprecated: Use CustomEnumValueMap.ProtoReflect.Descriptor instead.
func (*CustomEnumValueMap) GetValues ¶
func (x *CustomEnumValueMap) GetValues() map[int32]*CustomEnumValue
func (*CustomEnumValueMap) ProtoMessage ¶
func (*CustomEnumValueMap) ProtoMessage()
func (*CustomEnumValueMap) ProtoReflect ¶
func (x *CustomEnumValueMap) ProtoReflect() protoreflect.Message
func (*CustomEnumValueMap) Reset ¶
func (x *CustomEnumValueMap) Reset()
func (*CustomEnumValueMap) String ¶
func (x *CustomEnumValueMap) String() string
type DownloadReq ¶
type DownloadReq struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // 文件下载 FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` // contains filtered or unexported fields }
下载请求
func (*DownloadReq) Descriptor
deprecated
func (*DownloadReq) Descriptor() ([]byte, []int)
Deprecated: Use DownloadReq.ProtoReflect.Descriptor instead.
func (*DownloadReq) GetFileId ¶
func (x *DownloadReq) GetFileId() string
func (*DownloadReq) GetTenant ¶
func (x *DownloadReq) GetTenant() string
func (*DownloadReq) ProtoMessage ¶
func (*DownloadReq) ProtoMessage()
func (*DownloadReq) ProtoReflect ¶
func (x *DownloadReq) ProtoReflect() protoreflect.Message
func (*DownloadReq) Reset ¶
func (x *DownloadReq) Reset()
func (*DownloadReq) String ¶
func (x *DownloadReq) String() string
type DownloadSrcReq ¶
type DownloadSrcReq struct { // 文件下载 FileSrc string `protobuf:"bytes,1,opt,name=file_src,json=fileSrc,proto3" json:"file_src,omitempty"` // contains filtered or unexported fields }
下载请求Src
func (*DownloadSrcReq) Descriptor
deprecated
func (*DownloadSrcReq) Descriptor() ([]byte, []int)
Deprecated: Use DownloadSrcReq.ProtoReflect.Descriptor instead.
func (*DownloadSrcReq) GetFileSrc ¶
func (x *DownloadSrcReq) GetFileSrc() string
func (*DownloadSrcReq) ProtoMessage ¶
func (*DownloadSrcReq) ProtoMessage()
func (*DownloadSrcReq) ProtoReflect ¶
func (x *DownloadSrcReq) ProtoReflect() protoreflect.Message
func (*DownloadSrcReq) Reset ¶
func (x *DownloadSrcReq) Reset()
func (*DownloadSrcReq) String ¶
func (x *DownloadSrcReq) String() string
type Entry ¶
type Entry struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Entry
func (*Entry) Descriptor
deprecated
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type EntryList ¶
type EntryList struct { Values []*Entry `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Entry List
func (*EntryList) Descriptor
deprecated
func (*EntryList) ProtoMessage ¶
func (*EntryList) ProtoMessage()
func (*EntryList) ProtoReflect ¶
func (x *EntryList) ProtoReflect() protoreflect.Message
type EntryMap ¶
type EntryMap struct { Values map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
键值对Map
func (*EntryMap) Descriptor
deprecated
func (*EntryMap) ProtoMessage ¶
func (*EntryMap) ProtoMessage()
func (*EntryMap) ProtoReflect ¶
func (x *EntryMap) ProtoReflect() protoreflect.Message
type EnumEntryReq ¶
type EnumEntryReq struct { // 枚举类名称 ClassName string `protobuf:"bytes,1,opt,name=class_name,json=className,proto3" json:"class_name,omitempty"` // 枚举类型(默认0) Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
枚举查询请求
func (*EnumEntryReq) Descriptor
deprecated
func (*EnumEntryReq) Descriptor() ([]byte, []int)
Deprecated: Use EnumEntryReq.ProtoReflect.Descriptor instead.
func (*EnumEntryReq) GetClassName ¶
func (x *EnumEntryReq) GetClassName() string
func (*EnumEntryReq) GetType ¶
func (x *EnumEntryReq) GetType() int32
func (*EnumEntryReq) ProtoMessage ¶
func (*EnumEntryReq) ProtoMessage()
func (*EnumEntryReq) ProtoReflect ¶
func (x *EnumEntryReq) ProtoReflect() protoreflect.Message
func (*EnumEntryReq) Reset ¶
func (x *EnumEntryReq) Reset()
func (*EnumEntryReq) String ¶
func (x *EnumEntryReq) String() string
type EnumValueList ¶
type EnumValueList struct { Values []*typepb.EnumValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
枚举值列表
func (*EnumValueList) Descriptor
deprecated
func (*EnumValueList) Descriptor() ([]byte, []int)
Deprecated: Use EnumValueList.ProtoReflect.Descriptor instead.
func (*EnumValueList) GetValues ¶
func (x *EnumValueList) GetValues() []*typepb.EnumValue
func (*EnumValueList) ProtoMessage ¶
func (*EnumValueList) ProtoMessage()
func (*EnumValueList) ProtoReflect ¶
func (x *EnumValueList) ProtoReflect() protoreflect.Message
func (*EnumValueList) Reset ¶
func (x *EnumValueList) Reset()
func (*EnumValueList) String ¶
func (x *EnumValueList) String() string
type ExcelContentData ¶
type ExcelContentData struct { // 行数据 <prop,value> RowData map[string]string `` /* 170-byte string literal not displayed */ // contains filtered or unexported fields }
Excel 内容数据
func (*ExcelContentData) Descriptor
deprecated
func (*ExcelContentData) Descriptor() ([]byte, []int)
Deprecated: Use ExcelContentData.ProtoReflect.Descriptor instead.
func (*ExcelContentData) GetRowData ¶
func (x *ExcelContentData) GetRowData() map[string]string
func (*ExcelContentData) ProtoMessage ¶
func (*ExcelContentData) ProtoMessage()
func (*ExcelContentData) ProtoReflect ¶
func (x *ExcelContentData) ProtoReflect() protoreflect.Message
func (*ExcelContentData) Reset ¶
func (x *ExcelContentData) Reset()
func (*ExcelContentData) String ¶
func (x *ExcelContentData) String() string
type ExcelHeaderData ¶
type ExcelHeaderData struct { // 表头 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // 字段名 Prop string `protobuf:"bytes,2,opt,name=prop,proto3" json:"prop,omitempty"` // 列Index ColumnIndex int32 `protobuf:"varint,3,opt,name=column_index,json=columnIndex,proto3" json:"column_index,omitempty"` // children Children []*ExcelHeaderData `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
Excel 表头数据
func (*ExcelHeaderData) Descriptor
deprecated
func (*ExcelHeaderData) Descriptor() ([]byte, []int)
Deprecated: Use ExcelHeaderData.ProtoReflect.Descriptor instead.
func (*ExcelHeaderData) GetChildren ¶
func (x *ExcelHeaderData) GetChildren() []*ExcelHeaderData
func (*ExcelHeaderData) GetColumnIndex ¶
func (x *ExcelHeaderData) GetColumnIndex() int32
func (*ExcelHeaderData) GetLabel ¶
func (x *ExcelHeaderData) GetLabel() string
func (*ExcelHeaderData) GetProp ¶
func (x *ExcelHeaderData) GetProp() string
func (*ExcelHeaderData) ProtoMessage ¶
func (*ExcelHeaderData) ProtoMessage()
func (*ExcelHeaderData) ProtoReflect ¶
func (x *ExcelHeaderData) ProtoReflect() protoreflect.Message
func (*ExcelHeaderData) Reset ¶
func (x *ExcelHeaderData) Reset()
func (*ExcelHeaderData) String ¶
func (x *ExcelHeaderData) String() string
type ExcelImportSheet ¶
type ExcelImportSheet struct { // Excel 文件 FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // sheet Sheet int32 `protobuf:"varint,2,opt,name=sheet,proto3" json:"sheet,omitempty"` // 数据开始行 DataStartRow int32 `protobuf:"varint,3,opt,name=data_start_row,json=dataStartRow,proto3" json:"data_start_row,omitempty"` // 属性,列索引对应 PropColumn map[string]int32 `` /* 180-byte string literal not displayed */ // contains filtered or unexported fields }
Excel 导入Sheet 前端定义位置
func (*ExcelImportSheet) Descriptor
deprecated
func (*ExcelImportSheet) Descriptor() ([]byte, []int)
Deprecated: Use ExcelImportSheet.ProtoReflect.Descriptor instead.
func (*ExcelImportSheet) GetDataStartRow ¶
func (x *ExcelImportSheet) GetDataStartRow() int32
func (*ExcelImportSheet) GetFileName ¶
func (x *ExcelImportSheet) GetFileName() string
func (*ExcelImportSheet) GetPropColumn ¶
func (x *ExcelImportSheet) GetPropColumn() map[string]int32
func (*ExcelImportSheet) GetSheet ¶
func (x *ExcelImportSheet) GetSheet() int32
func (*ExcelImportSheet) ProtoMessage ¶
func (*ExcelImportSheet) ProtoMessage()
func (*ExcelImportSheet) ProtoReflect ¶
func (x *ExcelImportSheet) ProtoReflect() protoreflect.Message
func (*ExcelImportSheet) Reset ¶
func (x *ExcelImportSheet) Reset()
func (*ExcelImportSheet) String ¶
func (x *ExcelImportSheet) String() string
type ExcelPreviewData ¶
type ExcelPreviewData struct { // 数据头信息 HeaderList []*ExcelHeaderData `protobuf:"bytes,1,rep,name=header_list,json=headerList,proto3" json:"header_list,omitempty"` // 数据信息 ContentList []*ExcelContentData `protobuf:"bytes,2,rep,name=content_list,json=contentList,proto3" json:"content_list,omitempty"` // 表头开始行 HeaderStartRow int32 `protobuf:"varint,3,opt,name=header_start_row,json=headerStartRow,proto3" json:"header_start_row,omitempty"` // 表头数 HeaderCount int32 `protobuf:"varint,4,opt,name=header_count,json=headerCount,proto3" json:"header_count,omitempty"` // contains filtered or unexported fields }
Excel预览数据
func (*ExcelPreviewData) Descriptor
deprecated
func (*ExcelPreviewData) Descriptor() ([]byte, []int)
Deprecated: Use ExcelPreviewData.ProtoReflect.Descriptor instead.
func (*ExcelPreviewData) GetContentList ¶
func (x *ExcelPreviewData) GetContentList() []*ExcelContentData
func (*ExcelPreviewData) GetHeaderCount ¶
func (x *ExcelPreviewData) GetHeaderCount() int32
func (*ExcelPreviewData) GetHeaderList ¶
func (x *ExcelPreviewData) GetHeaderList() []*ExcelHeaderData
func (*ExcelPreviewData) GetHeaderStartRow ¶
func (x *ExcelPreviewData) GetHeaderStartRow() int32
func (*ExcelPreviewData) ProtoMessage ¶
func (*ExcelPreviewData) ProtoMessage()
func (*ExcelPreviewData) ProtoReflect ¶
func (x *ExcelPreviewData) ProtoReflect() protoreflect.Message
func (*ExcelPreviewData) Reset ¶
func (x *ExcelPreviewData) Reset()
func (*ExcelPreviewData) String ¶
func (x *ExcelPreviewData) String() string
type ExcelSheet ¶
type ExcelSheet struct { // Excel 文件 FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // sheet Sheet int32 `protobuf:"varint,2,opt,name=sheet,proto3" json:"sheet,omitempty"` // 表头开始行 HeaderStartRow int32 `protobuf:"varint,3,opt,name=header_start_row,json=headerStartRow,proto3" json:"header_start_row,omitempty"` // 表头数 HeaderCount int32 `protobuf:"varint,4,opt,name=header_count,json=headerCount,proto3" json:"header_count,omitempty"` // contains filtered or unexported fields }
Excel Sheet 表
func (*ExcelSheet) Descriptor
deprecated
func (*ExcelSheet) Descriptor() ([]byte, []int)
Deprecated: Use ExcelSheet.ProtoReflect.Descriptor instead.
func (*ExcelSheet) GetFileName ¶
func (x *ExcelSheet) GetFileName() string
func (*ExcelSheet) GetHeaderCount ¶
func (x *ExcelSheet) GetHeaderCount() int32
func (*ExcelSheet) GetHeaderStartRow ¶
func (x *ExcelSheet) GetHeaderStartRow() int32
func (*ExcelSheet) GetSheet ¶
func (x *ExcelSheet) GetSheet() int32
func (*ExcelSheet) ProtoMessage ¶
func (*ExcelSheet) ProtoMessage()
func (*ExcelSheet) ProtoReflect ¶
func (x *ExcelSheet) ProtoReflect() protoreflect.Message
func (*ExcelSheet) Reset ¶
func (x *ExcelSheet) Reset()
func (*ExcelSheet) String ¶
func (x *ExcelSheet) String() string
type FileBase64Req ¶
type FileBase64Req struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // Base64文件内容 Base64 string `protobuf:"bytes,2,opt,name=base64,proto3" json:"base64,omitempty"` // 文件名称 FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 内容类型 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // 保存路径 FileDir string `protobuf:"bytes,5,opt,name=file_dir,json=fileDir,proto3" json:"file_dir,omitempty"` // contains filtered or unexported fields }
func (*FileBase64Req) Descriptor
deprecated
func (*FileBase64Req) Descriptor() ([]byte, []int)
Deprecated: Use FileBase64Req.ProtoReflect.Descriptor instead.
func (*FileBase64Req) GetBase64 ¶
func (x *FileBase64Req) GetBase64() string
func (*FileBase64Req) GetContentType ¶
func (x *FileBase64Req) GetContentType() string
func (*FileBase64Req) GetFileDir ¶
func (x *FileBase64Req) GetFileDir() string
func (*FileBase64Req) GetFileName ¶
func (x *FileBase64Req) GetFileName() string
func (*FileBase64Req) GetTenant ¶
func (x *FileBase64Req) GetTenant() string
func (*FileBase64Req) ProtoMessage ¶
func (*FileBase64Req) ProtoMessage()
func (*FileBase64Req) ProtoReflect ¶
func (x *FileBase64Req) ProtoReflect() protoreflect.Message
func (*FileBase64Req) Reset ¶
func (x *FileBase64Req) Reset()
func (*FileBase64Req) String ¶
func (x *FileBase64Req) String() string
type FileBasicClient ¶
type FileBasicClient interface { // 版本 Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) // 上传文件 UploadFile(ctx context.Context, opts ...grpc.CallOption) (FileBasic_UploadFileClient, error) // 通过Web上传文件 UploadFileWeb(ctx context.Context, in *FileWebUploadReq, opts ...grpc.CallOption) (*FileInfo, error) // 上传Base64文件 3.5M限制 UploadBase64File(ctx context.Context, in *FileBase64Req, opts ...grpc.CallOption) (*FileInfo, error) // 文件是否存在 ExistFile(ctx context.Context, in *FileHash, opts ...grpc.CallOption) (*FileInfo, error) // 文件是否存在 ExistFileHex(ctx context.Context, in *FileHashHex, opts ...grpc.CallOption) (*FileInfo, error) // 下载文件通过ID DownloadFile(ctx context.Context, in *DownloadReq, opts ...grpc.CallOption) (FileBasic_DownloadFileClient, error) // 下载文件通过Src DownloadFileBySrc(ctx context.Context, in *DownloadSrcReq, opts ...grpc.CallOption) (FileBasic_DownloadFileBySrcClient, error) // 下载缩略图通过ID DownloadThumb(ctx context.Context, in *ThumbDownloadReq, opts ...grpc.CallOption) (FileBasic_DownloadThumbClient, error) // 下载缩略图通过Src DownloadThumbBySrc(ctx context.Context, in *ThumbSrcDownloadReq, opts ...grpc.CallOption) (FileBasic_DownloadThumbBySrcClient, error) }
FileBasicClient is the client API for FileBasic 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 NewFileBasicClient ¶
func NewFileBasicClient(cc grpc.ClientConnInterface) FileBasicClient
type FileBasicServer ¶
type FileBasicServer interface { // 版本 Version(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error) // 上传文件 UploadFile(FileBasic_UploadFileServer) error // 通过Web上传文件 UploadFileWeb(context.Context, *FileWebUploadReq) (*FileInfo, error) // 上传Base64文件 3.5M限制 UploadBase64File(context.Context, *FileBase64Req) (*FileInfo, error) // 文件是否存在 ExistFile(context.Context, *FileHash) (*FileInfo, error) // 文件是否存在 ExistFileHex(context.Context, *FileHashHex) (*FileInfo, error) // 下载文件通过ID DownloadFile(*DownloadReq, FileBasic_DownloadFileServer) error // 下载文件通过Src DownloadFileBySrc(*DownloadSrcReq, FileBasic_DownloadFileBySrcServer) error // 下载缩略图通过ID DownloadThumb(*ThumbDownloadReq, FileBasic_DownloadThumbServer) error // 下载缩略图通过Src DownloadThumbBySrc(*ThumbSrcDownloadReq, FileBasic_DownloadThumbBySrcServer) error // contains filtered or unexported methods }
FileBasicServer is the server API for FileBasic service. All implementations must embed UnimplementedFileBasicServer for forward compatibility
type FileBasic_DownloadFileBySrcClient ¶
type FileBasic_DownloadFileBySrcClient interface { Recv() (*httpbody.HttpBody, error) grpc.ClientStream }
type FileBasic_DownloadFileBySrcServer ¶
type FileBasic_DownloadFileBySrcServer interface { Send(*httpbody.HttpBody) error grpc.ServerStream }
type FileBasic_DownloadFileClient ¶
type FileBasic_DownloadFileClient interface { Recv() (*httpbody.HttpBody, error) grpc.ClientStream }
type FileBasic_DownloadFileServer ¶
type FileBasic_DownloadFileServer interface { Send(*httpbody.HttpBody) error grpc.ServerStream }
type FileBasic_DownloadThumbBySrcClient ¶
type FileBasic_DownloadThumbBySrcClient interface { Recv() (*httpbody.HttpBody, error) grpc.ClientStream }
type FileBasic_DownloadThumbBySrcServer ¶
type FileBasic_DownloadThumbBySrcServer interface { Send(*httpbody.HttpBody) error grpc.ServerStream }
type FileBasic_DownloadThumbClient ¶
type FileBasic_DownloadThumbClient interface { Recv() (*httpbody.HttpBody, error) grpc.ClientStream }
type FileBasic_DownloadThumbServer ¶
type FileBasic_DownloadThumbServer interface { Send(*httpbody.HttpBody) error grpc.ServerStream }
type FileBasic_UploadFileClient ¶
type FileBasic_UploadFileClient interface { Send(*FileUploadReq) error CloseAndRecv() (*FileInfo, error) grpc.ClientStream }
type FileBasic_UploadFileServer ¶
type FileBasic_UploadFileServer interface { SendAndClose(*FileInfo) error Recv() (*FileUploadReq, error) grpc.ServerStream }
type FileDownloadResp ¶
type FileDownloadResp struct { // 文件内容 Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // 文件名称 FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 内容类型 ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // 文件后缀 FileExt string `protobuf:"bytes,4,opt,name=file_ext,json=fileExt,proto3" json:"file_ext,omitempty"` // 文件格式类型 FileType FileType `protobuf:"varint,5,opt,name=file_type,json=fileType,proto3,enum=jmash.protobuf.FileType" json:"file_type,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,6,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件部分 FilePart int32 `protobuf:"varint,7,opt,name=file_part,json=filePart,proto3" json:"file_part,omitempty"` // 图片/视频宽度 FileWidth int32 `protobuf:"varint,8,opt,name=file_width,json=fileWidth,proto3" json:"file_width,omitempty"` // 图片/视频高度 FileHeight int32 `protobuf:"varint,9,opt,name=file_height,json=fileHeight,proto3" json:"file_height,omitempty"` // contains filtered or unexported fields }
func (*FileDownloadResp) Descriptor
deprecated
func (*FileDownloadResp) Descriptor() ([]byte, []int)
Deprecated: Use FileDownloadResp.ProtoReflect.Descriptor instead.
func (*FileDownloadResp) GetBody ¶
func (x *FileDownloadResp) GetBody() []byte
func (*FileDownloadResp) GetContentType ¶
func (x *FileDownloadResp) GetContentType() string
func (*FileDownloadResp) GetFileExt ¶
func (x *FileDownloadResp) GetFileExt() string
func (*FileDownloadResp) GetFileHeight ¶
func (x *FileDownloadResp) GetFileHeight() int32
func (*FileDownloadResp) GetFileName ¶
func (x *FileDownloadResp) GetFileName() string
func (*FileDownloadResp) GetFilePart ¶
func (x *FileDownloadResp) GetFilePart() int32
func (*FileDownloadResp) GetFileSize ¶
func (x *FileDownloadResp) GetFileSize() int64
func (*FileDownloadResp) GetFileType ¶
func (x *FileDownloadResp) GetFileType() FileType
func (*FileDownloadResp) GetFileWidth ¶
func (x *FileDownloadResp) GetFileWidth() int32
func (*FileDownloadResp) ProtoMessage ¶
func (*FileDownloadResp) ProtoMessage()
func (*FileDownloadResp) ProtoReflect ¶
func (x *FileDownloadResp) ProtoReflect() protoreflect.Message
func (*FileDownloadResp) Reset ¶
func (x *FileDownloadResp) Reset()
func (*FileDownloadResp) String ¶
func (x *FileDownloadResp) String() string
type FileHash ¶
type FileHash struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // File SM3信息摘要 HashSm3 []byte `protobuf:"bytes,2,opt,name=hash_sm3,json=hashSm3,proto3" json:"hash_sm3,omitempty"` // File sha256 HashSha256 []byte `protobuf:"bytes,3,opt,name=hash_sha256,json=hashSha256,proto3" json:"hash_sha256,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,4,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // contains filtered or unexported fields }
func (*FileHash) Descriptor
deprecated
func (*FileHash) GetFileSize ¶
func (*FileHash) GetHashSha256 ¶
func (*FileHash) GetHashSm3 ¶
func (*FileHash) ProtoMessage ¶
func (*FileHash) ProtoMessage()
func (*FileHash) ProtoReflect ¶
func (x *FileHash) ProtoReflect() protoreflect.Message
type FileHashHex ¶
type FileHashHex struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // File SM3信息摘要 HashSm3 string `protobuf:"bytes,2,opt,name=hash_sm3,json=hashSm3,proto3" json:"hash_sm3,omitempty"` // File sha256 HashSha256 string `protobuf:"bytes,3,opt,name=hash_sha256,json=hashSha256,proto3" json:"hash_sha256,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,4,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // contains filtered or unexported fields }
func (*FileHashHex) Descriptor
deprecated
func (*FileHashHex) Descriptor() ([]byte, []int)
Deprecated: Use FileHashHex.ProtoReflect.Descriptor instead.
func (*FileHashHex) GetFileSize ¶
func (x *FileHashHex) GetFileSize() int64
func (*FileHashHex) GetHashSha256 ¶
func (x *FileHashHex) GetHashSha256() string
func (*FileHashHex) GetHashSm3 ¶
func (x *FileHashHex) GetHashSm3() string
func (*FileHashHex) GetTenant ¶
func (x *FileHashHex) GetTenant() string
func (*FileHashHex) ProtoMessage ¶
func (*FileHashHex) ProtoMessage()
func (*FileHashHex) ProtoReflect ¶
func (x *FileHashHex) ProtoReflect() protoreflect.Message
func (*FileHashHex) Reset ¶
func (x *FileHashHex) Reset()
func (*FileHashHex) String ¶
func (x *FileHashHex) String() string
type FileInfo ¶
type FileInfo struct { // 文件ID FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` // 文件存放路径 FileSrc string `protobuf:"bytes,2,opt,name=file_src,json=fileSrc,proto3" json:"file_src,omitempty"` // 文件名称 FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 内容类型 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // 文件后缀 FileExt string `protobuf:"bytes,5,opt,name=file_ext,json=fileExt,proto3" json:"file_ext,omitempty"` // 文件格式类型 FileType FileType `protobuf:"varint,6,opt,name=file_type,json=fileType,proto3,enum=jmash.protobuf.FileType" json:"file_type,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,7,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // File SM3信息摘要 HashSm3 []byte `protobuf:"bytes,8,opt,name=hash_sm3,json=hashSm3,proto3" json:"hash_sm3,omitempty"` // File sha256 HashSha256 []byte `protobuf:"bytes,9,opt,name=hash_sha256,json=hashSha256,proto3" json:"hash_sha256,omitempty"` // 图片/视频宽度 FileWidth int32 `protobuf:"varint,10,opt,name=file_width,json=fileWidth,proto3" json:"file_width,omitempty"` // 图片/视频高度 FileHeight int32 `protobuf:"varint,11,opt,name=file_height,json=fileHeight,proto3" json:"file_height,omitempty"` // 视频/音频时长 FileTime int64 `protobuf:"varint,12,opt,name=file_time,json=fileTime,proto3" json:"file_time,omitempty"` // 地理位置 FileLocation string `protobuf:"bytes,13,opt,name=file_location,json=fileLocation,proto3" json:"file_location,omitempty"` // 文件拍摄位置 Position *Geolocation `protobuf:"bytes,14,opt,name=position,proto3" json:"position,omitempty"` // 创建时间 CreateDate *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` // contains filtered or unexported fields }
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetContentType ¶
func (*FileInfo) GetCreateDate ¶
func (x *FileInfo) GetCreateDate() *timestamppb.Timestamp
func (*FileInfo) GetFileExt ¶
func (*FileInfo) GetFileHeight ¶
func (*FileInfo) GetFileLocation ¶
func (*FileInfo) GetFileName ¶
func (*FileInfo) GetFileSize ¶
func (*FileInfo) GetFileSrc ¶
func (*FileInfo) GetFileTime ¶
func (*FileInfo) GetFileType ¶
func (*FileInfo) GetFileWidth ¶
func (*FileInfo) GetHashSha256 ¶
func (*FileInfo) GetHashSm3 ¶
func (*FileInfo) GetPosition ¶
func (x *FileInfo) GetPosition() *Geolocation
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type FileType ¶
type FileType int32
文件类型
func (FileType) Descriptor ¶
func (FileType) Descriptor() protoreflect.EnumDescriptor
func (FileType) EnumDescriptor
deprecated
func (FileType) Number ¶
func (x FileType) Number() protoreflect.EnumNumber
func (FileType) Type ¶
func (FileType) Type() protoreflect.EnumType
type FileUploadReq ¶
type FileUploadReq struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // 文件内容 Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 文件名称 FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 内容类型 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,5,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 相对路径 FileDir string `protobuf:"bytes,6,opt,name=file_dir,json=fileDir,proto3" json:"file_dir,omitempty"` // contains filtered or unexported fields }
文件上传
func (*FileUploadReq) Descriptor
deprecated
func (*FileUploadReq) Descriptor() ([]byte, []int)
Deprecated: Use FileUploadReq.ProtoReflect.Descriptor instead.
func (*FileUploadReq) GetBody ¶
func (x *FileUploadReq) GetBody() []byte
func (*FileUploadReq) GetContentType ¶
func (x *FileUploadReq) GetContentType() string
func (*FileUploadReq) GetFileDir ¶
func (x *FileUploadReq) GetFileDir() string
func (*FileUploadReq) GetFileName ¶
func (x *FileUploadReq) GetFileName() string
func (*FileUploadReq) GetFileSize ¶
func (x *FileUploadReq) GetFileSize() int64
func (*FileUploadReq) GetTenant ¶
func (x *FileUploadReq) GetTenant() string
func (*FileUploadReq) ProtoMessage ¶
func (*FileUploadReq) ProtoMessage()
func (*FileUploadReq) ProtoReflect ¶
func (x *FileUploadReq) ProtoReflect() protoreflect.Message
func (*FileUploadReq) Reset ¶
func (x *FileUploadReq) Reset()
func (*FileUploadReq) String ¶
func (x *FileUploadReq) String() string
type FileWebUploadReq ¶
type FileWebUploadReq struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // 文件内容 Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 文件名称 FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 内容类型 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // 文件大小 FileSize int64 `protobuf:"varint,5,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 保存路径 FileDir string `protobuf:"bytes,6,opt,name=file_dir,json=fileDir,proto3" json:"file_dir,omitempty"` // 文件唯一ID RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 文件部分 FilePart int32 `protobuf:"varint,8,opt,name=file_part,json=filePart,proto3" json:"file_part,omitempty"` // contains filtered or unexported fields }
func (*FileWebUploadReq) Descriptor
deprecated
func (*FileWebUploadReq) Descriptor() ([]byte, []int)
Deprecated: Use FileWebUploadReq.ProtoReflect.Descriptor instead.
func (*FileWebUploadReq) GetBody ¶
func (x *FileWebUploadReq) GetBody() []byte
func (*FileWebUploadReq) GetContentType ¶
func (x *FileWebUploadReq) GetContentType() string
func (*FileWebUploadReq) GetFileDir ¶
func (x *FileWebUploadReq) GetFileDir() string
func (*FileWebUploadReq) GetFileName ¶
func (x *FileWebUploadReq) GetFileName() string
func (*FileWebUploadReq) GetFilePart ¶
func (x *FileWebUploadReq) GetFilePart() int32
func (*FileWebUploadReq) GetFileSize ¶
func (x *FileWebUploadReq) GetFileSize() int64
func (*FileWebUploadReq) GetRequestId ¶
func (x *FileWebUploadReq) GetRequestId() string
func (*FileWebUploadReq) GetTenant ¶
func (x *FileWebUploadReq) GetTenant() string
func (*FileWebUploadReq) ProtoMessage ¶
func (*FileWebUploadReq) ProtoMessage()
func (*FileWebUploadReq) ProtoReflect ¶
func (x *FileWebUploadReq) ProtoReflect() protoreflect.Message
func (*FileWebUploadReq) Reset ¶
func (x *FileWebUploadReq) Reset()
func (*FileWebUploadReq) String ¶
func (x *FileWebUploadReq) String() string
type Gender ¶
type Gender int32
性别
func (Gender) Descriptor ¶
func (Gender) Descriptor() protoreflect.EnumDescriptor
func (Gender) EnumDescriptor
deprecated
func (Gender) Number ¶
func (x Gender) Number() protoreflect.EnumNumber
func (Gender) Type ¶
func (Gender) Type() protoreflect.EnumType
type Geolocation ¶
type Geolocation struct { // The latitude in degrees. It must be in the range [-90.0, +90.0]. Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` // The longitude in degrees. It must be in the range [-180.0, +180.0]. Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` // 精度 Accuracy int32 `protobuf:"varint,3,opt,name=accuracy,proto3" json:"accuracy,omitempty"` // 海拔高度 Altitude float64 `protobuf:"fixed64,4,opt,name=altitude,proto3" json:"altitude,omitempty"` // 海拔高度精度 AltitudeAccracy int32 `protobuf:"varint,5,opt,name=altitude_accracy,json=altitudeAccracy,proto3" json:"altitude_accracy,omitempty"` // contains filtered or unexported fields }
地理信息位置
func (*Geolocation) Descriptor
deprecated
func (*Geolocation) Descriptor() ([]byte, []int)
Deprecated: Use Geolocation.ProtoReflect.Descriptor instead.
func (*Geolocation) GetAccuracy ¶
func (x *Geolocation) GetAccuracy() int32
func (*Geolocation) GetAltitude ¶
func (x *Geolocation) GetAltitude() float64
func (*Geolocation) GetAltitudeAccracy ¶
func (x *Geolocation) GetAltitudeAccracy() int32
func (*Geolocation) GetLatitude ¶
func (x *Geolocation) GetLatitude() float64
func (*Geolocation) GetLongitude ¶
func (x *Geolocation) GetLongitude() float64
func (*Geolocation) ProtoMessage ¶
func (*Geolocation) ProtoMessage()
func (*Geolocation) ProtoReflect ¶
func (x *Geolocation) ProtoReflect() protoreflect.Message
func (*Geolocation) Reset ¶
func (x *Geolocation) Reset()
func (*Geolocation) String ¶
func (x *Geolocation) String() string
type TableHead ¶
type TableHead struct { // 表头名称 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // 属性 Prop string `protobuf:"bytes,2,opt,name=prop,proto3" json:"prop,omitempty"` // 是否序号 Serial bool `protobuf:"varint,3,opt,name=serial,proto3" json:"serial,omitempty"` // contains filtered or unexported fields }
表头
func (*TableHead) Descriptor
deprecated
func (*TableHead) ProtoMessage ¶
func (*TableHead) ProtoMessage()
func (*TableHead) ProtoReflect ¶
func (x *TableHead) ProtoReflect() protoreflect.Message
type TenantReq ¶
type TenantReq struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
租户
func (*TenantReq) Descriptor
deprecated
func (*TenantReq) ProtoMessage ¶
func (*TenantReq) ProtoMessage()
func (*TenantReq) ProtoReflect ¶
func (x *TenantReq) ProtoReflect() protoreflect.Message
type ThumbDownloadReq ¶
type ThumbDownloadReq struct { // 租户. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // 文件下载 FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` // 缩略图类型 ThumbType ThumbType `protobuf:"varint,3,opt,name=thumb_type,json=thumbType,proto3,enum=jmash.protobuf.ThumbType" json:"thumb_type,omitempty"` // 图片宽度 Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` // 图片高度 Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
缩略图下载请求
func (*ThumbDownloadReq) Descriptor
deprecated
func (*ThumbDownloadReq) Descriptor() ([]byte, []int)
Deprecated: Use ThumbDownloadReq.ProtoReflect.Descriptor instead.
func (*ThumbDownloadReq) GetFileId ¶
func (x *ThumbDownloadReq) GetFileId() string
func (*ThumbDownloadReq) GetHeight ¶
func (x *ThumbDownloadReq) GetHeight() int32
func (*ThumbDownloadReq) GetTenant ¶
func (x *ThumbDownloadReq) GetTenant() string
func (*ThumbDownloadReq) GetThumbType ¶
func (x *ThumbDownloadReq) GetThumbType() ThumbType
func (*ThumbDownloadReq) GetWidth ¶
func (x *ThumbDownloadReq) GetWidth() int32
func (*ThumbDownloadReq) ProtoMessage ¶
func (*ThumbDownloadReq) ProtoMessage()
func (*ThumbDownloadReq) ProtoReflect ¶
func (x *ThumbDownloadReq) ProtoReflect() protoreflect.Message
func (*ThumbDownloadReq) Reset ¶
func (x *ThumbDownloadReq) Reset()
func (*ThumbDownloadReq) String ¶
func (x *ThumbDownloadReq) String() string
type ThumbSrcDownloadReq ¶
type ThumbSrcDownloadReq struct { // 文件Src FileSrc string `protobuf:"bytes,1,opt,name=file_src,json=fileSrc,proto3" json:"file_src,omitempty"` // 缩略图类型 ThumbType ThumbType `protobuf:"varint,2,opt,name=thumb_type,json=thumbType,proto3,enum=jmash.protobuf.ThumbType" json:"thumb_type,omitempty"` // 图片宽度 Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` // 图片高度 Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
缩略图下载请求
func (*ThumbSrcDownloadReq) Descriptor
deprecated
func (*ThumbSrcDownloadReq) Descriptor() ([]byte, []int)
Deprecated: Use ThumbSrcDownloadReq.ProtoReflect.Descriptor instead.
func (*ThumbSrcDownloadReq) GetFileSrc ¶
func (x *ThumbSrcDownloadReq) GetFileSrc() string
func (*ThumbSrcDownloadReq) GetHeight ¶
func (x *ThumbSrcDownloadReq) GetHeight() int32
func (*ThumbSrcDownloadReq) GetThumbType ¶
func (x *ThumbSrcDownloadReq) GetThumbType() ThumbType
func (*ThumbSrcDownloadReq) GetWidth ¶
func (x *ThumbSrcDownloadReq) GetWidth() int32
func (*ThumbSrcDownloadReq) ProtoMessage ¶
func (*ThumbSrcDownloadReq) ProtoMessage()
func (*ThumbSrcDownloadReq) ProtoReflect ¶
func (x *ThumbSrcDownloadReq) ProtoReflect() protoreflect.Message
func (*ThumbSrcDownloadReq) Reset ¶
func (x *ThumbSrcDownloadReq) Reset()
func (*ThumbSrcDownloadReq) String ¶
func (x *ThumbSrcDownloadReq) String() string
type ThumbType ¶
type ThumbType int32
图片缩放类型
func (ThumbType) Descriptor ¶
func (ThumbType) Descriptor() protoreflect.EnumDescriptor
func (ThumbType) EnumDescriptor
deprecated
func (ThumbType) Number ¶
func (x ThumbType) Number() protoreflect.EnumNumber
func (ThumbType) Type ¶
func (ThumbType) Type() protoreflect.EnumType
type TreeList ¶
type TreeList struct { Results []*TreeModel `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
Tree List.
func (*TreeList) Descriptor
deprecated
func (*TreeList) GetResults ¶
func (*TreeList) ProtoMessage ¶
func (*TreeList) ProtoMessage()
func (*TreeList) ProtoReflect ¶
func (x *TreeList) ProtoReflect() protoreflect.Message
type TreeModel ¶
type TreeModel struct { // Key Value Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // Parent Value ParentId string `protobuf:"bytes,3,opt,name=parentId,proto3" json:"parentId,omitempty"` // child Model Children []*TreeModel `protobuf:"bytes,4,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
TreeModel
func (*TreeModel) Descriptor
deprecated
func (*TreeModel) GetChildren ¶
func (*TreeModel) GetParentId ¶
func (*TreeModel) ProtoMessage ¶
func (*TreeModel) ProtoMessage()
func (*TreeModel) ProtoReflect ¶
func (x *TreeModel) ProtoReflect() protoreflect.Message
type UUIDValue ¶
type UUIDValue struct { MostSigBits int64 `protobuf:"varint,1,opt,name=most_sig_bits,json=mostSigBits,proto3" json:"most_sig_bits,omitempty"` LeastSigBits int64 `protobuf:"varint,2,opt,name=least_sig_bits,json=leastSigBits,proto3" json:"least_sig_bits,omitempty"` // contains filtered or unexported fields }
func (*UUIDValue) Descriptor
deprecated
func (*UUIDValue) GetLeastSigBits ¶
func (*UUIDValue) GetMostSigBits ¶
func (*UUIDValue) ProtoMessage ¶
func (*UUIDValue) ProtoMessage()
func (*UUIDValue) ProtoReflect ¶
func (x *UUIDValue) ProtoReflect() protoreflect.Message
type UnimplementedFileBasicServer ¶
type UnimplementedFileBasicServer struct { }
UnimplementedFileBasicServer must be embedded to have forward compatible implementations.
func (UnimplementedFileBasicServer) DownloadFile ¶
func (UnimplementedFileBasicServer) DownloadFile(*DownloadReq, FileBasic_DownloadFileServer) error
func (UnimplementedFileBasicServer) DownloadFileBySrc ¶
func (UnimplementedFileBasicServer) DownloadFileBySrc(*DownloadSrcReq, FileBasic_DownloadFileBySrcServer) error
func (UnimplementedFileBasicServer) DownloadThumb ¶
func (UnimplementedFileBasicServer) DownloadThumb(*ThumbDownloadReq, FileBasic_DownloadThumbServer) error
func (UnimplementedFileBasicServer) DownloadThumbBySrc ¶
func (UnimplementedFileBasicServer) DownloadThumbBySrc(*ThumbSrcDownloadReq, FileBasic_DownloadThumbBySrcServer) error
func (UnimplementedFileBasicServer) ExistFileHex ¶
func (UnimplementedFileBasicServer) ExistFileHex(context.Context, *FileHashHex) (*FileInfo, error)
func (UnimplementedFileBasicServer) UploadBase64File ¶
func (UnimplementedFileBasicServer) UploadBase64File(context.Context, *FileBase64Req) (*FileInfo, error)
func (UnimplementedFileBasicServer) UploadFile ¶
func (UnimplementedFileBasicServer) UploadFile(FileBasic_UploadFileServer) error
func (UnimplementedFileBasicServer) UploadFileWeb ¶
func (UnimplementedFileBasicServer) UploadFileWeb(context.Context, *FileWebUploadReq) (*FileInfo, error)
func (UnimplementedFileBasicServer) Version ¶
func (UnimplementedFileBasicServer) Version(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error)
type UnsafeFileBasicServer ¶
type UnsafeFileBasicServer interface {
// contains filtered or unexported methods
}
UnsafeFileBasicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileBasicServer will result in compilation errors.