package com.yolo.keyboard.service.userpurchaserecords;

import java.util.*;
import jakarta.validation.*;
import com.yolo.keyboard.controller.admin.userpurchaserecords.vo.*;
import com.yolo.keyboard.dal.dataobject.userpurchaserecords.KeyboardUserPurchaseRecordsDO;
import com.yolo.keyboard.framework.common.pojo.PageResult;
import com.yolo.keyboard.framework.common.pojo.PageParam;

/**
 * 用户内购记录 Service 接口
 *
 * @author ziin
 */
public interface KeyboardUserPurchaseRecordsService {

    /**
     * 创建用户内购记录
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Integer createUserPurchaseRecords(@Valid KeyboardUserPurchaseRecordsSaveReqVO createReqVO);

    /**
     * 更新用户内购记录
     *
     * @param updateReqVO 更新信息
     */
    void updateUserPurchaseRecords(@Valid KeyboardUserPurchaseRecordsSaveReqVO updateReqVO);

    /**
     * 删除用户内购记录
     *
     * @param id 编号
     */
    void deleteUserPurchaseRecords(Integer id);

    /**
    * 批量删除用户内购记录
    *
    * @param ids 编号
    */
    void deleteUserPurchaseRecordsListByIds(List<Integer> ids);

    /**
     * 获得用户内购记录
     *
     * @param id 编号
     * @return 用户内购记录
     */
    KeyboardUserPurchaseRecordsDO getUserPurchaseRecords(Integer id);

    /**
     * 获得用户内购记录分页
     *
     * @param pageReqVO 分页查询
     * @return 用户内购记录分页
     */
    PageResult<KeyboardUserPurchaseRecordsDO> getUserPurchaseRecordsPage(KeyboardUserPurchaseRecordsPageReqVO pageReqVO);

}