package com.duiba.tuia.youtui.web.service;

import cn.com.duiba.tuia.activity.center.api.dto.PrizeDto;
import cn.com.duiba.tuia.activity.center.api.dto.RspTakeCoupon;

import java.util.List;

/**
 * Created by Administrator on 2017/6/5.
 */
public interface PrizeService {
    /* *
         * @Description: obtainPrize 请求奖品库奖品
         *
         * @Param: [orderId, prizeId]
         * @Return: cn.com.duiba.tuia.activity.center.api.dto.PrizeDto
         * @throws:
         * @author: youhaijun
         * @Date:   2017/6/5
         */
    PrizeDto obtainPrize(String orderId, Long prizeId, Integer num);

    PrizeDto selectPrizeById(Long prizeId);

    /**
     * 获取券码
     * @param prizeId 券奖品id
     * @return RspTakeCoupon
     */
    RspTakeCoupon takeCoupon(Long prizeId);

    /**
     * 批量获取奖品
     *
     * @param ids
     * @return
     */
    List<PrizeDto> selectByIds(List<Long> ids);

}
