package com.iamberry.wechat.service.wechat.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.iamberry.wechat.core.entity.PaperBean;
import com.iamberry.wechat.core.entity.wx.ImageTextInfo;
import com.iamberry.wechat.service.mapper.ImageTextInfoMapper;
import com.iamberry.wechat.service.wechat.dao.ImageTextInfoDAO;

@Repository
public class ImageTextInfoDAOImpl implements ImageTextInfoDAO {
	@Autowired
	private ImageTextInfoMapper imageTextInfoMapper;
	public void setImageTextInfoMapper(ImageTextInfoMapper imageTextInfoMapper) {
		this.imageTextInfoMapper = imageTextInfoMapper;
	}

	@Override
	public int addImageTextInfo(ImageTextInfo imageTextInfo) {
		return imageTextInfoMapper.addImageTextInfo(imageTextInfo);
	}

	@Override
	public int delImageTextInfo(Long id) {
		return imageTextInfoMapper.delImageTextInfo(id);
	}

	@Override
	public int updateImageTextInfo(ImageTextInfo imageTextInfo) {
		return imageTextInfoMapper.updateImageTextInfo(imageTextInfo);
	}

	@Override
	public ImageTextInfo findImageTextInfoById(Long id) {
		return imageTextInfoMapper.findImageTextInfoById(id);
	}

	@Override
	public List<ImageTextInfo> findImageTextInfoBywxPublicNo(String wxPublicNo) {
		return imageTextInfoMapper.findImageTextInfoBywxPublicNo(wxPublicNo);
	}

	@Override
	public List<ImageTextInfo> findImageTextInfo(String wxPublicNo,
			Integer pageNo, Integer selectNum) {
		return imageTextInfoMapper.findImageTextInfo(wxPublicNo, pageNo, selectNum);
	}

	@Override
	public int findImageTextInfoNo(String wxPublicNo) {
		return imageTextInfoMapper.findImageTextInfoNo(wxPublicNo);
	}

	@Override
	public List<ImageTextInfo> selectImageTextInfoList(PaperBean bean) {
		// TODO Auto-generated method stub
		return imageTextInfoMapper.selectImageTextInfoList(bean);
	}

	@Override
	public List<ImageTextInfo> selectAllImageTextList(String publicWxNo) {
		// TODO Auto-generated method stub
		return imageTextInfoMapper.selectAllImageTextList(publicWxNo);
	}

	@Override
	public Integer selectFirstAnswerByID(Integer imageTextId) {
		// TODO Auto-generated method stub
		return imageTextInfoMapper.selectFirstAnswerByID(imageTextId);
	}

	@Override
	public Integer selectKeyWordByID(Integer imageTextId) {
		// TODO Auto-generated method stub
		return imageTextInfoMapper.selectKeyWordByID(imageTextId);
	}

	@Override
	public Integer selectMenuKeyByID(Integer imageTextId) {
		// TODO Auto-generated method stub
		return imageTextInfoMapper.selectMenuKeyByID(imageTextId);
	}
	
	
}
