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.wx.ImageTextMore;
import com.iamberry.wechat.service.mapper.ImageTextMoreMapper;
import com.iamberry.wechat.service.wechat.dao.ImageTextMoreDAO;

@Repository
public class ImageTextMoreDAOImpl implements ImageTextMoreDAO {
	@Autowired
	private ImageTextMoreMapper imageTextMoreMapper;
	public void setImageTextMoreMapper(ImageTextMoreMapper imageTextMoreMapper) {
		this.imageTextMoreMapper = imageTextMoreMapper;
	}

	@Override
	public int addImageTextMore(ImageTextMore imageTextMore) {
		return imageTextMoreMapper.addImageTextMore(imageTextMore);
	}

	@Override
	public int delImageTextMore(Long id) {
		return imageTextMoreMapper.delImageTextMore(id);
	}

	@Override
	public int updateImageTextMore(ImageTextMore imageTextMore) {
		return imageTextMoreMapper.updateImageTextMore(imageTextMore);
	}

	@Override
	public List<ImageTextMore> findImageTextmore(Long imageTextNo) {
		return imageTextMoreMapper.findImageTextmore(imageTextNo);
	}

	@Override
	public ImageTextMore getImageTextmore(Long imageTextMoreNo) {
		return imageTextMoreMapper.getImageTextmore(imageTextMoreNo);
	}

	@Override
	public Integer selectMoreImageTextCountByMainId(Integer mainImageTextId) {
		// TODO Auto-generated method stub
		return imageTextMoreMapper.selectMoreImageTextCountByMainId(mainImageTextId);
	}

	@Override
	public int delImageTextMoreByImageNo(Long id) {
		// TODO Auto-generated method stub
		return imageTextMoreMapper.delImageTextMoreByImageNo(id);
	}

}
