package com.nq.controller.backend; import com.nq.common.ServerResponse; import com.nq.pojo.Stock; import com.nq.pojo.StockAI; import com.nq.service.IStockAiService; 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.servlet.http.HttpServletRequest; /** * 后台AI产品api */ @Controller @RequestMapping({"/admin/stockAi/"}) public class AdminStockAiController { @Autowired IStockAiService stockAiService; /** * 获取ai交易产品列表 * @return */ @RequestMapping("getStockAiList.do") @ResponseBody public ServerResponse getStockAiList(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "5") int pageSize, @RequestParam(value = "stockType") String stockType, @RequestParam(value = "status") String status, @RequestParam(value = "name") String name) { return stockAiService.getAdminStockAiList(pageNum, pageSize, stockType, status, name); } //修改票信息 @RequestMapping({"editStockAi.do"}) @ResponseBody public ServerResponse editStockAi(StockAI model) { return stockAiService.editStockAi(model); } }