From 14cb99264702454a264610815d2a92ef2eb5d3cf Mon Sep 17 00:00:00 2001
From: wenminjie <1036699586@qq.com>
Date: 星期三, 05 八月 2026 16:04:13 +0800
Subject: [PATCH] 二期后端小程序对接:亲属卡审批查询

---
 talent-card-server/src/main/java/com/talentcard/server/business/portal/DependentCardApplyController.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/talent-card-server/src/main/java/com/talentcard/server/business/portal/DependentCardApplyController.java b/talent-card-server/src/main/java/com/talentcard/server/business/portal/DependentCardApplyController.java
index fd881b7..fb4a8fc 100644
--- a/talent-card-server/src/main/java/com/talentcard/server/business/portal/DependentCardApplyController.java
+++ b/talent-card-server/src/main/java/com/talentcard/server/business/portal/DependentCardApplyController.java
@@ -6,7 +6,7 @@
 import com.talentcard.server.request.DependentCardApplyRequest;
 import com.talentcard.server.request.DependentCardUnbindRequest;
 import com.talentcard.server.response.DependentCardApplyItemResponse;
-import com.talentcard.server.service.DependentCardApplyService;
+
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.responses.ApiResponses;
 import io.swagger.v3.oas.annotations.tags.Tag;
@@ -21,12 +21,12 @@
 
 @Tag(name = "家属附属卡申请", description = "小程序家属附属卡申请、查询与解绑")
 @RestController
-@RequestMapping("/api/app/dependent-card-applies")
+@RequestMapping("/api/app/family-cards/applications")
 public class DependentCardApplyController {
 
-	private final DependentCardApplyService service;
+	private final FamilyCardPortalService service;
 
-	public DependentCardApplyController(DependentCardApplyService service) {
+	public DependentCardApplyController(FamilyCardPortalService service) {
 		this.service = service;
 	}
 
@@ -45,7 +45,7 @@
 	public ApiResponse<Void> submit(
 			@Valid @RequestBody DependentCardApplyRequest request
 	) {
-		service.submit(request);
+		service.createByTalentCardId(request);
 		return ApiResponse.success();
 	}
 
@@ -54,7 +54,7 @@
 	public ApiResponse<List<DependentCardApplyItemResponse>> list(
 			@RequestParam Long talentCardId
 	) {
-		return ApiResponse.success(service.list(talentCardId));
+		return ApiResponse.success(service.listByTalentCardId(talentCardId));
 	}
 
 	@Operation(summary = "解绑家属附属卡", description = "仅已通过审核的家属附属卡可以解绑")
@@ -68,6 +68,6 @@
 			@PathVariable Long id,
 			@Valid @RequestBody DependentCardUnbindRequest request
 	) {
-		return ApiResponse.success(service.unbind(id, request));
+		return ApiResponse.success(service.unbindByTalentCardId(id, request));
 	}
-}
\ No newline at end of file
+}

--
Gitblit v1.7.1