mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 09:48:43 +08:00 
			
		
		
		
	调整 controller url
This commit is contained in:
		| @@ -37,20 +37,20 @@ public class ChatConversationController { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Operation(summary = "获取 - 获取对话") |     @Operation(summary = "获取 - 获取对话") | ||||||
|     @GetMapping("/getConversation") |     @GetMapping("/{id}") | ||||||
|     public CommonResult<ChatConversationRes> getConversation(@RequestParam("id") Long id) { |     public CommonResult<ChatConversationRes> getConversation(@PathVariable("id") Long id) { | ||||||
|         return CommonResult.success(chatConversationService.getConversation(id)); |         return CommonResult.success(chatConversationService.getConversation(id)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Operation(summary = "获取 - 获取对话list") |     @Operation(summary = "获取 - 获取对话list") | ||||||
|     @GetMapping("/listConversation") |     @GetMapping("/list") | ||||||
|     public CommonResult<List<ChatConversationRes>> listConversation(@ModelAttribute @Validated ChatConversationListReq req) { |     public CommonResult<List<ChatConversationRes>> listConversation(@ModelAttribute @Validated ChatConversationListReq req) { | ||||||
|         return CommonResult.success(chatConversationService.listConversation(req)); |         return CommonResult.success(chatConversationService.listConversation(req)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     @Operation(summary = "删除") |     @Operation(summary = "删除") | ||||||
|     @DeleteMapping("/listConversation") |     @DeleteMapping("/{id}") | ||||||
|     public CommonResult<Void> delete(@RequestParam("id") Long id) { |     public CommonResult<Void> delete(@PathVariable("id") Long id) { | ||||||
|         chatConversationService.delete(id); |         chatConversationService.delete(id); | ||||||
|         return CommonResult.success(null); |         return CommonResult.success(null); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince