| | |
| | | |
| | | private final NoticeStrategyContext applicationContext; |
| | | |
| | | // /** |
| | | // * 调用任务通知 |
| | | // * @param type 策略分类 |
| | | // * @param name 任务名称 |
| | | // * @param content 内容(可以不传) |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/toNotice") |
| | | // public Object toNotice(String type,String name,String content){ |
| | | // return applicationContext.doSomethingByStrategy(name, content, type); |
| | | // } |
| | | /** |
| | | * 调用任务通知 |
| | | * @param type 策略分类 |
| | | * @param name 任务名称 |
| | | * @param content 内容(可以不传) |
| | | * @return |
| | | */ |
| | | @GetMapping("/toNotice") |
| | | public Object toNotice(String type,String name,String content){ |
| | | return applicationContext.doSomethingByStrategy(name, content, type); |
| | | } |
| | | |
| | | |
| | | } |