From 75d8b0ad39a7eb04f72ef8654dbb895322f07cfd Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Oct 2025 13:41:42 +0800
Subject: [PATCH] feat(ai): 新增会员答题分页及详情查询功能 - 在 AiMemberAnswerMapper 中新增 getAnswerPage 方法及对应 XML 查询语句 - 新增 ApiMemberAnswerPageDto 和 ApiMemberAnswerPageVo 用于分页查询参数和返回结果 - 在 AiMemberAnswerService 及其实现类中添加 getAnswerPage 方法 - 在 AiMemberService 及其实现类中新增 answerPage 和 answerInfo 接口实现 - 新增 ApiMemberAnswerInfoDto 和 ApiMemberAnswerInfoVo 用于答题详情接口参数和响应 - 在 ApiMemberController 中增加 /answerPage 和 /answerInfo两个 POST 接口 - 优化 AiMemberTeamPracticeVo,增加 memberUuid 字段 - 统一导入包路径,简化代码结构
---
src/main/java/cc/mrbird/febs/mall/controller/clothes/ApiClothesSocialController.java | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 102 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ApiClothesSocialController.java b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ApiClothesSocialController.java
index 655e778..42a02e3 100644
--- a/src/main/java/cc/mrbird/febs/mall/controller/clothes/ApiClothesSocialController.java
+++ b/src/main/java/cc/mrbird/febs/mall/controller/clothes/ApiClothesSocialController.java
@@ -1,6 +1,7 @@
package cc.mrbird.febs.mall.controller.clothes;
import cc.mrbird.febs.common.entity.FebsResponse;
+import cc.mrbird.febs.mall.dto.ApiColletDelDto;
import cc.mrbird.febs.mall.dto.clothes.*;
import cc.mrbird.febs.mall.service.ApiClothesOrderService;
import cc.mrbird.febs.mall.service.ApiClothesSocialService;
@@ -45,6 +46,107 @@
return apiClothesSocialService.indexCategory();
}
+ @ApiOperation(value = "社区列表", notes = "社区列表")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiAllSocialVo.class)
+ })
+ @PostMapping(value = "/allSocial")
+ public FebsResponse allSocial(@RequestBody @Validated ApiAllSocialDto dto) {
+
+ return apiClothesSocialService.allSocial(dto);
+ }
+
+ @ApiOperation(value = "社区详情", notes = "社区详情")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiSocialInfoVo.class)
+ })
+ @PostMapping(value = "/socialInfo")
+ public FebsResponse socialInfo(@RequestBody @Validated ApiSocialInfoDto dto) {
+
+ return apiClothesSocialService.socialInfo(dto);
+ }
+
+ @ApiOperation(value = "分享到社区", notes = "分享到社区")
+ @PostMapping(value = "/socialAdd")
+ public FebsResponse socialAdd(@RequestBody @Validated ApiSocialAddDto dto) {
+
+ return apiClothesSocialService.socialAdd(dto);
+ }
+
+ @ApiOperation(value = "点赞(心形)", notes = "点赞(心形)")
+ @PostMapping(value = "/addLike")
+ public FebsResponse addLike(@RequestBody @Validated ApiSocialLikeAddDto dto) {
+
+ return apiClothesSocialService.addLike(dto);
+ }
+
+ @ApiOperation(value = "评论点赞(心形)", notes = "点赞(心形)")
+ @PostMapping(value = "/addCommentLike")
+ public FebsResponse addCommentLike(@RequestBody @Validated ApiSocialCommentLikeAddDto dto) {
+
+ return apiClothesSocialService.addCommentLike(dto);
+ }
+
+ @ApiOperation(value = "收藏(五角星)", notes = "收藏(五角星)")
+ @PostMapping(value = "/addCollect")
+ public FebsResponse addCollect(@RequestBody @Validated ApiSocialCollectAddDto dto) {
+
+ return apiClothesSocialService.addCollect(dto);
+ }
+
+ @ApiOperation(value = "是否收藏点赞收藏", notes = "是否收藏点赞收藏")
+ @PostMapping(value = "/followState")
+ public FebsResponse followState(@RequestBody @Validated ApiSocialCollectFollowStateDto dto) {
+
+ return apiClothesSocialService.followState(dto);
+ }
+
+ @ApiOperation(value = "我的社区收藏", notes = "我的社区收藏")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiSocialMyCollectVo.class)
+ })
+ @PostMapping(value = "/myCollect")
+ public FebsResponse myCollect(@RequestBody @Validated ApiSocialMyCollectAddDto dto) {
+
+ return apiClothesSocialService.myCollect(dto);
+ }
+
+
+ @ApiOperation(value = "取消收藏")
+ @PostMapping(value = "/del")
+ public FebsResponse delCollection(@RequestBody ApiColletDelDto dto) {
+ return apiClothesSocialService.delCollection(dto);
+ }
+
+ @ApiOperation(value = "我的灵感-跳转到开始设计", notes = "我的灵感-跳转到开始设计")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiClothesSocialMuseVo.class)
+ })
+ @PostMapping(value = "/museToDesign")
+ public FebsResponse museToDesign(@RequestBody @Validated ApiClothesSocialMuseDto dto) {
+
+ return apiClothesSocialService.museToDesign(dto);
+ }
+
+
+ @ApiOperation(value = "评论", notes = "评论")
+ @PostMapping(value = "/comment")
+ public FebsResponse comment(@RequestBody @Validated ApiClothesSocialCommentDto dto) {
+
+ return apiClothesSocialService.comment(dto);
+ }
+
+
+ @ApiOperation(value = "评论列表", notes = "评论列表")
+ @ApiResponses({
+ @ApiResponse(code = 200, message = "success", response = ApiAllCommentVo.class)
+ })
+ @PostMapping(value = "/allComment")
+ public FebsResponse allComment(@RequestBody @Validated ApiAllCommentDto dto) {
+
+ return apiClothesSocialService.allComment(dto);
+ }
+
}
--
Gitblit v1.9.1