package com.pcloud.book.advertising.dao;

import com.pcloud.book.advertising.entity.AdvertisingDetailFile;
import com.pcloud.common.core.dao.BaseDao;

import java.util.List;

/**
 * @描述：广告详情上传文件
 * @作者：zhuyajie
 * @创建时间：21:16 2019/8/2
 * @版本：1.0
 */
public interface AdvertisingDetailFileDao extends BaseDao<AdvertisingDetailFile> {

    /**
     * 根据广告id查询
     * @param adId
     * @return
     */
    public List<AdvertisingDetailFile> getByAdId(Long adId);

    /**
     * 删除文件
     * @param adId
     */
    void deleteByAdId(Long adId);
}
