baogutang-music/src/main/java/top/baogutang/music/service/IOrderService.java
2026-03-17 14:20:30 +08:00

29 lines
738 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}