ConversationContentController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.kede.wechat.controller;
  2. import com.kede.common.controller.BaseController;
  3. import com.kede.wechat.service.ConversationContentService;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.RequestMethod;
  6. import org.springframework.web.bind.annotation.RestController;
  7. import javax.annotation.Resource;
  8. import java.util.List;
  9. import java.util.Map;
  10. @RestController
  11. @RequestMapping(value = "/api/admin/release")
  12. public class ConversationContentController extends BaseController {
  13. @Resource
  14. private ConversationContentService conversationContentService;
  15. /**
  16. * 获取会话内容
  17. * @return
  18. */
  19. @RequestMapping(value = "/getChatData", method = RequestMethod.GET)
  20. public Map<String, Object> getChatData()
  21. {
  22. Map<String, Object> map = conversationContentService.getChatData(null, null);
  23. return map;
  24. }
  25. /**
  26. * 获取access_token
  27. * @return
  28. */
  29. @RequestMapping(value = "/getAccessToken", method = RequestMethod.GET)
  30. public String getAccessToken()
  31. {
  32. return conversationContentService.getAccessToken();
  33. }
  34. /**
  35. * 获取开启成员列表
  36. *
  37. */
  38. @RequestMapping(value = "/getPermitUserList", method = RequestMethod.GET)
  39. public String getPermitUserList(){
  40. return conversationContentService.getPermitUserList();
  41. }
  42. }