package com.iamberry.wechat.service.wechat;

import java.util.List;

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

import com.iamberry.wechat.core.entity.wx.ImageTextMore;
import com.iamberry.wechat.face.wechat.ImageTextMoreService;
import com.iamberry.wechat.service.wechat.dao.ImageTextMoreDAO;

@Service
public class ImageTextMoreServiceImpl implements ImageTextMoreService {
	@Autowired
	private ImageTextMoreDAO imageTextMoreDAO;
	public void setImageTextMoreDAO(ImageTextMoreDAO imageTextMoreDAO) {
		this.imageTextMoreDAO = imageTextMoreDAO;
	}
	@Override
	public int addImageTextMore(ImageTextMore imageTextMore) {
		return imageTextMoreDAO.addImageTextMore(imageTextMore);
	}
	@Override
	public int delImageTextMore(Long moreImageTextNo) {
		return imageTextMoreDAO.delImageTextMore(moreImageTextNo);
	}
	@Override
	public int updateImageTextMore(ImageTextMore imageTextMore) {
		return imageTextMoreDAO.updateImageTextMore(imageTextMore);
	}
	@Override
	public List<ImageTextMore> findImageTextmore(Long imageTextNo) {
		return imageTextMoreDAO.findImageTextmore(imageTextNo);
	}
	@Override
	public ImageTextMore getImageTextmore(Long imageTextMoreNo) {
		return imageTextMoreDAO.getImageTextmore(imageTextMoreNo);
	}
	@Override
	public Integer selectMoreImageTextCountByMainId(Integer mainImageTextId) {
		// TODO Auto-generated method stub
		return imageTextMoreDAO.selectMoreImageTextCountByMainId(mainImageTextId);
	}
	@Override
	public int delImageTextMoreByImageNo(Long id) {
		// TODO Auto-generated method stub
		return imageTextMoreDAO.delImageTextMoreByImageNo(id);
	}
	
}
