package com.sptg.ad.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.ad.api.dto.AdAdsenseDto;
import com.sptg.ad.api.entity.AdAdsense;
import com.sptg.ad.api.entity.AdContent;
import com.sptg.common.core.beans.ResultBean;

/**
 * title: AdAdsenseServiceInterface
 * package: com.sptg.ad.biz.security
 * description: 广告位-服务层接口
 *
 *
 *
 */
public interface AdAdsenseServiceInterface extends IService<AdAdsense> {
    /**
     * 功能描述:分页查询
     * @param adAdsenseDto
     * @return
     *
     *
     */
    Page<AdAdsense> showAdAdsenseList(AdAdsenseDto adAdsenseDto);

    /**
     * 功能描述:新增/编辑
     * @param adAdsense
     * @return
     *
     *
     */
    ResultBean<Boolean> addAdAdsense(AdAdsense adAdsense);
    /**
     * 功能描述:软删除
     * @param ids
     * @return
     *
     *
     */
    ResultBean<Boolean> deleteAdAdsense(String ids);

    /**
     * 功能描述：批量删除
     * @param adAdsenseDto
     * @return
     *
     *
     */
    ResultBean<Boolean> deleteAdsenseList(AdAdsenseDto adAdsenseDto);


    /**
     * 功能描述:根据id获取广告位
     * @param id
     * @return
     *
     *
     */
    AdAdsense findAdAdsenseById(Long id);

    /**
     * 功能描述:修改广告位的状态
     * @param id
     * @return
     *
     *
     */
    ResultBean<Boolean> updateAdsenseStatus(Long id,String adsenseStatus);

    ResultBean<Integer> getAllAdsenseCount();
}
