package com.pcloud.book.advertising.dao;

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

import java.util.List;

/**
 * Description 广告位出版书刊权限数据访问层接口
 * @author PENG
 * @date 2019/2/28
 */
public interface AdvertisingAgentPermissionDao extends BaseDao<AdvertisingAgentPermission> {

    /**
     * 获取出版社权限
     * @param agentId 出版社ID
     * @return
     */
    AdvertisingAgentPermission getByAgentId(Long agentId);

    /**
     * 获得关闭广告位的出版id
     * @return
     */
    List<Long> getCloseAgentId();
}
