mirror of
				https://github.com/suyiiyii/SIMS.git
				synced 2025-11-04 15:54:52 +08:00 
			
		
		
		
	删除没有必要的接口
This commit is contained in:
		
							parent
							
								
									dd88d17dd3
								
							
						
					
					
						commit
						a3118bd8b6
					
				@ -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");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user