修改swagger标签
This commit is contained in:
@ -5,14 +5,11 @@ import com.sczx.user.model.LoginRequest;
|
|||||||
import com.sczx.user.service.IUserService;
|
import com.sczx.user.service.IUserService;
|
||||||
import com.sczx.user.util.JwtUtil;
|
import com.sczx.user.util.JwtUtil;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.ResponseEntity;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@Api(value = "登录控制器", produces = "注册、登录")
|
@Api(value = "登录控制器", tags = "注册登录")
|
||||||
@RequestMapping("/auth")
|
@RequestMapping("/auth")
|
||||||
@RestController
|
@RestController
|
||||||
public class AuthController {
|
public class AuthController {
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@Api(value = "示例接口", produces = "用于演示 Springdoc 的接口")
|
@Api(value = "示例接口", tags = "示例演示")
|
||||||
public class DemoController {
|
public class DemoController {
|
||||||
@GetMapping("/test")
|
@GetMapping("/test")
|
||||||
@ApiOperation(value = "测试接口", notes = "返回一个测试字符串")
|
@ApiOperation(value = "测试接口", notes = "返回一个测试字符串")
|
||||||
|
|||||||
Reference in New Issue
Block a user