package com.nq.controller; import com.nq.common.ServerResponse; import com.nq.common.lanage.LocaleMessageUtil; import com.nq.service.IStockService; import com.nq.service.RealTimeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import javax.annotation.Resource; @Controller @RequestMapping({"/api/realTime/"}) public class RealTimeController { @Autowired RealTimeService realTimeService; @Autowired IStockService stockService; @Resource private LocaleMessageUtil messageUtil; @RequestMapping({"findStock.do"}) @ResponseBody public ServerResponse findStock(@RequestParam(value = "stockCode", required = false) String stockCode) { // return this.realTimeService.findStock(stockCode); return ServerResponse.createBySuccess(messageUtil.getMessage("weather.is.nice")); } }