This commit is contained in:
zengtao01
2024-04-23 16:46:23 +08:00
parent b05e2a2717
commit 95eee85404
10 changed files with 24 additions and 20 deletions

View File

@ -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));

View File

@ -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