diff --git a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java b/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java index 2eb38757f8057a4b53d67e08d55e86a1730c60a3..3a54ae5683d027d0106ef1d8d7ee6eb024e17190 100644 --- a/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java +++ b/apidoc-springmvc/src/test/java/com/kim/apidoc/example/spring/advanced/KimUserController.java @@ -2,15 +2,16 @@ package com.kim.apidoc.example.spring.advanced; import com.kim.apidoc.example.annotation.KimController; import com.kim.apidoc.example.common.Query; -import com.kim.apidoc.example.common.ResultData; import com.kim.apidoc.example.common.User; +import com.kim.apidoc.example.common.ResultData; +import com.kim.apidoc.example.common.ResultData; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; /** - * kim接口 + * The type Kim user controller. * * @author duanledexianxianxian * @version 1.0.0 @@ -22,26 +23,25 @@ import org.springframework.web.bind.annotation.RequestMapping; @RequestMapping("/api/v1") public class KimUserController { + /** - * 用户详情信息 - * 主动根据id获取用户的信息 + * Detail user. * * @param id the id * @param query the query - * @return result data + * @return 用户对象 user */ @GetMapping(value = "/{id}") - public ResultData detail(@PathVariable String id, Query query) { + public User detail(@PathVariable String id, Query query) { User user = new User(); - return ResultData.ok(user); + return user; } /** * Add integer. * - * @return the integer - * @return + * @return integer integer */ @PostMapping public Integer add() {