|
@@ -37,8 +37,8 @@ type FileRequest struct {
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Message []*Request `protobuf:"bytes,1,rep,name=message,proto3" json:"message,omitempty"` //文件名称
|
|
|
- Other string `protobuf:"bytes,2,opt,name=Other,proto3" json:"Other,omitempty"`
|
|
|
- Topic string `protobuf:"bytes,3,opt,name=Topic,proto3" json:"Topic,omitempty"`
|
|
|
+ Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` //信息id
|
|
|
+ Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (x *FileRequest) Reset() {
|
|
@@ -104,7 +104,7 @@ type Request struct {
|
|
|
FileBytes []byte `protobuf:"bytes,3,opt,name=fileBytes,proto3" json:"fileBytes,omitempty"` //文件字节流
|
|
|
FileType string `protobuf:"bytes,4,opt,name=fileType,proto3" json:"fileType,omitempty"` //文件类型 pdf ,xls ,doc
|
|
|
ReturnType int32 `protobuf:"varint,5,opt,name=returnType,proto3" json:"returnType,omitempty"` //文件类型 {0:url,1:content,2:url+content} 默认0
|
|
|
- ExtractType int32 `protobuf:"varint,6,opt,name=extractType,proto3" json:"extractType,omitempty"` //解析文件类型{0:url,1:fileBytes,2:oss} 默认2
|
|
|
+ ExtractType int32 `protobuf:"varint,6,opt,name=extractType,proto3" json:"extractType,omitempty"` //解析文件类型{2:oss,1:fileBytes,2:url} 默认2
|
|
|
}
|
|
|
|
|
|
func (x *Request) Reset() {
|
|
@@ -187,7 +187,7 @@ type FileResponse struct {
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Result []*Result `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` //返回结果
|
|
|
- Other string `protobuf:"bytes,2,opt,name=Other,proto3" json:"Other,omitempty"`
|
|
|
+ Other string `protobuf:"bytes,2,opt,name=other,proto3" json:"other,omitempty"` //信息id
|
|
|
}
|
|
|
|
|
|
func (x *FileResponse) Reset() {
|
|
@@ -245,7 +245,7 @@ type Result struct {
|
|
|
TextContent string `protobuf:"bytes,2,opt,name=textContent,proto3" json:"textContent,omitempty"` //文本内容
|
|
|
TextUrl string `protobuf:"bytes,3,opt,name=textUrl,proto3" json:"textUrl,omitempty"` //文本URL
|
|
|
FilePath string `protobuf:"bytes,4,opt,name=filePath,proto3" json:"filePath,omitempty"` //文件路径
|
|
|
- ErrorState string `protobuf:"bytes,5,opt,name=errorState,proto3" json:"errorState,omitempty"` //状态{200:解析成功,300:下载失败,400:解析失败}
|
|
|
+ ErrorState string `protobuf:"bytes,5,opt,name=errorState,proto3" json:"errorState,omitempty"` //错误状态{0:文件下载失败,1:文件解析失败}
|
|
|
}
|
|
|
|
|
|
func (x *Result) Reset() {
|
|
@@ -323,9 +323,9 @@ var file_fileText_proto_rawDesc = []byte{
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
- 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18,
|
|
|
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0xbb, 0x01, 0x0a,
|
|
|
+ 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18,
|
|
|
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0xbb, 0x01, 0x0a,
|
|
|
0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65,
|
|
|
0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
|
|
|
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x6c, 0x18,
|
|
@@ -341,8 +341,8 @@ var file_fileText_proto_rawDesc = []byte{
|
|
|
0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65,
|
|
|
0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c,
|
|
|
- 0x74, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
- 0x52, 0x05, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x9c, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75,
|
|
|
+ 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x22, 0x9c, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75,
|
|
|
0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20,
|
|
|
0x0a, 0x0b, 0x74, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
|