package com.web.kanban.controller;
|
|
import com.app.base.control.WebController;
|
import com.app.base.data.ApiResponseResult;
|
import com.web.kanban.service.HyKanbanService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(description = "合壹看板")
|
@CrossOrigin
|
@ControllerAdvice
|
@Controller
|
@RequestMapping(value = "/hyKanban")
|
public class HyKanbanController extends WebController {
|
|
@Autowired
|
private HyKanbanService hyKanbanService;
|
|
@ApiOperation(value = "根据code获取配置样式信息", notes = "根据code获取配置样式信息")
|
@RequestMapping(value = "/getProductionData", method = RequestMethod.GET)
|
@ResponseBody
|
public ApiResponseResult getProductionData(String code){
|
try{
|
return hyKanbanService.getProductionData();
|
}catch (Exception e){
|
e.printStackTrace();
|
logger.error("根据code获取配置样式信息失败!", e);
|
return ApiResponseResult.failure("根据code获取配置样式信息失败!");
|
}
|
}
|
|
|
}
|