package com.goafanti.common.dao;

import java.security.Policy;
import java.util.List;
import java.util.Map;

import com.goafanti.common.bo.PolicyEntity;
import com.goafanti.common.model.News;
import com.goafanti.news.bo.NewsPortalList;
import com.goafanti.news.bo.NewsResult;
import com.goafanti.news.bo.NewsSummary;
import com.goafanti.news.bo.newsInterestBo;

public interface NewsMapper {
	int deleteByPrimaryKey(Long id);

	int insert(News record);

	int insertSelective(News record);

	NewsResult selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(News record);

	int updateByPrimaryKeyWithBLOBs(News record);

	int updateByPrimaryKey(News record);

	List<NewsSummary> findList(Map<String, Object> params);

	int batchDeleteByPrimaryKey(List<String> id);

	List<NewsPortalList> findNewsList(Map<String, Object> params);

	List<NewsSummary> findIndexNewsList(Map<String, Object> params);
	
	List<NewsSummary> findJmrhNewsList(Map<String, Object> params);
	
	List<NewsPortalList> portalNewsPolicy();
	
	List<NewsPortalList> portalNewsQuestion();
	
	List<NewsSummary> findIndexNewsLists(Map<String, Object> params);

	List<newsInterestBo> newsInterest(String uid);
	
	List<News>getNewsList(int size);
	PolicyEntity getPolicyDetail(String id);

	NewsPortalList selectinformationDetail(String id);
	
}