|
|
@@ -1,13 +1,16 @@
|
|
|
package com.fs.company.service.workflow.identity.impl;
|
|
|
|
|
|
import com.fs.company.mapper.LobsterAuxiliaryMapper;
|
|
|
+import com.fs.company.service.workflow.identity.IdentityHidingService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
@Service
|
|
|
-public class IdentityHidingServiceImpl {
|
|
|
+public class IdentityHidingServiceImpl implements IdentityHidingService {
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(IdentityHidingServiceImpl.class);
|
|
|
|
|
|
@@ -18,4 +21,39 @@ public class IdentityHidingServiceImpl {
|
|
|
public String getSafeSystemPrompt() { return "你是专业的销售顾问"; }
|
|
|
public String getSafeErrorMessage(Object ctx, String code) { return "系统繁忙,请稍后再试"; }
|
|
|
public String hideIdentity(String text) { return text; }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String hideIdentity(Long companyId, String message, Map<String, Object> context) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getSafeSystemPrompt(Long companyId) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getSafeHandoffMessage(Long companyId, String urgency) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String getSafeErrorMessage(Long companyId, String errorType) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public long calculateHumanLikeDelay(String message, Map<String, Object> context) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> getIdentityConfig(Long companyId) {
|
|
|
+ return Map.of();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateIdentityConfig(Long companyId, Map<String, Object> config) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|