套餐推广支付接口
This commit is contained in:
@@ -12,7 +12,6 @@ import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 套餐推广订单 实体类。
|
||||
@@ -121,6 +120,11 @@ public class PpPackageOrderDTO implements Serializable {
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
/**
|
||||
* 申请退款原因
|
||||
*/
|
||||
private String refundReason;
|
||||
|
||||
/**
|
||||
* 是否可以助力:0: 不可以 1: 可以
|
||||
*/
|
||||
|
||||
@@ -124,4 +124,9 @@ public class PpPackageOrder implements Serializable {
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
/**
|
||||
* 申请退款原因
|
||||
*/
|
||||
private String refundReason;
|
||||
|
||||
}
|
||||
|
||||
@@ -14,4 +14,6 @@ public interface PpHelpRecordService extends IService<PpHelpRecord> {
|
||||
boolean canHelp(Long userId, Long orderId);
|
||||
|
||||
boolean help(Long userId, Long orderId);
|
||||
|
||||
void removeHelpRecord(Long orderId);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public interface PpPackageOrderService extends IService<PpPackageOrder> {
|
||||
/**
|
||||
* 根据订单 Id 查询推广订单详情
|
||||
*/
|
||||
PpPackageOrderDTO getOrderDetailById(Long orderId);
|
||||
PpPackageOrderDTO getOrderDetailById(Long orderId, Long userId);
|
||||
|
||||
/**
|
||||
* 助力订单
|
||||
@@ -38,5 +38,30 @@ public interface PpPackageOrderService extends IService<PpPackageOrder> {
|
||||
/**
|
||||
* 取消订单
|
||||
*/
|
||||
Boolean cancelOrder(Long orderId);
|
||||
boolean cancelOrder(Long orderId);
|
||||
|
||||
/**
|
||||
* 申请退款
|
||||
*/
|
||||
boolean applyRefund(Long orderId, Long userId, String refundReason);
|
||||
|
||||
/**
|
||||
* 确认退款
|
||||
*/
|
||||
void confirmRefund(Long orderId, Long shopId);
|
||||
|
||||
/**
|
||||
* 取消退款
|
||||
*/
|
||||
boolean cancelRefund(Long orderId, Long userId, String refundReason);
|
||||
|
||||
/**
|
||||
* 支付成功
|
||||
*/
|
||||
void paySuccess(Long orderId, Long payOrderId);
|
||||
|
||||
/**
|
||||
* 核销
|
||||
*/
|
||||
boolean checkout(String verifyCode, Long shopId);
|
||||
}
|
||||
|
||||
@@ -24,4 +24,5 @@ public class CommonRefundDTO {
|
||||
|
||||
private String reason;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -40,6 +40,12 @@ public interface PaymentPayTypeEnum {
|
||||
* 拼团商品购买
|
||||
*/
|
||||
public static final String WARE = "ware";
|
||||
|
||||
/**
|
||||
* 套餐推广
|
||||
* package promotion
|
||||
*/
|
||||
public static final String PP = "pp";
|
||||
}
|
||||
|
||||
class PayType {
|
||||
|
||||
Reference in New Issue
Block a user