package com.emoon.chat.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.emoon.chat.domain.MedicalRecDo;
import com.emoon.chat.service.IMedicalRecService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author destiny
 * @description:
 * @date 2025/10/14 23:49
 */
@Slf4j
@RestController
@RequestMapping("/medicalRec")
@RequiredArgsConstructor
public class MedicalRecController {

    private final IMedicalRecService medicalRecService;

    @SaIgnore
    @PostMapping("/list")
    public List<MedicalRecDo> medicalRecDoList(@RequestBody MedicalRecDo map) {
        return medicalRecService.queryList(map);
    }
}
