package com.pcloud.book.riddle.dao.impl;

import com.pcloud.book.riddle.dao.RiddleReplyDao;
import com.pcloud.book.riddle.entity.RiddleReply;
import com.pcloud.common.core.dao.BaseDaoImpl;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @描述：回复文案
 * @作者：zhuyajie
 * @创建时间：16:58 2019/7/24
 * @版本：1.0
 */
@Component("riddleReplyDao")
public class RiddleReplyDaoImpl extends BaseDaoImpl<RiddleReply> implements RiddleReplyDao {

    @Override
    public List<String> getReplyByType(String code) {
        return getSessionTemplate().selectList(getStatement("getReplyByType"),code);
    }
}
