后端:部分接口补充 @PermitAll 注解

This commit is contained in:
YunaiV
2019-04-20 01:24:44 +08:00
parent bc2bf52039
commit ff69f324d5
4 changed files with 11 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.security.PermitAll;
import java.util.Comparator;
import java.util.List;
@@ -26,6 +27,7 @@ public class UsersBannerController {
@GetMapping("/list")
@ApiOperation("获得所有 Banner 列表")
@PermitAll
public CommonResult<List<UsersBannerVO>> list() {
// 查询 Banner 列表
List<BannerBO> result = bannerService.getBannerListByStatus(CommonStatusEnum.ENABLE.getValue()).getData();
@@ -36,4 +38,3 @@ public class UsersBannerController {
}
}

View File

@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.security.PermitAll;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
@@ -35,6 +36,7 @@ public class UsersProductRecommendController {
@GetMapping("/list")
@ApiOperation("获得所有 Banner 列表")
@PermitAll
public CommonResult<Map<Integer, Collection<UsersProductRecommendVO>>> list() {
// 查询商品推荐列表
List<ProductRecommendBO> productRecommends = productRecommendService.getProductRecommendList(
@@ -51,4 +53,4 @@ public class UsersProductRecommendController {
return CommonResult.success(result.asMap());
}
}
}