zj
2024-06-03 4afe73cb84c5a609662b8b4ee20693de9b86b9a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"));
    }
 
}