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.dto.AdMaterialDto;
import com.sptg.ad.api.entity.AdAdsense;
import com.sptg.ad.api.entity.AdContent;
import com.sptg.ad.api.entity.AdMaterial;
import com.sptg.common.core.beans.ResultBean;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: AdMaterialServiceInterface
 * package: com.sptg.ad.biz.security
 * description: 广告素材-服务层接口
 *
 *
 *
 */
public interface AdMaterialServiceInterface extends IService<AdMaterial> {
    /**
     * 功能描述:分页查询
     * @param adMaterialDto
     * @return
     *
     *
     */
    Page<AdMaterial> showAdMaterialList(AdMaterialDto adMaterialDto);

    /**
     * 功能描述:新增/编辑
     * @param adMaterial
     * @return
     *
     *
     */
    ResultBean<Boolean> addAdMaterial(AdMaterial adMaterial);
    /**
     * 功能描述:软删除
     * @param ids
     * @return
     *
     *
     */
    ResultBean<Boolean> deleteAdMaterial(String ids);

    /**
     * 功能描述：批量删除
     * @param adMaterialDto
     * @return
     *
     *
     */
    ResultBean<Boolean> deleteAdMaterialList(AdMaterialDto adMaterialDto);

    /**
     * 得到广告素材总数，用于生成素材编号
     * @return
     */
    int getAllMaterialCount();


    /**
     * 功能描述:根据id获取广告素材
     * @param id
     * @return
     *
     *
     */
    AdMaterial findAdMaterialById(Long id);




}
