@@ -44,15 +44,15 @@ public QuestionController(QuestionService service) {
4444 * @param id id
4545 * @return result
4646 */
47- @ ApiOperation (value = "查找问题" , notes = "查找问题" , httpMethod = "GET" , produces = MediaType . APPLICATION_JSON_UTF8_VALUE )
47+ @ ApiOperation (value = "查找问题" , notes = "查找问题" , httpMethod = "GET" )
4848 @ RequestMapping (value = "findById/{id}" , method = RequestMethod .GET )
4949 @ ApiImplicitParams ({
5050 @ ApiImplicitParam (name = "id" , value = "唯一id" , required = true , dataType = "Long" , paramType = "path" ),
5151 })
5252 public Result findUserById (@ PathVariable ("id" ) Long id ) {
5353 QuestionModel questionModel = service .findById (id );
5454 if (questionModel == null ) {
55- return new Result (CodeConst .NOT_FOUNT .getResultCode (), CodeConst .NOT_FOUNT .getMessage ());
55+ return new Result <> (CodeConst .NOT_FOUNT .getResultCode (), CodeConst .NOT_FOUNT .getMessage ());
5656 }
5757 return new Result <>(questionModel );
5858 }
@@ -62,7 +62,7 @@ public Result findUserById(@PathVariable("id") Long id) {
6262 *
6363 * @return result
6464 */
65- @ ApiOperation (value = "添加" , notes = "添加" , httpMethod = "POST" , produces = MediaType . APPLICATION_JSON_UTF8_VALUE )
65+ @ ApiOperation (value = "添加" , notes = "添加" , httpMethod = "POST" )
6666 @ RequestMapping (value = "findById/{id}" , method = RequestMethod .POST )
6767 public Result addQuestion (@ RequestBody QuestionModel questionModel ) {
6868 boolean add = service .add (questionModel );
0 commit comments