| | |
| | | public ApiResponse create(@RequestBody Shop shop) { |
| | | return ApiResponse.success(shopService.create(shop)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("设置供货价") |
| | | @PostMapping("/setGoodsPrice") |
| | | @RequiresPermissions("business:shop:update") |
| | | public ApiResponse setGoodsPrice(@RequestBody Shop shop) { |
| | | return ApiResponse.success(shopService.setGoodsPrice(shop)); |
| | | } |
| | | |
| | | @ApiOperation("根据ID删除") |
| | | @GetMapping("/delete/{id}") |
| | |
| | | @ApiOperation("查询所有数据") |
| | | @PostMapping("/findAll") |
| | | @RequiresPermissions("business:shop:query") |
| | | public ApiResponse<List<Shop>> findAll (@RequestBody PageWrap<Shop> pageWrap) { |
| | | return ApiResponse.success(shopService.findAll(pageWrap)); |
| | | public ApiResponse<List<Shop>> findAll (@RequestBody Shop pageWrap) { |
| | | return ApiResponse.success(shopService.findList(pageWrap)); |
| | | } |
| | | |
| | | |