修改swagger标签

This commit is contained in:
2025-07-12 23:14:15 +08:00
parent 9c21f3ef54
commit 49b4add58d
2 changed files with 2 additions and 5 deletions

View File

@ -5,14 +5,11 @@ import com.sczx.user.model.LoginRequest;
import com.sczx.user.service.IUserService;
import com.sczx.user.util.JwtUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@Api(value = "登录控制器", produces = "注册登录")
@Api(value = "登录控制器", tags = "注册登录")
@RequestMapping("/auth")
@RestController
public class AuthController {

View File

@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(value = "示例接口", produces = "用于演示 Springdoc 的接口")
@Api(value = "示例接口", tags = "示例演示")
public class DemoController {
@GetMapping("/test")
@ApiOperation(value = "测试接口", notes = "返回一个测试字符串")