package com.ruoyi.web.modules.account.facade.impl;

import org.springframework.stereotype.Service;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.web.modules.account.dto.MemberOrderQueryDTO;
import com.ruoyi.web.modules.account.facade.IOrderFacade;

/**
 * 订单 Facade 默认实现（订单模块未建时返回空列表）
 */
@Service
public class DefaultOrderFacade implements IOrderFacade
{
    @Override
    public TableDataInfo pageOrdersByMember(Long memberId, MemberOrderQueryDTO query)
    {
        TableDataInfo data = new TableDataInfo();
        data.setCode(200);
        data.setMsg("查询成功");
        data.setRows(java.util.Collections.emptyList());
        data.setTotal(0L);
        return data;
    }

    @Override
    public Object getOrderDetail(Long memberId, Long orderId)
    {
        throw new ServiceException("订单模块未接入");
    }
}
