package com.ruoyi.novel.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

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

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

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