|
@@ -1,6 +1,7 @@
|
|
|
package com.citu.module.menduner.im.controller.app;
|
|
|
|
|
|
import com.citu.framework.common.pojo.CommonResult;
|
|
|
+import com.citu.framework.security.core.annotations.PreAuthenticated;
|
|
|
import com.citu.module.menduner.im.controller.app.base.wukong.ConversationSyncReqVo;
|
|
|
import com.citu.module.menduner.im.controller.app.base.wukong.ConversationsDeleteReqVo;
|
|
|
import com.citu.module.menduner.im.service.wukong.WuKongSessionService;
|
|
@@ -30,6 +31,7 @@ public class WuKongSessionController {
|
|
|
* @param reqVo
|
|
|
* @return CommonResult
|
|
|
*/
|
|
|
+ @PreAuthenticated
|
|
|
@PostMapping("/conversation/sync")
|
|
|
public CommonResult conversatioSync(@RequestBody ConversationSyncReqVo reqVo){
|
|
|
return service.conversatioSync(reqVo);
|
|
@@ -37,12 +39,13 @@ public class WuKongSessionController {
|
|
|
|
|
|
/**
|
|
|
* @eo.name 删除最近回话
|
|
|
- * @eo.url /conversation/sync
|
|
|
+ * @eo.url /conversation/delete
|
|
|
* @eo.method post
|
|
|
* @eo.request-type json
|
|
|
* @param reqVo
|
|
|
* @return CommonResult
|
|
|
*/
|
|
|
+ @PreAuthenticated
|
|
|
@PostMapping("/conversation/delete")
|
|
|
public CommonResult conversatioSyncDelete(@RequestBody ConversationsDeleteReqVo reqVo){
|
|
|
return service.conversatioSyncDelete(reqVo);
|