Commit 9bee3634 by fanjiaxin

放开权限,联调

parent e5e9452b
Pipeline #71486 passed with stages
in 1 minute 4 seconds
...@@ -19,16 +19,15 @@ import java.util.Collections; ...@@ -19,16 +19,15 @@ import java.util.Collections;
public class WebConfig implements WebMvcConfigurer { public class WebConfig implements WebMvcConfigurer {
private final AuthInterceptor authInterceptor; private final AuthInterceptor authInterceptor;
// private static final String[] EXCLUDE_URLS = {"/open/**", private static final String[] EXCLUDE_URLS = {"/i/health",
// "/test/**", "/i/health", "/user/login", "/sharer/open/**", "/sharer/test/**",
// "/product/page/list"}; "/sharer/user/login", "/sharer/product/page/list"};
private static final String[] EXCLUDE_URLS = {"/**"};
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { public void addInterceptors(InterceptorRegistry registry) {
// registry.addInterceptor(authInterceptor) registry.addInterceptor(authInterceptor)
// .excludePathPatterns(getExcludePathPatterns()); .excludePathPatterns(getExcludePathPatterns());
} }
/** /**
......
...@@ -20,14 +20,14 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -20,14 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController
@RequestMapping("/user") @RequestMapping("/sharer/user")
public class UserController extends BaseController { public class UserController extends BaseController {
private final IUserService iUserService; private final IUserService iUserService;
/** /**
* 登录 * 登录
*/ */
@PostMapping("/sharer/login") @PostMapping("/login")
public Result<UserTokenVO> login(@Validated @RequestBody LoginBO bo) { public Result<UserTokenVO> login(@Validated @RequestBody LoginBO bo) {
UserTokenVO result = iUserService.login(bo); UserTokenVO result = iUserService.login(bo);
return Result.ok(result); 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