package com.style24.core.biz.dao;

import com.style24.core.support.annotation.ShopDs;
import com.style24.persistence.domain.Clause;
import org.springframework.stereotype.Repository;

import java.util.Collection;

/**
 * 약관 Dao
 *
 * @author gagamel
 * @since 2020. 10. 29
 */
@ShopDs
@Repository
public interface TscClauseDao {

	/**
	 * 약관 조회
	 * @param clause - 약관 정보
	 * @return
	 * @author gagamel
	 * @since 2020. 10. 29
	 */
	String getClause(Clause clause);

	/**
	 * 약관목록
	 * @param  clause - 약관타입, 사이트코드
	 * @return Collection<Clause> - 약관목록
	 * @author jsshin
	 * @since 2021. 06. 10
	 */
	Collection<Clause> getClauseList(Clause clause);

	/**
	 * 약관정보
	 * @param  clauseSq - 약관시퀀스
	 * @return String - 약관내용
	 * @author jsshin
	 * @since 2021. 06. 10
	 */
	Clause getClauseInfo(Integer clauseSq);


}
