package org.dromara.web.controller;

import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.web.domain.bo.TotalPatientBo;
import org.dromara.web.domain.vo.TotalPatientVo;
import org.dromara.web.service.TotalPatientService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Huanyi
 * @CreateTime: 2025-08-14
 * @Description:
 * @Version: 1.0
 */

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/total/patient")
public class TotalPatientController {

    private final TotalPatientService totalPatientService;

    @GetMapping("/list")
    public TableDataInfo<TotalPatientVo> listPage(TotalPatientBo bo, PageQuery pageQuery) {
        return totalPatientService.listPage(bo, pageQuery);
    }

}
