package cn.pluss.platform.officialGoods.exchange;

import cn.pluss.platform.api.Result;
import cn.pluss.platform.entity.OfficialGoods;
import cn.pluss.platform.entity.OfficialGoodsExchange;
import cn.pluss.platform.entity.UserApp;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Djh
 * @since 2020-10-09
 */
public interface OfficialGoodsExchangeService extends IService<OfficialGoodsExchange> {
    /**
     * 兑换商品
     * @param goods
     * @param app
     * @return
     */
    Result exchange(OfficialGoods goods, UserApp app,Integer aid);

    /**
     * 虚拟商品
     * @param goods
     * @param userApp
     * @return
     */
    Result<Object> exchange(OfficialGoods goods, UserApp userApp);
}
