package thyyxxk.webserver.controller.executeItem;

import org.springframework.beans.factory.annotation.Autowired;
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 thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.executeItem.YzChangeData;
import thyyxxk.webserver.entity.executeItem.YzChangeParam;
import thyyxxk.webserver.service.executeItem.YzChangeService;
import thyyxxk.webserver.utils.ResultVoUtil;

import java.util.List;

/**
 * @Description:医嘱变更
 * @Author:lihong
 * @Date: 2023/11/6
 */
@RestController
@RequestMapping("/yzChange")
public class YzChangeController {
    @Autowired
    private YzChangeService service;

    @PostMapping("/queryYzChange")
    public ResultVo<List<YzChangeData>> queryYzChange(@RequestBody YzChangeParam param){
       return ResultVoUtil.success(service.queryYzChange(param));
    }

    @PostMapping("/saveYzChange")
    public ResultVo<String> saveYzChange(@RequestBody YzChangeParam param){
        return service.saveYzChange(param);
    }



}
