package com.xinelu.quartz.controller;

import com.xinelu.quartz.task.SubscribeTask;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 消息推送
 *
 * @author zh
 */
@RestController
@RequestMapping("/monitor/messageSubscription")
public class MessageSubscriptionController {

    @Resource
    private SubscribeTask subscribeTask;


    /**
     * 手动执行专病路径定时任务
     */
    @GetMapping("/signPatientManageRouteNode")
    public void signPatientManageRouteNode() {
        subscribeTask.automaticSendSignPatientManageRouteNodeTask();
    }
}
