Commit 9bee3634 by fanjiaxin

放开权限,联调

parent e5e9452b
Pipeline #71486 passed with stages
in 1 minute 4 seconds
......@@ -19,16 +19,15 @@ import java.util.Collections;
public class WebConfig implements WebMvcConfigurer {
private final AuthInterceptor authInterceptor;
// private static final String[] EXCLUDE_URLS = {"/open/**",
// "/test/**", "/i/health", "/user/login",
// "/product/page/list"};
private static final String[] EXCLUDE_URLS = {"/i/health",
"/sharer/open/**", "/sharer/test/**",
"/sharer/user/login", "/sharer/product/page/list"};
private static final String[] EXCLUDE_URLS = {"/**"};
@Override
public void addInterceptors(InterceptorRegistry registry) {
// registry.addInterceptor(authInterceptor)
// .excludePathPatterns(getExcludePathPatterns());
registry.addInterceptor(authInterceptor)
.excludePathPatterns(getExcludePathPatterns());
}
/**
......
......@@ -20,14 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RequiredArgsConstructor
@RestController
@RequestMapping("/user")
@RequestMapping("/sharer/user")
public class UserController extends BaseController {
private final IUserService iUserService;
/**
* 登录
*/
@PostMapping("/sharer/login")
@PostMapping("/login")
public Result<UserTokenVO> login(@Validated @RequestBody LoginBO bo) {
UserTokenVO result = iUserService.login(bo);
return Result.ok(result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment