mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-09-07 07:07:57 +08:00
消息通知功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user