| | |
| | | import com.doumee.dao.business.model.ShopInfo; |
| | | import com.doumee.dao.dto.AuditDTO; |
| | | import com.doumee.dao.dto.ChangeStatusDTO; |
| | | import com.doumee.dao.dto.PrinterBindDTO; |
| | | import com.doumee.dao.dto.ResetPasswordDTO; |
| | | import com.doumee.dao.dto.ShopPrinterDTO; |
| | | import com.doumee.dao.dto.ShopUpdateDTO; |
| | | import com.doumee.dao.vo.ShopDetailVO; |
| | | import com.doumee.service.business.ShopInfoService; |
| | |
| | | return ApiResponse.success("修改成功"); |
| | | } |
| | | |
| | | @ApiOperation("绑定打印机") |
| | | @PostMapping("/bindPrinter") |
| | | @ApiOperation("维护门店打印机SN") |
| | | @PostMapping("/maintainPrinter") |
| | | @RequiresPermissions("business:shopInfo:update") |
| | | public ApiResponse bindPrinter(@RequestBody @javax.validation.Valid PrinterBindDTO dto) { |
| | | shopInfoService.bindPrinter(dto); |
| | | return ApiResponse.success("绑定成功"); |
| | | } |
| | | |
| | | @ApiOperation("解绑打印机") |
| | | @PostMapping("/unbindPrinter/{shopId}") |
| | | @RequiresPermissions("business:shopInfo:update") |
| | | public ApiResponse unbindPrinter(@PathVariable Integer shopId) { |
| | | shopInfoService.unbindPrinter(shopId); |
| | | return ApiResponse.success("解绑成功"); |
| | | } |
| | | |
| | | @ApiOperation("查询打印机状态") |
| | | @GetMapping("/printerStatus/{shopId}") |
| | | @RequiresPermissions("business:shopInfo:query") |
| | | public ApiResponse queryPrinterStatus(@PathVariable Integer shopId) { |
| | | return ApiResponse.success(shopInfoService.queryPrinterStatus(shopId)); |
| | | public ApiResponse maintainPrinter(@RequestBody ShopPrinterDTO dto) { |
| | | shopInfoService.maintainPrinterSn(dto); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | } |