/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.user.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.Order;
import com.yami.shop.user.comment.dto.ScoreOrderMergerDto;

/**
 * @author LGH
 * @date 2019-08-27 17:55:57
 */
public interface ScoreOrderService extends IService<Order> {



    /**
     * 将确认订单的信息放入缓存
     */
    ScoreOrderMergerDto putConfirmScoreOrderCache(String userId, ScoreOrderMergerDto scoreOrderMergerDto);


    /**
     * 获取缓存中确认订单的信息
     */
    ScoreOrderMergerDto getConfirmScoreOrderCache(String userId);

    /**
     * 移除缓存中确认订单的信息
     */
    void removeConfirmScoreOrderCache(String userId);

    /**
     * 提交订单
     */
    Order submit(String userId, ScoreOrderMergerDto hadConfirmOrder);

}
