package com.ruoyi.account.controller.financial; import com.ruoyi.account.bean.dto.financial.FinDetailLedgerQueryDto; import com.ruoyi.account.bean.dto.financial.FinLedgerQueryDto; import com.ruoyi.account.bean.vo.financial.FinLedgerRowVo; import com.ruoyi.account.service.financial.FinLedgerService; import com.ruoyi.framework.web.domain.R; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * 科目总账/明细账控制器。 */ @RestController @RequestMapping("/financial/ledger") @RequiredArgsConstructor @Tag(name = "财务管理-科目账") public class FinLedgerController { private final FinLedgerService finLedgerService; @GetMapping("/general") @Operation(summary = "科目总账查询") public R> general(FinLedgerQueryDto queryDto) { return R.ok(finLedgerService.queryGeneralLedger(queryDto)); } @GetMapping("/detail") @Operation(summary = "科目明细账查询") public R> detail(FinDetailLedgerQueryDto queryDto) { return R.ok(finLedgerService.queryDetailLedger(queryDto)); } }