package com.kede.wechat.controller; import com.kede.common.controller.BaseController; import com.kede.wechat.service.ConversationContentService; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; import java.util.Map; @RestController @RequestMapping(value = "/api/admin/release") public class ConversationContentController extends BaseController { @Resource private ConversationContentService conversationContentService; /** * 获取会话内容 * @return */ @RequestMapping(value = "/getChatData", method = RequestMethod.GET) public Map getChatData() { Map map = conversationContentService.getChatData(null, null); return map; } /** * 获取access_token * @return */ @RequestMapping(value = "/getAccessToken", method = RequestMethod.GET) public String getAccessToken() { return conversationContentService.getAccessToken(); } /** * 获取开启成员列表 * */ @RequestMapping(value = "/getPermitUserList", method = RequestMethod.GET) public String getPermitUserList(){ return conversationContentService.getPermitUserList(); } }