|
|
@@ -30,6 +30,7 @@ import com.cyksj.model.request.OrderRefundReq;
|
|
|
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.corp.CorpService;
|
|
|
import com.cyksj.service.corp.CorpUserService;
|
|
|
import com.cyksj.service.mange.CmsOrderDonService;
|
|
|
@@ -90,6 +91,8 @@ public class WxCorpController {
|
|
|
|
|
|
private final CorpFollowMapper corpFollowMapper;
|
|
|
|
|
|
+ private final ChatGptAccountService chatGptAccountService;
|
|
|
+
|
|
|
private final static String CORP_UUID = "corp-uuid";
|
|
|
|
|
|
/**
|
|
|
@@ -519,4 +522,13 @@ public class WxCorpController {
|
|
|
corpUserService.spotifySelfService(orderId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 清除gpt次数
|
|
|
+ */
|
|
|
+ @PutMapping("/clear/gpt/num")
|
|
|
+ public Result<String> clearGptNum(Long relationId) throws Exception {
|
|
|
+ chatGptAccountService.clearGptNum(relationId);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
}
|