package com.style24.scm.biz.service;

import com.style24.persistence.domain.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.style24.persistence.domain.GoodsCategory;
import com.style24.scm.biz.dao.TssDisplayDao;

import lombok.extern.slf4j.Slf4j;

import java.util.Collection;

/**
 * 전시 Service
 *
 * @author eskim
 * @since 2021. 01. 21
 */
@Service
@Slf4j
public class TssDisplayService {

	@Autowired
	private TssDisplayDao displayDao;

	@Transactional("shopTxnManager")
	public void deleteGoodsCategory(GoodsCategory goodsCategory) {
		displayDao.deleteGoodsCategory(goodsCategory);
	}

	/**
	 * 카테고리 목록
	 * @param category - 카테고리 정보
	 * @return
	 * @author gagamel
	 * @since 2021. 1. 4
	 */
	public Collection<Category> getCategoryList(Category category) {
		return displayDao.getCategoryList(category);
	}
}
