package com.doumee.service.business; import com.doumee.core.model.PageData; import com.doumee.core.model.PageWrap; import com.doumee.dao.business.model.News; import com.doumee.dao.web.response.DailyUpdatesResponse; import java.util.List; /** * 资讯和定制服务信息表Service定义 * @author 江蹄蹄 * @date 2024/07/04 14:40 */ public interface NewsService { /** * 创建 * * @param news 实体对象 * @return Long */ Long create(News news); /** * 主键删除 * * @param id 主键 */ void deleteById(Long id); /** * 删除 * * @param news 实体对象 */ void delete(News news); /** * 批量主键删除 * * @param ids 主键集 */ void deleteByIdInBatch(List ids); /** * 主键更新 * * @param news 实体对象 */ void updateById(News news); /** * 批量主键更新 * * @param newss 实体集 */ void updateByIdInBatch(List newss); /** * 主键查询 * * @param id 主键 * @return News */ News findById(Long id); /** * 条件查询单条记录 * * @param news 实体对象 * @return News */ News findOne(News news); /** * 条件查询 * * @param news 实体对象 * @return List */ List findList(News news); /** * 分页查询 * * @param pageWrap 分页对象 * @return PageData */ PageData findPage(PageWrap pageWrap); /** * 条件统计 * * @param news 实体对象 * @return long */ long count(News news); /** * 定制服务列表 * @return */ List getCustomizedNewsList(Integer type,Integer num,Integer fileType); /** * 定制服务信息详情 增加浏览量 * @param id * @return */ News getCustomizedNewsDetail(Long id); /** * 获取每日上新数据 * @return */ DailyUpdatesResponse getDailyUpdatesResponse(); /** * 保存推广咨询分享记录 * @param id * @param userId */ void saveShareRecord(Long id,Long userId); }