basic

package
v0.0.0-...-469a15f Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 4

Documentation

Overview

Package basic is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
var File_jmash_basic_file_basic_rpc_proto protoreflect.FileDescriptor
View Source
var File_jmash_protobuf_basic_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Chart.ProtoReflect.Descriptor instead.

func (*Chart) GetSeries

func (x *Chart) GetSeries() []*ChartSeries

func (*Chart) GetXAxisData

func (x *Chart) GetXAxisData() []string

func (*Chart) ProtoMessage

func (*Chart) ProtoMessage()

func (*Chart) ProtoReflect

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

func (*Chart) Reset

func (x *Chart) Reset()

func (*Chart) String

func (x *Chart) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetKey

func (x *Entry) GetKey() string

func (*Entry) GetValue

func (x *Entry) GetValue() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EntryList.ProtoReflect.Descriptor instead.

func (*EntryList) GetValues

func (x *EntryList) GetValues() []*Entry

func (*EntryList) ProtoMessage

func (*EntryList) ProtoMessage()

func (*EntryList) ProtoReflect

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

func (*EntryList) Reset

func (x *EntryList) Reset()

func (*EntryList) String

func (x *EntryList) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EntryMap.ProtoReflect.Descriptor instead.

func (*EntryMap) GetValues

func (x *EntryMap) GetValues() map[string]string

func (*EntryMap) ProtoMessage

func (*EntryMap) ProtoMessage()

func (*EntryMap) ProtoReflect

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

func (*EntryMap) Reset

func (x *EntryMap) Reset()

func (*EntryMap) String

func (x *EntryMap) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FileHash.ProtoReflect.Descriptor instead.

func (*FileHash) GetFileSize

func (x *FileHash) GetFileSize() int64

func (*FileHash) GetHashSha256

func (x *FileHash) GetHashSha256() []byte

func (*FileHash) GetHashSm3

func (x *FileHash) GetHashSm3() []byte

func (*FileHash) GetTenant

func (x *FileHash) GetTenant() string

func (*FileHash) ProtoMessage

func (*FileHash) ProtoMessage()

func (*FileHash) ProtoReflect

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

func (*FileHash) Reset

func (x *FileHash) Reset()

func (*FileHash) String

func (x *FileHash) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetContentType

func (x *FileInfo) GetContentType() string

func (*FileInfo) GetCreateDate

func (x *FileInfo) GetCreateDate() *timestamppb.Timestamp

func (*FileInfo) GetFileExt

func (x *FileInfo) GetFileExt() string

func (*FileInfo) GetFileHeight

func (x *FileInfo) GetFileHeight() int32

func (*FileInfo) GetFileId

func (x *FileInfo) GetFileId() string

func (*FileInfo) GetFileLocation

func (x *FileInfo) GetFileLocation() string

func (*FileInfo) GetFileName

func (x *FileInfo) GetFileName() string

func (*FileInfo) GetFileSize

func (x *FileInfo) GetFileSize() int64

func (*FileInfo) GetFileSrc

func (x *FileInfo) GetFileSrc() string

func (*FileInfo) GetFileTime

func (x *FileInfo) GetFileTime() int64

func (*FileInfo) GetFileType

func (x *FileInfo) GetFileType() FileType

func (*FileInfo) GetFileWidth

func (x *FileInfo) GetFileWidth() int32

func (*FileInfo) GetHashSha256

func (x *FileInfo) GetHashSha256() []byte

func (*FileInfo) GetHashSm3

func (x *FileInfo) GetHashSm3() []byte

func (*FileInfo) GetPosition

func (x *FileInfo) GetPosition() *Geolocation

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

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

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type FileType

type FileType int32

文件类型

const (
	// 文档
	FileType_text FileType = 0
	// 视频
	FileType_video FileType = 1
	// 图片
	FileType_image FileType = 2
	// 音频
	FileType_audio FileType = 3
	// 压缩文件
	FileType_zip FileType = 4
	// 其他文件
	FileType_file FileType = 5
)

func (FileType) Descriptor

func (FileType) Descriptor() protoreflect.EnumDescriptor

func (FileType) Enum

func (x FileType) Enum() *FileType

func (FileType) EnumDescriptor deprecated

func (FileType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileType.Descriptor instead.

func (FileType) Number

func (x FileType) Number() protoreflect.EnumNumber

func (FileType) String

func (x FileType) String() string

func (FileType) Type

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

性别

const (
	// 未知的性别
	Gender_unknown Gender = 0
	// 男性
	Gender_male Gender = 1
	// 女性
	Gender_female Gender = 2
	// 未说明的性别
	Gender_undeclared Gender = 9
)

func (Gender) Descriptor

func (Gender) Descriptor() protoreflect.EnumDescriptor

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor deprecated

func (Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use Gender.Descriptor instead.

func (Gender) Number

func (x Gender) Number() protoreflect.EnumNumber

func (Gender) String

func (x Gender) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TableHead.ProtoReflect.Descriptor instead.

func (*TableHead) GetLabel

func (x *TableHead) GetLabel() string

func (*TableHead) GetProp

func (x *TableHead) GetProp() string

func (*TableHead) GetSerial

func (x *TableHead) GetSerial() bool

func (*TableHead) ProtoMessage

func (*TableHead) ProtoMessage()

func (*TableHead) ProtoReflect

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

func (*TableHead) Reset

func (x *TableHead) Reset()

func (*TableHead) String

func (x *TableHead) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TenantReq.ProtoReflect.Descriptor instead.

func (*TenantReq) GetTenant

func (x *TenantReq) GetTenant() string

func (*TenantReq) ProtoMessage

func (*TenantReq) ProtoMessage()

func (*TenantReq) ProtoReflect

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

func (*TenantReq) Reset

func (x *TenantReq) Reset()

func (*TenantReq) String

func (x *TenantReq) String() string

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

图片缩放类型

const (
	// 等比例缩放
	ThumbType_resize ThumbType = 0
	// 补白
	ThumbType_white ThumbType = 1
	// 补透明
	ThumbType_trans ThumbType = 2
	// 裁剪
	ThumbType_clip ThumbType = 3
)

func (ThumbType) Descriptor

func (ThumbType) Descriptor() protoreflect.EnumDescriptor

func (ThumbType) Enum

func (x ThumbType) Enum() *ThumbType

func (ThumbType) EnumDescriptor deprecated

func (ThumbType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ThumbType.Descriptor instead.

func (ThumbType) Number

func (x ThumbType) Number() protoreflect.EnumNumber

func (ThumbType) String

func (x ThumbType) String() string

func (ThumbType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use UUIDValue.ProtoReflect.Descriptor instead.

func (*UUIDValue) GetLeastSigBits

func (x *UUIDValue) GetLeastSigBits() int64

func (*UUIDValue) GetMostSigBits

func (x *UUIDValue) GetMostSigBits() int64

func (*UUIDValue) ProtoMessage

func (*UUIDValue) ProtoMessage()

func (*UUIDValue) ProtoReflect

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

func (*UUIDValue) Reset

func (x *UUIDValue) Reset()

func (*UUIDValue) String

func (x *UUIDValue) String() string

type UnimplementedFileBasicServer

type UnimplementedFileBasicServer struct {
}

UnimplementedFileBasicServer must be embedded to have forward compatible implementations.

func (UnimplementedFileBasicServer) DownloadFile

func (UnimplementedFileBasicServer) DownloadFileBySrc

func (UnimplementedFileBasicServer) DownloadThumb

func (UnimplementedFileBasicServer) DownloadThumbBySrc

func (UnimplementedFileBasicServer) ExistFile

func (UnimplementedFileBasicServer) ExistFileHex

func (UnimplementedFileBasicServer) UploadBase64File

func (UnimplementedFileBasicServer) UploadFile

func (UnimplementedFileBasicServer) UploadFileWeb

func (UnimplementedFileBasicServer) Version

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.

Jump to

Keyboard shortcuts

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