9c8c5ecd89ee2148efdb5c61af3566dbbef117c4.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package cn.com.goldenwater.dcproj.controller.keyreg;
  2. import cn.com.goldenwater.dcproj.model.ObjKeyPblms;
  3. import cn.com.goldenwater.dcproj.service.ObjKeyPblmsService;
  4. import cn.com.goldenwater.core.web.BaseController;
  5. import cn.com.goldenwater.core.web.BaseResponse;
  6. import io.swagger.annotations.Api;
  7. import io.swagger.annotations.ApiOperation;
  8. import io.swagger.annotations.ApiParam;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.PathVariable;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RequestMethod;
  13. import org.springframework.web.bind.annotation.RestController;
  14. /**
  15. * @author lune
  16. * @date 2019-4-28
  17. */
  18. @Api(value = "172 问题标准库管理", tags = "172 问题标准库管理")
  19. @RestController
  20. @RequestMapping("/obj/key/Pblms")
  21. public class ObjKeyPblmsController extends BaseController {
  22. @Autowired
  23. private ObjKeyPblmsService objKeyPblmsService;
  24. @ApiOperation(value = "根据ID获取172 问题标准库管理(单表)")
  25. @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  26. public BaseResponse<ObjKeyPblms> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  27. ObjKeyPblms objKeyPblms = objKeyPblmsService.get(id);
  28. return buildSuccessResponse(objKeyPblms);
  29. }
  30. }