|
|
@@ -31,6 +31,7 @@ import com.cyksj.model.request.corp.CorpCommonReq;
|
|
|
import com.cyksj.model.views.*;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.chatgpt.ChatGptAccountService;
|
|
|
+import com.cyksj.service.claude.ClaudeService;
|
|
|
import com.cyksj.service.corp.CorpService;
|
|
|
import com.cyksj.service.corp.CorpUserService;
|
|
|
import com.cyksj.service.mange.CmsOrderDonService;
|
|
|
@@ -93,6 +94,8 @@ public class WxCorpController {
|
|
|
|
|
|
private final ChatGptAccountService chatGptAccountService;
|
|
|
|
|
|
+ private final ClaudeService claudeService;
|
|
|
+
|
|
|
private final static String CORP_UUID = "corp-uuid";
|
|
|
|
|
|
/**
|
|
|
@@ -531,4 +534,13 @@ public class WxCorpController {
|
|
|
chatGptAccountService.clearGptNum(relationId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 清除claude次数
|
|
|
+ */
|
|
|
+ @PutMapping("/clear/claude/num")
|
|
|
+ public Result<String> clearClaudeNum(Long relationId) throws Exception {
|
|
|
+ claudeService.clearNumByRelationId(relationId);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
}
|