package com.cool.store.controller.webb;

import com.cool.store.request.tp.TpScoreJournalQueryRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.tp.TpScoreJournalService;
import com.cool.store.vo.tp.TpScoreJournalVO;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 十二分制-积分流水 前端控制器
 * </p>
 *
 * @author wangff
 * @since 2025/11/10
 */
@Api(tags = "十二分制-积分流水")
@RestController
@RequestMapping("/pc/tp/journal")
@RequiredArgsConstructor
public class TpScoreJournalController {
    private final TpScoreJournalService tpScoreJournalService;

    @ApiOperation("积分流水分页查询")
    @PostMapping("/page")
    public ResponseResult<PageInfo<TpScoreJournalVO>> getPage(@RequestBody TpScoreJournalQueryRequest request) {
        return ResponseResult.success(tpScoreJournalService.getPage(request));
    }
}
