package com.xinquan.order.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.xinquan.order.api.domain.Order;
|
import com.xinquan.order.domain.vo.ClientPlaceOrderVO;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 订单表 服务类
|
* </p>
|
*
|
* @author mitao
|
* @since 2024-08-21
|
*/
|
public interface OrderService extends IService<Order> {
|
|
/**
|
* 创建待支付订单
|
*
|
* @param targetId 目标id
|
* @param orderFrom 订单来源 1=冥想音频 2=课程
|
* @param receiverId 被赠送课程APP用户id
|
* @param balanceFlag 是否使用余额抵扣 1=是 2=否
|
* @param payType 支付方式 1=微信 2=支付宝
|
* @return 下单返回数据视图对象
|
* @see com.xinquan.order.domain.vo.ClientPlaceOrderVO
|
*/
|
ClientPlaceOrderVO placeOrder(Long targetId, Integer orderFrom, Long receiverId,Long orderId,
|
Integer balanceFlag, Integer payType,BigDecimal amount,Integer vipType,Integer type) throws Exception;
|
|
/**
|
* 根据类型获取已完成的订单列表
|
*
|
* @param userId 用户id
|
* @param orderFrom 订单来源
|
* @return
|
*/
|
List<Order> getOrderListByType(Long userId, Integer orderFrom);
|
|
String placeOrderApple(Long targetId, Integer orderFrom,
|
Long receiverId, Integer balanceFlag, BigDecimal amount,
|
Integer vipType,
|
String transactionIdentifier,
|
String originTransactionIdentifier,String receipt);
|
|
String refund(Long uid) throws Exception;
|
}
|