| | |
| | | @ApiOperation("新建") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:shop:create") |
| | | public ApiResponse create(@RequestBody Shop shop) { |
| | | public ApiResponse create(@RequestBody Shop shop) throws Exception { |
| | | return ApiResponse.success(shopService.create(shop)); |
| | | } |
| | | @PreventRepeat |
| | |
| | | @ApiOperation("根据ID修改") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:shop:update") |
| | | public ApiResponse updateById(@RequestBody Shop shop) { |
| | | public ApiResponse updateById(@RequestBody Shop shop) throws Exception { |
| | | shopService.updateById(shop); |
| | | return ApiResponse.success(null); |
| | | } |