package com.ks.lucky.remote.service.activity;
|
|
import com.ks.lucky.exception.LuckySponsorException;
|
import com.ks.lucky.pojo.DO.LuckySponsors;
|
|
import java.util.List;
|
|
/**
|
* 赞助商服务
|
*/
|
public interface LuckySponsorService {
|
|
|
/**
|
* 获取赞助商列表
|
*
|
* @param key
|
* @param state
|
* @param page
|
* @param count
|
* @return
|
*/
|
public List<LuckySponsors> getSponsorList(String key, Integer state, int page, int count);
|
|
|
/**
|
* 广告计数
|
*
|
* @param key
|
* @param state
|
* @return
|
*/
|
public long countSponsor(String key, Integer state);
|
|
|
/**
|
* 获取广告详情
|
*
|
* @param id
|
* @return
|
*/
|
public LuckySponsors getSponsorDetail(String id);
|
|
|
/**
|
* 批量获取广告详情
|
*
|
* @param idList
|
* @return
|
*/
|
public List<LuckySponsors> getSponsorDetailList(List<String> idList);
|
|
/**
|
* 添加赞助商
|
*
|
* @param sponsor
|
* @throws LuckySponsorException
|
*/
|
public void addSponsor(LuckySponsors sponsor) throws LuckySponsorException;
|
|
|
/**
|
* 更新赞助商
|
*
|
* @param sponsor
|
* @throws LuckySponsorException
|
*/
|
public void updateSponsor(LuckySponsors sponsor) throws LuckySponsorException;
|
|
|
/**
|
* 删除广告
|
*
|
* @param id
|
*/
|
public void delete(String id);
|
|
/**
|
* 批量删除
|
*
|
* @param idList
|
*/
|
public void delete(List<String> idList);
|
|
}
|