|
|
@@ -4,6 +4,8 @@ import com.usoftchina.saas.base.Result;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
/**
|
|
|
* @author yingp
|
|
|
@@ -19,8 +21,9 @@ public interface SocketMessageApi {
|
|
|
* @param message
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping("/message/clients/{clientId}")
|
|
|
- Result sendToClient(@PathVariable("clientId") String clientId, String dest, String message);
|
|
|
+ @RequestMapping("/message/clients/{clientId}")
|
|
|
+ Result sendToClient(@PathVariable("clientId") String clientId,
|
|
|
+ @RequestParam(value = "dest", required = false) String dest, String message);
|
|
|
|
|
|
/**
|
|
|
* 广播信息
|
|
|
@@ -29,6 +32,6 @@ public interface SocketMessageApi {
|
|
|
* @param message
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping("/message/clients")
|
|
|
- Result sendToAllClients(String dest, String message);
|
|
|
+ @RequestMapping("/message/clients")
|
|
|
+ Result sendToAllClients(@RequestParam(value = "dest", required = false) String dest, String message);
|
|
|
}
|