package org.springblade.gateway.goods_gateway.service;

import org.springblade.payment.cmcc.request.CmccDectOrderRequest;
import org.springblade.payment.cmcc.request.CmccPlaceOrderRequest;
import org.springblade.sing.goods.entity.HelpGoods;
import org.springblade.sing.point.entity.CmccPointRecord;
import org.springblade.sing.user.entity.LoginUser;

/**
 * @Author: Silent
 * @Description
 * @Date: Created in 14:28 2021/11/10
 * @Modified By:
 */
public interface AppHelpGoodsService {
	void exchangeProps(CmccPointRecord cmccPointRecord, CmccDectOrderRequest cmccDectOrderRequest,Long productId);

	void cmccPointExchange(CmccPointRecord cmccPointRecord, CmccDectOrderRequest cmccDectOrderRequest, HelpGoods helpGoods, LoginUser loginUser);

	void userExchangeCountCheck(CmccPointRecord cmccPointRecord, HelpGoods helpGoods, LoginUser loginUser);

	Long userHelpGoodsExchangeCount(Long userId, Long helpGoodsId);

	void createPropsOrder(CmccPointRecord cmccPointRecord, CmccPlaceOrderRequest cmccPlaceOrderRequest);
}
