|
@@ -1,21 +0,0 @@
|
|
|
-package com.fs.app.controller.cid;
|
|
|
|
|
-
|
|
|
|
|
-import com.fs.wxcid.dto.common.ApiResponse;
|
|
|
|
|
-import com.fs.wxcid.dto.message.SendTextMessageRequest;
|
|
|
|
|
-import com.fs.wxcid.service.MessageService;
|
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
|
-
|
|
|
|
|
-@RequestMapping("/cid/message")
|
|
|
|
|
-@RestController
|
|
|
|
|
-public class MessageController {
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private MessageService messageService;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- //发送文本消息
|
|
|
|
|
- @PostMapping("/send-text")
|
|
|
|
|
- public ApiResponse sendText(@RequestParam String key, @RequestBody SendTextMessageRequest req) {
|
|
|
|
|
- return messageService.sendTextMessage(key, req);
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|