159 lines
4.1 KiB
Java
159 lines
4.1 KiB
Java
package com.cm.news.service.newscontentlike;
|
|
|
|
import com.cm.common.exception.RemoveException;
|
|
import com.cm.common.exception.SaveException;
|
|
import com.cm.common.exception.SearchException;
|
|
import com.cm.common.pojo.ListPage;
|
|
import com.cm.common.result.SuccessResult;
|
|
import com.cm.common.result.SuccessResultData;
|
|
import com.cm.common.result.SuccessResultList;
|
|
import com.cm.news.pojo.dtos.newscontentlike.NewsContentLikeDTO;
|
|
import com.cm.news.pojo.vos.newscontentlike.NewsContentLikeVO;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* @ClassName: INewsContentLikeService
|
|
* @Description: 新闻点赞
|
|
* @Author: WenG
|
|
* @Date: 2020-05-12 10:33
|
|
* @Version: 1.0
|
|
**/
|
|
public interface INewsContentLikeService {
|
|
|
|
NewsContentLikeDTO getNewsContentLikeByNewsContentIdAndUserId(String userId, String newsContentId) throws SearchException;
|
|
|
|
/**
|
|
* 新增新闻点赞
|
|
*
|
|
* @param newsContentLikeVO
|
|
* @return
|
|
* @throws Exception
|
|
*/
|
|
SuccessResult saveNewsContentLike(NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 新增新闻点赞(APP)
|
|
*
|
|
* @param token
|
|
* @param newsContentLikeVO
|
|
* @return
|
|
* @throws Exception
|
|
*/
|
|
SuccessResult saveNewsContentLikeByToken(String token, NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 新增新闻点赞
|
|
*
|
|
* @param newsContentLikeVO
|
|
* @return newsContentLikeId
|
|
* @throws Exception
|
|
*/
|
|
String saveNewsContentLikeReturnId(NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 新增新闻点赞(APP)
|
|
*
|
|
* @param token
|
|
* @param newsContentLikeVO
|
|
* @return newsContentLikeId
|
|
* @throws Exception
|
|
*/
|
|
String saveNewsContentLikeByTokenReturnId(String token, NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 删除新闻点赞
|
|
*
|
|
* @param ids
|
|
* @return
|
|
* @throws RemoveException
|
|
*/
|
|
SuccessResult removeNewsContentLike(String ids) throws RemoveException;
|
|
|
|
/**
|
|
* 删除新闻点赞(物理删除)
|
|
*
|
|
* @param ids
|
|
* @throws RemoveException
|
|
*/
|
|
void deleteNewsContentLike(String ids) throws RemoveException;
|
|
|
|
/**
|
|
* 删除新闻点赞(APP)
|
|
*
|
|
* @param token
|
|
* @param ids
|
|
* @return
|
|
* @throws RemoveException
|
|
*/
|
|
SuccessResult removeNewsContentLikeByToken(String token, String ids) throws RemoveException;
|
|
|
|
/**
|
|
* 修改新闻点赞
|
|
*
|
|
* @param newsContentLikeId
|
|
* @param newsContentLikeVO
|
|
* @return
|
|
* @throws Exception
|
|
*/
|
|
SuccessResult updateNewsContentLike(String newsContentLikeId, NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 修改新闻点赞(APP)
|
|
*
|
|
* @param token
|
|
* @param newsContentLikeId
|
|
* @param newsContentLikeVO
|
|
* @return
|
|
* @throws Exception
|
|
*/
|
|
SuccessResult updateNewsContentLikeByToken(String token, String newsContentLikeId, NewsContentLikeVO newsContentLikeVO) throws Exception;
|
|
|
|
/**
|
|
* 新闻点赞详情(通过ID)
|
|
*
|
|
* @param newsContentLikeId
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
NewsContentLikeDTO getNewsContentLikeById(String newsContentLikeId) throws SearchException;
|
|
|
|
/**
|
|
* 新闻点赞列表
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
List<NewsContentLikeDTO> listNewsContentLike(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 新闻点赞分页列表
|
|
*
|
|
* @param page
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
SuccessResultList<List<NewsContentLikeDTO>> listPageNewsContentLike(ListPage page) throws SearchException;
|
|
|
|
/**
|
|
* 新闻点赞统计
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
Integer countNumberNewsContentLike(Map<String, Object> params) throws SearchException;
|
|
|
|
/**
|
|
* 新闻点赞统计
|
|
*
|
|
* @param params
|
|
* @return
|
|
* @throws SearchException
|
|
*/
|
|
SuccessResultData<Integer> countNewsContentLike(Map<String, Object> params) throws SearchException;
|
|
|
|
Integer getCountByNewsContentId(String newsContentId) throws SearchException;
|
|
} |