package com.jeesharp.business.modules.trade.api;

import com.jeesharp.business.modules.trade.vo.TradeOrderQueryVO;
import com.jeesharp.framework.pojo.query.PageRespVO;

import java.util.Map;

/**
 * 小程序统一订单中心只读 API；由 {@code business-order-application} 实现，网关仅依赖本接口。
 *
 * @author jeesharp
 * @since 2026-06-08
 */
public interface TradeOrderMiniProgramApi {

    PageRespVO<Map<String, Object>> listUnifiedOrdersForMiniProgram(String memberId, TradeOrderQueryVO query);

    Map<String, Object> getUnifiedOrderDetailForMiniProgram(String memberId, String id);
}
