package com.thhy.screen.modules.biz.bigscreen.controller; import com.thhy.general.common.BasicResult; import com.thhy.screen.modules.biz.bigscreen.service.ProduceListenService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.Map; @RestController @RequestMapping("display") public class DisplayController { @Autowired private ProduceListenService produceListenService; @GetMapping public BasicResult displayText(){ Map map = produceListenService.getDisplay(); return BasicResult.success(map); } }