shinnosuke
2026-09-11 b36f4c2800e88f8c5060ae926d3eb25d4bcb69c0
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
33
package com.talentcard.server.business.portal;
 
import java.util.Map;
 
import com.talentcard.server.common.ApiResponse;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@Tag(name = "App-自主洗车", description = "自主洗车详情和外链配置接口")
@RestController
@RequestMapping("/api/app/car-wash-merchants")
public class CarWashMerchantPortalController {
    private final CarWashMerchantPortalService service;
 
    public CarWashMerchantPortalController(CarWashMerchantPortalService service) {
        this.service = service;
    }
 
    @Operation(summary = "自主洗车详情", description = "返回自主洗车商户信息、人才卡权益和外链配置")
    @GetMapping("/{merchantId}")
    public ApiResponse<Map<String, Object>> detail(
            @Parameter(description = "商户ID") @PathVariable Long merchantId,
            @Parameter(description = "人才卡ID;用于匹配对应人才卡等级的权益配置") @RequestParam(required = false) Long talentCardId
    ) {
        return ApiResponse.success(service.detail(merchantId, talentCardId));
    }
}