删除没有必要的接口

This commit is contained in:
suyiiyii 2024-08-24 22:56:55 +08:00
parent dd88d17dd3
commit a3118bd8b6
2 changed files with 0 additions and 41 deletions

View File

@ -1,33 +0,0 @@
package top.suyiiyii.sims.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import top.suyiiyii.sims.common.AuthAccess;
import top.suyiiyii.sims.common.Result;
import java.util.List;
@RestController
public class HelloController {
@AuthAccess(allowRoles = {"guest"})
@GetMapping("/hello")
public String hello(String username) {
return "Hello " + username;
}
@AuthAccess(allowRoles = {"guest"})
@PostMapping("/hello")
public List<String> helloPost(String username, Integer age) {
List<String> list = List.of(username, age.toString());
return list;
}
@AuthAccess(allowRoles = {"guest"})
@GetMapping("/helloResult")
public Result healthz() {
return Result.success("Hello World");
}
}

View File

@ -38,14 +38,6 @@ public class UserController {
RoleService roleService;
@AuthAccess(allowRoles = {"guest"})
@GetMapping("/")
public Result hello() {
return Result.success("success");
}
@AuthAccess(allowRoles = {"guest"})
@PostMapping("/user/login")
public Result<LoginResponse> login(@RequestBody LoginRequest request, HttpServletRequest httpServletRequest) {