|
|
@@ -15,9 +15,7 @@ import org.springframework.stereotype.Service;
|
|
|
import java.security.MessageDigest;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
-import java.util.UUID;
|
|
|
|
|
|
/**
|
|
|
* @author: Leonezhurui
|
|
|
@@ -28,12 +26,6 @@ import java.util.UUID;
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class TranslateService {
|
|
|
-
|
|
|
- @Value("${youdao.appKey}")
|
|
|
- private String appKey;
|
|
|
-
|
|
|
- @Value("${youdao.appSecret}")
|
|
|
- private String appSecret;
|
|
|
private final WebClientUtil webClientUtil = new WebClientUtil("http://localhost:5000/api/translate");
|
|
|
|
|
|
private final TranslationMapper translationMapper;
|