ContentService.java 2.66 KB
package com.cnlive.shenhe.service;

import com.cnlive.shenhe.dto.ContentDTO;
import com.cnlive.shenhe.entity.ShyContent;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: yan-zhao-wang
 * @DateTime: 2022-11-01 13:11
 */
public interface ContentService {
    /**
     * 获取图文对象
     *
     * @param shyContent
     * @return
     */
    ShyContent getShyContent(ShyContent shyContent);

    /**
     * 获取图文集合
     *
     * @param shyContent
     * @return
     */
    List<ShyContent> findShyContent(ShyContent shyContent);

    /**
     * 根据条件 查询图文集合
     *
     * @return
     */
    List<ShyContent> findShyContentWithWebPage();

    /**
     * 修改图文 返回布尔类型
     *
     * @param shyContent
     * @return
     */
    boolean updateShyContent(ShyContent shyContent);

    /**
     * 导入图文 返回布尔类型
     *
     * @param shyContent
     * @return
     */
    boolean impotContent(ShyContent shyContent);

    /**
     * 分页、条件查询 返回集合
     *
     * @param contentDTO
     * @return
     */
    PageInfo<ShyContent> getPage(ContentDTO contentDTO);

    /**
     * 根据条件导出数据excel
     *
     * @param contentDTO
     * @return
     */
    List<ShyContent> findByCondition(ContentDTO contentDTO);

    /**
     * 根据id获取图文详情
     *
     * @param id
     * @return
     */
    ShyContent getDetailsContent(Integer id);

    /**
     * 回调
     *
     * @param contentId
     * @param msg
     * @param state
     * @param userId
     * @param updater
     * @return
     */
    boolean callback(String contentId, String msg, Integer state, String userId, String updater);

    /**
     * 认领
     *
     * @param ids
     * @param num
     * @param userId
     * @param spid
     * @return
     */
    Integer receive(String ids, Integer num, String userId, Integer spid);

    /**
     * 退领
     *
     * @param ids
     * @param userId
     * @return
     */
    Integer retReceive(String ids, String userId);

    /**
     * 根据主键查询图文对象
     *
     * @param id
     * @return
     */
    ShyContent selectByPrimaryKey(Integer id);

    /**
     * 根据主键修改图文
     *
     * @param content
     * @return
     */
    int updateByPrimaryKeySelective(ShyContent content);

    /**
     * 获取审核类型
     *
     * @param spId
     * @param contentTag
     * @return
     */
    Integer getShenheType(Integer spId, String contentTag);

    /**
     * 易盾网站过滤
     * 送审类型:1:文本 2:图片 3.网页 4:点播音频
     *
     * @param shyContent
     */
    void contentFilter(ShyContent shyContent);
}