package com.pcloud.book.applet.biz;

import com.pcloud.book.applet.dto.AppletThirdResourcesDTO;
import com.pcloud.book.applet.dto.ThirdResourceRecordDTO;
import com.pcloud.book.applet.entity.AppletThirdResources;
import com.pcloud.book.applet.entity.AppletThirdResourcesClick;
import com.pcloud.common.page.PageBeanNew;

import java.util.List;

public interface AppletThirdResourcesBiz {

    AppletThirdResourcesDTO getAnalysisDetail(Long thirdResourcesId);

    PageBeanNew<AppletThirdResourcesDTO> getListThirdResourcesAnalysis(String keyValue, String source,
            String resourcesType, Integer browseQty, Integer clickQty, Integer currentPage, Integer numPerPage);

    void addServiceRecord(AppletThirdResourcesClick thirdResourcesClick);

    AppletThirdResourcesDTO getNewsTrendChart(Long newsId);

    PageBeanNew<AppletThirdResources> getThirdResources(Long type, String source, String keyValue, Integer currentPage,
            Integer numPerPage);

    void deleteAppletsById(Long id);

    void updateThirdResources(AppletThirdResourcesDTO thirdResourcesDTO);

    AppletThirdResources getAppletsById(Long id);

    List<AppletThirdResources> getAppletsByIds(List<Long> ids);

    void createThirdResources(AppletThirdResourcesDTO thirdResourcesDTO);

    PageBeanNew<ThirdResourceRecordDTO> listThirdResourceRecord(String queryName, Integer currentPage, Integer numPerPage, String wechatUser, Long thirdResourceId, Integer recordType);
}
