|
|
@@ -17,11 +17,7 @@ import com.cyksj.mapper.manage.coupon.*;
|
|
|
import com.cyksj.mapper.manage.distribute.UserDistributeMapper;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.manage.views.OrderDonView;
|
|
|
-import com.cyksj.model.request.ClaudeCodeApiKeysReq;
|
|
|
-import com.cyksj.model.request.ClaudeCodeCreditCardUseReq;
|
|
|
-import com.cyksj.model.request.ClaudeCodeDelReq;
|
|
|
-import com.cyksj.model.request.CreditResetReq;
|
|
|
-import com.cyksj.model.request.TimeRateConfigReq;
|
|
|
+import com.cyksj.model.request.*;
|
|
|
import com.cyksj.model.response.*;
|
|
|
import com.cyksj.model.response.claudecode.ClaudeCodeResp;
|
|
|
import com.cyksj.model.views.*;
|
|
|
@@ -561,4 +557,28 @@ public class ClaudeCodeController {
|
|
|
ClaudeCodeResp resp = claudeCodeService.useCreditCard(req);
|
|
|
return resp;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户重置次数明细
|
|
|
+ */
|
|
|
+ @GetMapping("/reset-records")
|
|
|
+ public Result<SearchResult<ClaudeCodeUserResetRecordView>> getUserResetRecords(
|
|
|
+ @RequestParam(defaultValue = "1") Integer page,
|
|
|
+ @RequestParam(defaultValue = "10") Integer limit) {
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
+ SearchResult<ClaudeCodeUserResetRecordView> result = claudeCodeService.getUserResetRecords(userId, page, limit);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户积分卡使用明细
|
|
|
+ */
|
|
|
+ @GetMapping("/credit-card-records")
|
|
|
+ public Result<SearchResult<ClaudeCodeUserCreditCardRecordView>> getUserCreditCardRecords(
|
|
|
+ @RequestParam(defaultValue = "1") Integer page,
|
|
|
+ @RequestParam(defaultValue = "10") Integer limit) {
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
+ SearchResult<ClaudeCodeUserCreditCardRecordView> result = claudeCodeService.getUserCreditCardRecords(userId, page, limit);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(result);
|
|
|
+ }
|
|
|
}
|