package org.jeecg.modules.oroqen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.oroqen.entity.OroqenOrder;

import java.util.List;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date: 2025-01-08
 * @Version: V1.0
 */
public interface IOroqenOrderService extends IService<OroqenOrder> {

    /**
     * 根据用户ID查询订单
     */
    List<OroqenOrder> getByUserId(String userId);

    /**
     * 根据订单状态查询订单
     */
    List<OroqenOrder> getByStatus(Integer status);

    /**
     * 创建订单
     */
    String createOrder(OroqenOrder order);

    /**
     * 更新订单状态
     */
    void updateOrderStatus(String orderId, Integer status);

    /**
     * 取消订单
     */
    void cancelOrder(String orderId);

    /**
     * 发货
     */
    void shipOrder(String orderId, String shippingCompany, String trackingNumber);

    /**
     * 确认收货
     */
    void confirmReceived(String orderId);
}