shinnosuke
2026-08-05 25729fa1ae7b630cbd4a9547a5693acd03c09c2a
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
package com.talentcard.server.business.merchant;
 
import java.util.Map;
 
import com.talentcard.server.business.agreement.MerchantAgreementService;
import com.talentcard.server.common.ApiResponse;
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;
 
@RestController
@RequestMapping("/api/merchant/legal/agreements")
public class MerchantLegalController {
    private final MerchantAgreementService service;
 
    public MerchantLegalController(MerchantAgreementService service) {
        this.service = service;
    }
 
    @GetMapping("/{type}")
    public ApiResponse<Map<String, Object>> detail(@PathVariable String type) {
        return ApiResponse.success(service.detail(type));
    }
}