From ac2eb0d4b974b74b5b97028fb3365f111ccb278f Mon Sep 17 00:00:00 2001 From: duanledexianxianxian Date: Thu, 9 Apr 2020 20:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90markdown=20api=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/advanced/KimUserController.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 2eb3875..3a54ae5 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() { -- GitLab