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));
|
}
|
}
|