| 12345678910111213141516171819202122232425262728293031323334353637 |
- package cn.com.goldenwater.dcproj.controller.keyreg;
- import cn.com.goldenwater.dcproj.model.ObjKeyPblms;
- import cn.com.goldenwater.dcproj.service.ObjKeyPblmsService;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * @author lune
- * @date 2019-4-28
- */
- @Api(value = "172 问题标准库管理", tags = "172 问题标准库管理")
- @RestController
- @RequestMapping("/obj/key/Pblms")
- public class ObjKeyPblmsController extends BaseController {
- @Autowired
- private ObjKeyPblmsService objKeyPblmsService;
- @ApiOperation(value = "根据ID获取172 问题标准库管理(单表)")
- @RequestMapping(value = "/{id}", method = RequestMethod.GET)
- public BaseResponse<ObjKeyPblms> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
- ObjKeyPblms objKeyPblms = objKeyPblmsService.get(id);
- return buildSuccessResponse(objKeyPblms);
- }
- }
|