package com.style24.front.biz.web;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.style24.front.biz.service.TsfRendererService;
import com.style24.front.support.controller.TsfBaseController;
import com.style24.persistence.domain.CommonCode;

import lombok.extern.slf4j.Slf4j;

/**
 * 콤보박스, 체크박스, 라디오버튼 구성 시 필요한 Renderer Controller
 *
 * @author renderer
 * @since 2021. 3. 18
 */
@Controller
@RequestMapping("/renderer")
@Slf4j
public class TsfRendererController extends TsfBaseController {

	@Autowired
	private TsfRendererService rendererService;

	/**
	 * 패밀리사이트 목록
	 * @return
	 * @author gagamel
	 * @since 2021. 3. 18
	 */
	@GetMapping("/familysite/list")
	@ResponseBody
	public Collection<CommonCode> getFamilySiteList() {
		return rendererService.getAvailCommonCodeList("G029");
	}

}
