修改
This commit is contained in:
@ -17,6 +17,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.annotation.security.PermitAll;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
import java.io.IOException;
|
||||
@ -71,7 +72,7 @@ public class CarteenController {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得门店管理分页")
|
||||
@PreAuthorize("@ss.hasPermission('t:carteen:query')")
|
||||
@PermitAll
|
||||
public CommonResult<PageResult<CarteenRespVO>> getCarteenPage(@Valid CarteenPageReqVO pageReqVO) {
|
||||
PageResult<CarteenDO> pageResult = carteenService.getCarteenPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CarteenRespVO.class));
|
||||
|
@ -22,7 +22,7 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
*/
|
||||
@Tag(name = "门店")
|
||||
@RestController
|
||||
@RequestMapping("/app/t/carteen")
|
||||
@RequestMapping("/t/carteen")
|
||||
@Validated
|
||||
public class AppCarteenController {
|
||||
@Resource
|
||||
|
Reference in New Issue
Block a user