package com.red.circle.order.infra.database.rds.service.order;

import com.red.circle.framework.mybatis.service.BaseService;
import com.red.circle.order.infra.database.rds.entity.order.OrderGoogleVoidedPurchase;

/**
 * <p>
 * google 购买退款订单 服务类.
 * </p>
 *
 * @author pengliang
 * @since 2021-05-24
 */
public interface OrderGoogleVoidedPurchaseService extends BaseService<OrderGoogleVoidedPurchase> {

  /**
   * 是否存在订单.
   *
   * @param orderId 订单id
   * @return true 存在 ，false 不存在
   */
  boolean existsOrder(String orderId);

  /**
   * 几天内用户是否存在退款订单处理.
   */
  boolean existsOrder(Long userId, Integer withinDays);

}
