package cn.gistack.sm.notice.controller;
|
|
import cn.gistack.sm.notice.strategy.NoticeStrategyContext;
|
import lombok.AllArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* 通知信息控制层
|
* @author zhongrj
|
* @date 2023-05-29
|
*/
|
@RestController
|
@AllArgsConstructor
|
@RequestMapping("/notice/notice")
|
public class NoticeController {
|
|
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);
|
// }
|
|
|
}
|