package com.talentcard.server.business.portal; import java.util.Map; import com.talentcard.server.common.ApiResponse; import com.talentcard.server.service.CarWashJumpConfigPortalService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Tag(name = "小程序-洗车跳转", description = "小程序查询不同洗车商家的第三方小程序或网页跳转参数") @RestController @RequestMapping("/api/app/car-wash-merchants") public class CarWashJumpConfigPortalController { private final CarWashJumpConfigPortalService service; public CarWashJumpConfigPortalController(CarWashJumpConfigPortalService service) { this.service = service; } @Operation(summary = "查询洗车商家跳转参数", description = "按洗车商家ID返回可跳转的第三方小程序AppId、页面路径或网页地址") @GetMapping("/{merchantId}/jump-config") public ApiResponse> jumpConfig( @Parameter(description = "洗车商家ID") @PathVariable Long merchantId ) { return ApiResponse.success(service.jumpConfig(merchantId)); } }