Helius
2021-06-30 1e84856e170113de47d937ca15e6e5bf8e83b2b8
modify
2 files modified
6 ■■■■ changed files
gc-core/src/main/java/com/xzx/gc/common/constant/Constants.java 2 ●●● patch | view | raw | blame | history
gc-shop/src/main/java/com/xzx/gc/shop/controller/ApiGoodsController.java 4 ●●●● patch | view | raw | blame | history
gc-core/src/main/java/com/xzx/gc/common/constant/Constants.java
@@ -184,7 +184,7 @@
    /**
     * 不需要验证的Url地址
     */
    public static final List<String> NO_AUTH_URLS=CollUtil.newArrayList("/swagger-resources", "/webjars", "/v2", "/swagger-ui.html","/error","/push/jg","/pay/new/wxProPayNotify/anon","/admin/front/file/upload","/partnerTarget/add","/admin/queryListMap.json","/admin/echarts/dataEchart.json","/apk/download","/pay/ali/notify", "/goods/goodsCategory", "/goods/goodsList", "/goods/goodsDetails");
    public static final List<String> NO_AUTH_URLS=CollUtil.newArrayList("/swagger-resources", "/webjars", "/v2", "/swagger-ui.html","/error","/push/jg","/pay/new/wxProPayNotify/anon","/admin/front/file/upload","/partnerTarget/add","/admin/queryListMap.json","/admin/echarts/dataEchart.json","/apk/download","/pay/ali/notify");
    public static final List<String> NO_AUTH_METHODS=CollUtil.newArrayList("queryListMap","payNotify","partnerTargetAdd","aliPayNotify");
gc-shop/src/main/java/com/xzx/gc/shop/controller/ApiGoodsController.java
@@ -3,6 +3,7 @@
import com.github.pagehelper.PageInfo;
import com.xzx.gc.common.Result;
import com.xzx.gc.common.annotations.PassToken;
import com.xzx.gc.common.request.BaseController;
import com.xzx.gc.model.JsonResult;
import com.xzx.gc.service.BaseAccountService;
@@ -31,6 +32,7 @@
    @Autowired
    private GoodsService goodsService;
    @PassToken
    @ApiOperation("分类列表")
    @ApiResponses(
            @ApiResponse(code = 200, message = "success", response = GoodsCategoryVo.class)
@@ -40,6 +42,7 @@
        return JsonResult.success(goodsService.findCategoryWithChildren());
    }
    @PassToken
    @ApiOperation("商品列表")
    @ApiResponses(
            @ApiResponse(code = 200, message = "success", response = XcxGoodsListVo.class)
@@ -51,6 +54,7 @@
        return JsonResult.success(goodsService.findGoodsListInPage(xcxGoodsListDto));
    }
    @PassToken
    @ApiOperation("商品详情")
    @ApiResponses(
            @ApiResponse(code = 200, message = "success", response = XcxGoodsDetailVo.class)