package com.zhongzheng.modules.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.modules.base.bo.ActivityAdvertisingLocationAddBo;
import com.zhongzheng.modules.base.bo.ActivityAdvertisingLocationEditBo;
import com.zhongzheng.modules.base.bo.ActivityAdvertisingLocationQueryBo;
import com.zhongzheng.modules.base.domain.ActivityAdvertisingLocation;
import com.zhongzheng.modules.base.vo.ActivityAdvertisingLocationVo;

import java.util.Collection;
import java.util.List;

/**
 * 广告位Service接口
 *
 * @author hjl
 * @date 2022-01-13
 */
public interface IActivityAdvertisingLocationService extends IService<ActivityAdvertisingLocation> {
	/**
	 * 查询单个
	 * @return
	 */
	ActivityAdvertisingLocationVo queryById(Long locationId);

	ActivityAdvertisingLocationVo queryByKey(String key);

	/**
	 * 查询列表
	 */
	List<ActivityAdvertisingLocationVo> queryList(ActivityAdvertisingLocationQueryBo bo);

	/**
	 * 根据新增业务对象插入广告位
	 * @param bo 广告位新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(ActivityAdvertisingLocationAddBo bo);

	/**
	 * 根据编辑业务对象修改广告位
	 * @param bo 广告位编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(ActivityAdvertisingLocationEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
