package com.iamberry.wechat.service.member;

import java.util.List;

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

import com.iamberry.wechat.core.entity.Page;
import com.iamberry.wechat.core.entity.member.Integral;
import com.iamberry.wechat.core.entity.member.Member;
import com.iamberry.wechat.face.member.IntegralService;
import com.iamberry.wechat.service.member.dao.IntegralDao;
@Service
public class IntegralServiceImpl  implements IntegralService {
	@Autowired
	private IntegralDao integralDao;

	@Override
	public List<Integral> getAll() {
		// TODO Auto-generated method stub
		return integralDao.getAllIntegral();
	}

	public IntegralDao getIntegralDao() {
		return integralDao;
	}

	public void setIntegralDao(IntegralDao integralDao) {
		this.integralDao = integralDao;
	}

	@Override
	public Integer getCount(Member member) {
		// TODO Auto-generated method stub
		return integralDao.getCount(member);
	}

	@Override
	public List<Integral> getIntegralByPage(Page page) {
		// TODO Auto-generated method stub

		return integralDao.getIntegralByPage(page);
	}

	@Override
	public List<Integral> getIntegralListByOpenId(Member member) {
		// TODO Auto-generated method stub
		return integralDao.getIntegralListByOpenId(member);
	}

	@Override
	public Integer insertIntegralLogs(Integral integer) {
		// TODO Auto-generated method stub
		return integralDao.insertIntegralLogs(integer);
	}
}
