package thyyxxk.webserver.controller.heliyongyao;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.config.auth.PassToken;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.zhuyuanyisheng.yizhuluru.XinZhenYiZhu;
import thyyxxk.webserver.service.heliyongyao.RationalUseServer;

/**
 * <p>
 * 描述： 合理用药接口
 * </p>
 *
 * @author xc
 * @date 2022-03-29 11:25
 */
@RestController
@RequestMapping("/RationalUse")
public class RationalUseController {

    private final RationalUseServer server;

    public RationalUseController(RationalUseServer server) {
        this.server = server;
    }

    @RequestMapping("/jiaoYan")
    @PassToken
    public ResultVo<JSONObject> jiaoYan(@RequestBody XinZhenYiZhu param) {
        return server.jiaoYan(param);
    }

}
