创建交易订单-单元测试

This commit is contained in:
ex_yang.li@ca-nio.com
2022-09-15 16:57:04 +08:00
parent 7bf20ec72e
commit 5889093a64
26 changed files with 566 additions and 41 deletions

View File

@@ -15,6 +15,6 @@ public interface PayOrderApi {
* @param reqDTO 创建请求
* @return 支付单编号
*/
Long createPayOrder(@Valid PayOrderDataCreateReqDTO reqDTO);
Long createPayOrder(@Valid PayOrderInfoCreateReqDTO reqDTO);
}

View File

@@ -14,7 +14,7 @@ import java.util.Date;
* @author LeeYan9
*/
@Data
public class PayOrderDataCreateReqDTO implements Serializable {
public class PayOrderInfoCreateReqDTO implements Serializable {
/**
* 应用编号

View File

@@ -0,0 +1,19 @@
package cn.iocoder.yudao.module.pay.api.order;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author LeeYan9
* @since 2022-09-06
*/
@Service
public class PayOrderApiImpl implements PayOrderApi {
@Override
@Transactional(rollbackFor = Exception.class)
public Long createPayOrder(PayOrderInfoCreateReqDTO reqDTO) {
return null;
}
}