|
@@ -3,6 +3,7 @@ package com.uas.platform.b2c.common.message.controller;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
import com.alibaba.fastjson.parser.Feature;
|
|
import com.alibaba.fastjson.parser.Feature;
|
|
|
|
|
+import com.uas.platform.b2c.common.account.model.User;
|
|
|
import com.uas.platform.b2c.common.message.service.InternalMessageService;
|
|
import com.uas.platform.b2c.common.message.service.InternalMessageService;
|
|
|
import com.uas.platform.b2c.core.config.MessageConf;
|
|
import com.uas.platform.b2c.core.config.MessageConf;
|
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
import com.uas.platform.b2c.core.support.SystemSession;
|
|
@@ -10,6 +11,7 @@ import com.uas.platform.core.model.PageParams;
|
|
|
import com.uas.platform.core.model.Status;
|
|
import com.uas.platform.core.model.Status;
|
|
|
import com.uas.platform.core.util.HttpUtil;
|
|
import com.uas.platform.core.util.HttpUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
@@ -30,6 +32,9 @@ public class InternalMessageController {
|
|
|
|
|
|
|
|
private final InternalMessageService internalMessageService;
|
|
private final InternalMessageService internalMessageService;
|
|
|
|
|
|
|
|
|
|
+ @Value("#{message.messagePublicServiceDevUrl}")
|
|
|
|
|
+ private String messageServiceUrl;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
public InternalMessageController(InternalMessageService internalMessageService) {
|
|
public InternalMessageController(InternalMessageService internalMessageService) {
|
|
|
this.internalMessageService = internalMessageService;
|
|
this.internalMessageService = internalMessageService;
|
|
@@ -47,6 +52,19 @@ public class InternalMessageController {
|
|
|
return map;
|
|
return map;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取url
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/getUrl",method = RequestMethod.GET)
|
|
|
|
|
+ public ModelMap getUrl() {
|
|
|
|
|
+ ModelMap map = new ModelMap();
|
|
|
|
|
+ User user = SystemSession.getUser();
|
|
|
|
|
+ map.put("url", messageServiceUrl);
|
|
|
|
|
+ map.put("userUU", user.getUserUU());
|
|
|
|
|
+ map.put("enUU", user.getEnterprise().getUu());
|
|
|
|
|
+ return map;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/* *//**
|
|
/* *//**
|
|
|
* 分页获取消息 (用户)
|
|
* 分页获取消息 (用户)
|