@Service
@ConditionalOnProperty(name="translate.type",
havingValue="xfyun")
public class XfYunTranslationServiceImpl
extends Object
implements TranslationService
| 构造器和说明 |
|---|
XfYunTranslationServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildHttpBody(String from,
String to,
String content)
组装http请求体
|
Map<String,String> |
buildHttpHeader(String body) |
String |
translate(TranslationRequest translationRequest) |
public String translate(TranslationRequest translationRequest)
translate 在接口中 TranslationServicepublic Map<String,String> buildHttpHeader(String body) throws Exception
ExceptionCopyright © 2025 Pivotal Software, Inc.. All rights reserved.