package com.ruoyi.novel.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.novel.domain.ReadingRecord;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/history")
public class ReadingHistoryController {

    @PostMapping("/record")
    public AjaxResult recordReading(@RequestBody ReadingRecord record) {
        // 记录用户阅读位置
        return null;
    }

    @GetMapping("/last/{userId}/{novelId}")
    public AjaxResult getLastPosition(
            @PathVariable Long userId,
            @PathVariable Long novelId) {
        // 获取最后阅读位置
        return null;
    }
}
