@description 通过城市名称获取经纬度请求
| Field | Type | Label | Description |
| address | string | 地址信息 |
| Field | Validations |
| address |
|
| Field | Type | Label | Description |
| country | string | 国家 |
|
| province | string | 省份 |
|
| city | string | 城市 |
@description AI问答请求
| Field | Type | Label | Description |
| content | string | 询问内容 |
| Field | Validations |
| content |
|
@description AI问答响应
| Field | Type | Label | Description |
| result | string | 回答内容 |
@description 图形验证码响应
| Field | Type | Label | Description |
| code | int32 | 状态码 |
|
| msg | string | 状态消息 |
|
| uuid | string | 唯一标识 |
|
| img | string | 图片,base64编码 |
@description 自定义扫码识别请求
| Field | Type | Label | Description |
| file | bytes | 要识别的文件 |
|
| fieldName | string | 字段名称, 如果有多个,用逗号隔开 |
|
| fieldDesc | string | 字段描述, 如果有多个,用逗号隔开, 和字段名称需要一一对应 |
| Field | Validations |
| file |
|
| fieldName |
|
| fieldDesc |
|
@description 自定义扫码识别响应
| Field | Type | Label | Description |
| scanObj | string | 识别后,返回包含指定字段的对象字符串,json字符串格式 |
|
| scanText | string | 识别后的所有文本信息 |
|
| scanTextList | string | repeated | 识别后的文本列表信息 |
@description 文本语种检测请求
| Field | Type | Label | Description |
| text | string | 待识别的文字 |
| Field | Validations |
| text |
|
@description 文本语种检测响应
| Field | Type | Label | Description |
| languageCode | string | 识别到的语言 |
@description 邮件发送请求
| Field | Type | Label | Description |
| string | 邮箱 |
||
| source | int32 | 邮件来源(1:注册,2:登录,3:忘记密码,4:修改密码, 5:企业认证) |
|
| header | Header | 请求头 |
| Field | Validations |
|
|
| source |
|
@description 空请求
@description 文件上传请求
| Field | Type | Label | Description |
| fileName | string | 文件名 |
|
| fileData | bytes | 文件数据(直接图片的二进制数据) |
| Field | Validations |
| fileName |
|
| fileData |
|
@description 文件上传响应
| Field | Type | Label | Description |
| code | int32 | 状态码 |
|
| msg | string | 状态信息 |
|
| data | UrlInfo | 下载地址 |
@description 识别到的单个文字信息
| Field | Type | Label | Description |
| text | string | 识别到的文字 |
|
| location | TextLocation | repeated | 识别到的文字位置 |
@description 手写文字识别请求
| Field | Type | Label | Description |
| x | int32 | repeated | x坐标 |
| y | int32 | repeated | y坐标 |
| Field | Validations |
| x |
|
| y |
|
@description 手写文字识别响应
| Field | Type | Label | Description |
| texts | string | repeated | 识别到的文字 |
@description 请求头
| Field | Type | Label | Description |
| appToken | string | 应用token |
|
| appIp | string | 应用ip地址 |
|
| appType | string | 应用标识 assist, probe, namepower, brandpower, domain, ww等等 |
|
| appVersion | string | 应用版本 |
|
| sysType | string | 系统版本 1=android;2=iOS |
|
| languageCode | string | 语种 |
|
| userMark | string | 应用设备唯一标识 |
| Field | Validations |
| appIp |
|
| appType |
|
| appVersion |
|
| sysType |
|
| languageCode |
|
| userMark |
|
@description 图片物体检测请求
| Field | Type | Label | Description |
| image | bytes | 图片,图片的直接二进制数据 |
|
| languageCode | string | 语言 |
|
| fileName | string | 图片名 |
| Field | Validations |
| image |
|
| languageCode |
|
| fileName |
|
@description 图片物体检测响应
| Field | Type | Label | Description |
| localizedObjectAnnoList | LocalizedObjectAnno | repeated | 识别到的物体 |
@description 图片文字识别请求
| Field | Type | Label | Description |
| image | bytes | 图片,图片的直接二进制数据 |
|
| fileName | string | 图片名 |
| Field | Validations |
| image |
|
| fileName |
|
@description 图片文字识别响应
| Field | Type | Label | Description |
| words | GoogleWord | repeated | 识别到的文字信息 |
@description 图片物体边界框
| Field | Type | Label | Description |
| normalizedVertices | Vertice | repeated | 顶点 |
@description 图片物体识别信息
| Field | Type | Label | Description |
| zhName | string | 识别到的物体中文名称 |
|
| localName | string | 识别到的物体系统名称 |
|
| boundingPoly | LocalBoundingPoly | 识别到的物体位置 |
@description 经纬度响应
| Field | Type | Label | Description |
| latitude | double | 纬度 |
|
| longitude | double | 经度 |
| Field | Validations |
| latitude |
|
| longitude |
|
@description 短信发送请求,只针对于国内手机号
| Field | Type | Label | Description |
| userPhone | string | 手机号 |
|
| source | int32 | 短信来源(1:注册,2:登录,3:忘记密码,4:修改密码, 5:企业认证) |
| Field | Validations |
| userPhone |
|
| source |
|
@description 语音转文字请求
| Field | Type | Label | Description |
| audio | bytes | 语音数据,语音的直接二进制数据 |
|
| languageCode | string | 语音语言 |
|
| fileName | string | 语音名 |
| Field | Validations |
| audio |
|
| languageCode |
|
| fileName |
|
@description 语音转文字响应
| Field | Type | Label | Description |
| text | string | 识别到的文字 |
@description 成功响应
| Field | Type | Label | Description |
| code | int32 | 状态码 |
|
| msg | string | 状态信息 |
@description 文本位置坐标属性
| Field | Type | Label | Description |
| x | float | x坐标 |
|
| y | float | y坐标 |
@description 文字转语音请求
| Field | Type | Label | Description |
| text | string | 待识别的文字 |
|
| languageCode | string | 语音语言 |
| Field | Validations |
| text |
|
| languageCode |
|
@description 文字转语音响应
| Field | Type | Label | Description |
| audioData | string | 语音数据,语音的直接二进制数据 |
@description 翻译请求
| Field | Type | Label | Description |
| text | string | repeated | 待翻译的文字 |
| languageCode | string | 目标语言 |
| Field | Validations |
| text |
|
| languageCode |
|
@description 翻译响应
| Field | Type | Label | Description |
| texts | string | repeated | 翻译后的文字 |
@description 文件url信息
| Field | Type | Label | Description |
| url | string | 下载地址 |
| Field | Validations |
| url |
|
@description 物体顶点位置百分比
| Field | Type | Label | Description |
| x | double | x坐标百分比 |
|
| y | double | y坐标百分比 |
| Method Name | Request Type | Response Type | Description |
| GetSmsCodeDomestic | .SmsRequest | .SuccessResponse | @Summary 发送短信验证码 @Description /base/getSmsCodeDomestic |
| EmailVerifyCode | .EmailRequest | .SuccessResponse | @Summary 发送邮箱验证码 @Description /base/emailVerifyCode |
| GetVerifyCodeImage | .EmptyRequest | .CaptchaResponse | @Summary 获取验证码图片 @Description /base/getVerifyCodeImage |
| UploadFile | .FileUploadRequest | .FileUploadResponse | @Summary 上传单个文件 @Description /base/uploadFile |
| GetLocationByAddress | .AddressLocationRequest | .Location | @Summary 获取城市经纬度 @Description /base/getLocationByAddress |
| GetAddressByLocation | .Location | .AddressResponse | @Summary 获取城市信息 @Description /base/getAddressByLocation |
| ImageRecognition | .ImageRecognitionRequest | .ImageRecognitionResponse | @Summary 图片文字识别 @Description /base/imageRecognition |
| AiQuestion | .AiQuestionRequest | .AiQuestionResponse | @Summary AI问答 @Description /base/aiQuestion |
| SpeechToText | .SpeechToTextRequest | .SpeechToTextResponse | @Summary 语音转文字 @Description /base/speechToText |
| TextToSpeech | .TextToSpeechRequest | .TextToSpeechResponse | @Summary 文字转语音 @Description /base/textToSpeech |
| DetectLanguage | .DetectLanguageRequest | .DetectLanguageResponse | @Summary 文本语种检测 @Description /base/detectLanguage |
| ImageObjectDetection | .ImageObjectDetectionRequest | .ImageObjectDetectionResponse | @Summary 图片物体检测 @Description /base/imageObjectDetection |
| CustomScan | .CustomScanRequest | .CustomScanResponse | @Summary 自定义扫码识别 @Description /base/customScan |
| Translate | .TranslationRequest | .TranslationResponse | @Summary 翻译 @Description /base/translate |
| HandwritingRecognize | .HandwritingRecognitionRequest | .HandwritingRecognitionResponse | @Summary 手写文字识别 @Description /base/handwritingRecognize |
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
| double | double | double | float | float64 | double | float | Float | |
| float | float | float | float | float32 | float | float | Float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |