1
zj
2026-03-23 efb07bcec37c49228d9760794f215c8549243ad2
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
package com.nq.controller;
 
import com.nq.common.ServerResponse;
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;
 
@Controller
@RequestMapping({"/api/realTime/"})
public class RealTimeController {
 
    @Autowired
    RealTimeService realTimeService;
 
    @Autowired
    IStockService stockService;
 
    @RequestMapping({"findStock.do"})
    @ResponseBody
    public ServerResponse findStock(@RequestParam(value = "stockCode", required = false) String stockCode) {
        return this.realTimeService.findStock(stockCode);
    }
 
}