package com.m2pool.lease.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.m2pool.lease.dto.PageResult;
import com.m2pool.lease.dto.Result;
import com.m2pool.lease.dto.UserOwnedProductDto;
import com.m2pool.lease.entity.LeaseOrderItem;
import com.m2pool.lease.entity.LeasePaymentRecord;
import com.m2pool.lease.entity.LeaseUserOwnedProduct;
import com.m2pool.lease.vo.BaseVo;
import com.m2pool.lease.vo.UserOwnedProductVo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 用户拥有商品详情表 服务类
 * </p>
 *
 * @author yyb
 * @since 2025-07-23
 */
public interface LeaseUserOwnedProductService extends IService<LeaseUserOwnedProduct> {

    /**
     * 用户查询当前自身已购商品列表
     *
     * @param userOwnedProductVo
     * @return
     */
    PageResult<UserOwnedProductDto> getOwnedList(UserOwnedProductVo userOwnedProductVo);


    /**
     * 根据id查询当前自身已购商品详情
     *
     * @param baseVo
     * @return
     */
    Result<UserOwnedProductDto> getOwnedById(BaseVo baseVo);

    /**
     * 支付验证成功后去修改订单等信息
     * @param leaseOrderItems
     * @return
     */
    boolean afterPaySuccessTodoSomeEvent(List<LeaseOrderItem> leaseOrderItems);
}
