package com.yeshi.buwan.service.inter.live;
|
|
import com.yeshi.buwan.domain.live.TVLiveChannel;
|
import com.yeshi.buwan.exception.ParamsException;
|
|
import javax.validation.Valid;
|
import java.util.List;
|
|
public interface TVLiveChannelService {
|
|
/**
|
* 保存频道
|
*
|
* @param channel
|
* @throws ParamsException
|
*/
|
public TVLiveChannel save(@Valid TVLiveChannel channel) throws ParamsException;
|
|
|
public TVLiveChannel addChannel(@Valid TVLiveChannel channel) throws ParamsException,Exception;
|
|
public void delete(String id);
|
|
public void update(TVLiveChannel channel);
|
|
public List<TVLiveChannel> list(String name, Integer state, int page, int pageSize);
|
|
public long count(String name, Integer state);
|
|
public TVLiveChannel selectByPrimaryKey(String id);
|
|
public void savePrograms(String id, List<TVLiveChannel.TVLiveProgram> tvLivePrograms);
|
|
|
}
|