package com.sonic.lion.service;

import com.sonic.common.rpc.Result;
import com.sonic.lion.domain.req.CheckoutReq;
import com.sonic.lion.domain.req.TradeQueryReq;
import com.sonic.lion.domain.resp.CheckoutResp;
import com.sonic.lion.domain.resp.QueryResp;

public interface CashierService {

    /**
     * 结账
     * @param userId
     * @param req
     */
    CheckoutResp checkout(Long userId, CheckoutReq req);

    /**
     * 结账结果查询
     * @param req
     * @return
     */
    Result<QueryResp> query(TradeQueryReq req);
}
