消息通知功能

This commit is contained in:
TinyAnts
2022-09-05 19:01:54 +08:00
parent 252ff34bc5
commit 458b675ddb
5 changed files with 155 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package com.mdd.front.controller;
import com.mdd.common.core.AjaxResult;
import com.mdd.common.plugin.notice.NoticeDriver;
import com.mdd.common.validator.annotation.IDMust;
import com.mdd.front.service.IIndexService;
import org.springframework.validation.annotation.Validated;
@@ -10,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.LinkedHashMap;
import java.util.Map;
@RestController
@@ -27,6 +29,20 @@ public class IndexController {
*/
@GetMapping("/index")
public Object index() {
Map<String, Object> params = new LinkedHashMap<>();
params.put("scene", "101");
params.put("mobile", "12323");
params.put("params", new String[]{
"code:203",
"张三丰",
"张无忌",
"王二麻子",
"张富贵"
});
(new NoticeDriver()).handle(params);
Map<String, Object> detail = IIndexService.index();
return AjaxResult.success(detail);
}