package com.kxs.product.biz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kxs.common.core.util.R;
import com.kxs.product.api.dto.kxsapp.ticket.TicketTransferDTO;
import com.kxs.product.api.dto.kxsapp.ticket.TicketTransferQuery;
import com.kxs.product.api.model.KxsTicketTransfer;
import com.kxs.product.api.vo.kxsapp.ticket.TicketTransferDetailVO;
import com.kxs.product.api.vo.kxsapp.ticket.TicketTransferListVO;

/**
 * 客小爽券码划拨记录表(KxsTicketTransfer)表服务接口
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
public interface KxsTicketTransferService extends IService<KxsTicketTransfer> {

    /**
     * 兑换券划拨
     *
     * @param param 参数
     * @return {@link R}
     */
    R ticketTransfer(TicketTransferDTO param);

    /**
     * 分页列表
     *
     * @param page         页
     * @param transferType
     * @return {@link IPage}<{@link TicketTransferListVO}>
     */
    IPage<TicketTransferListVO> getByPage(Page<TicketTransferListVO> page, TicketTransferQuery transferType);

    /**
     * 划拨详情
     *
     * @param id 编号
     * @return {@link TicketTransferDetailVO}
     */
    TicketTransferDetailVO getByData(Integer id);
}

