package com.iamberry.wechat.service.flow;

import java.util.List;

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

import com.iamberry.wechat.core.entity.flow.TemplateFlowInfo;
import com.iamberry.wechat.face.flow.TemplateFlowInfoService;
import com.iamberry.wechat.service.mapper.TemplateFlowInfoMapper;

@Service
public class TemplateFlowInfoServiceImpl implements TemplateFlowInfoService {

	@Autowired
	private TemplateFlowInfoMapper templateFlowInfoMapper;

	
	public TemplateFlowInfo getTemplateFlowInfo(
			TemplateFlowInfo templateFlowInfo) {
		// TODO Auto-generated method stub
		return templateFlowInfoMapper.getTemplateFlowInfo(templateFlowInfo);
	}

	
	public Integer addTemplateFlowList(List<TemplateFlowInfo> templateFlowList) {
		// TODO Auto-generated method stub
		return templateFlowInfoMapper.addTemplateFlowList(templateFlowList);
	}

	
	public List<TemplateFlowInfo> getFlowInfoListByTemplateId(Integer templateId) {
		// TODO Auto-generated method stub
		return templateFlowInfoMapper.getFlowInfoListByTemplateId(templateId);
	}

	
	public Integer updateTemplateFlowInfo(
			List<TemplateFlowInfo> templateFlowList) {
		// TODO Auto-generated method stub
		return templateFlowInfoMapper.updateTemplateFlowInfo(templateFlowList);
	}


	@Override
	public List<Integer> getTypeId(Integer tid) {
		// TODO Auto-generated method stub
		return templateFlowInfoMapper.getTypeId(tid);
	}
}
