package com.lottery.type.service;

import com.lottery.type.entity.TdLottery;
import com.lottery.type.param.TdLotteryPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 * 彩种 服务类
 *
 * @author fxf
 * @since 2020-09-07
 */
public interface TdLotteryService extends BaseService<TdLottery> {

    /**
     * 保存
     *
     * @param tdLottery
     * @return
     * @throws Exception
     */
    boolean saveTdLottery(TdLottery tdLottery) throws Exception;

    /**
     * 修改
     *
     * @param tdLottery
     * @return
     * @throws Exception
     */
    boolean updateTdLottery(TdLottery tdLottery) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteTdLottery(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param tdLotteryQueryParam
     * @return
     * @throws Exception
     */
    Paging<TdLottery> getTdLotteryPageList(TdLotteryPageParam tdLotteryPageParam) throws Exception;

}
