xin
16 hours ago c67c3be16c4a9aa7c6617d43da886850d717a009
商品门店匿名访问
4 files modified
16 ■■■■■ changed files
oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryCustomerController.java 4 ●●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java 3 ●●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCategoryMerchantController.java 4 ●●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java 5 ●●●●● patch | view | raw | blame | history
oying-system/src/main/java/com/oying/modules/pc/category/rest/PlatformCategoryCustomerController.java
@@ -1,5 +1,6 @@
package com.oying.modules.pc.category.rest;
import com.oying.annotation.rest.AnonymousGetMapping;
import com.oying.modules.pc.category.converter.PlatformCategoryViewAssembler;
import com.oying.modules.pc.category.domain.PlatformCategory;
import com.oying.modules.pc.category.domain.enums.PlatformCategoryEnum;
@@ -11,7 +12,6 @@
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -31,7 +31,7 @@
    private final PlatformCategoryService categoryService;
    private final PlatformCategoryViewAssembler assembler;
    @GetMapping("/list")
    @AnonymousGetMapping("/list")
    @ApiOperation("查询平台类目")
    //@PreAuthorize("@el.check('customer:platformCategory:list')")
    public ResponseEntity<?> queryPlatformCategory() {
oying-system/src/main/java/com/oying/modules/pc/product/rest/ProductMerchantController.java
@@ -5,6 +5,7 @@
import cn.hutool.core.util.ObjUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.oying.annotation.Log;
import com.oying.annotation.rest.AnonymousGetMapping;
import com.oying.modules.pc.product.domain.Product;
import com.oying.modules.pc.product.domain.ProductLabel;
import com.oying.modules.pc.product.domain.dto.*;
@@ -44,7 +45,7 @@
    private final ProductImageService productImageService;
    private final ProductLabelService productLabelService;
    @GetMapping(value = "/page")
    @AnonymousGetMapping(value = "/page")
    @ApiOperation("获取指定商户店铺的商品列表(支持分页)")
    /*@PreAuthorize("@el.check('merchant:product:page') " +
            "and @storeMerchantOwnershipService.check(#storeId)")*/
oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCategoryMerchantController.java
@@ -6,6 +6,7 @@
import cn.hutool.core.lang.tree.TreeUtil;
import cn.hutool.core.util.BooleanUtil;
import com.oying.annotation.Log;
import com.oying.annotation.rest.AnonymousGetMapping;
import com.oying.utils.R;
import com.oying.modules.pc.store.domain.StoreCategory;
import com.oying.modules.pc.store.domain.dto.*;
@@ -18,7 +19,6 @@
import org.springframework.beans.BeanUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -38,7 +38,7 @@
    private final StoreCategoryService storeCategoryService;
    @GetMapping(value = "/list")
    @AnonymousGetMapping(value = "/list")
    @ApiOperation("查询店铺类目")
    //@PreAuthorize("@el.check('merchant:storeCategory:list')" +
    //        " and @storeMerchantOwnershipService.check(#storeId)")
oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java
@@ -3,6 +3,7 @@
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import cn.hutool.core.util.ObjUtil;
import com.oying.annotation.rest.AnonymousGetMapping;
import com.oying.modules.pc.product.domain.Product;
import com.oying.modules.pc.product.domain.dto.ProductQueryCriteria;
import com.oying.modules.pc.product.domain.enums.ProductStatusEnum;
@@ -45,7 +46,7 @@
    private final StoreQualificationService storeQualificationService;
    private final ProductService productService;
    @GetMapping(value = "/page")
    @AnonymousGetMapping(value = "/page")
    @ApiOperation("查询店铺")
    public ResponseEntity<?> getStoresByPage(StoreQueryCriteria criteria) {
        criteria.setLimit(1000);
@@ -65,7 +66,7 @@
        return ResponseEntity.ok(R.success(view));
    }
    @GetMapping(value = "/{storeId}/details")
    @AnonymousGetMapping(value = "/{storeId}/details")
    @ApiOperation("查询店铺")
    public ResponseEntity<?> getStoreDetailsById(@PathVariable("storeId") Long storeId) {
        Store store = storeService.getById(storeId);