package org.dromara.web.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
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.HospitalRecordBo;
import org.dromara.web.domain.bo.NutritionDiagnosisBo;
import org.dromara.web.domain.vo.HospitalRecordVo;
import org.dromara.web.domain.vo.NutritionDiagnosisVo;
import org.dromara.web.service.IHospitalRecordService;
import org.dromara.web.service.INutritionDiagnosisService;
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;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/patients/hospitalRecord")
public class HospitalRecordController {
    private final IHospitalRecordService hospitalRecordService;

    /**
     * 查询就诊记录信息
     */
    @SaCheckPermission("patients:hospitalRecord:list")
    @GetMapping("/list")
    public HospitalRecordVo list(HospitalRecordBo bo) {
        return hospitalRecordService.queryHospitalRecordList(bo );
    }
}
