29 lines
738 B
Java
29 lines
738 B
Java
package top.baogutang.music.service;
|
||
|
||
import com.baomidou.mybatisplus.extension.service.IService;
|
||
import top.baogutang.music.dao.entity.OrderEntity;
|
||
import top.baogutang.music.enums.PayChannel;
|
||
|
||
import java.math.BigDecimal;
|
||
|
||
/**
|
||
*
|
||
* @description:
|
||
*
|
||
* @author: N1KO
|
||
* @date: 2024/12/25 : 15:27
|
||
*/
|
||
public interface IOrderService extends IService<OrderEntity> {
|
||
|
||
OrderEntity createOrder(Long userId, PayChannel payChannel, BigDecimal amount);
|
||
|
||
/**
|
||
* 查询用户当前最新一笔订单
|
||
*
|
||
* @param userId 用户ID
|
||
* @param orderId 订单ID(精确查询,可为 null 则查最新一笔)
|
||
* @return 订单实体,不存在返回 null
|
||
*/
|
||
OrderEntity queryOrder(Long userId, Long orderId);
|
||
}
|