wenminjie
2026-08-04 93414e8ee25852aca467213402585d0e65c08a4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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<Map<String, Object>> jumpConfig(
            @Parameter(description = "洗车商家ID") @PathVariable Long merchantId
    ) {
        return ApiResponse.success(service.jumpConfig(merchantId));
    }
}