| | |
| | | /** |
| | | * 添加餐饮管理 |
| | | */ |
| | | @ApiOperation( value = "开台-点菜接口") |
| | | @ApiOperation( value = "开台") |
| | | @PostMapping(value = "/startMeal") |
| | | public AjaxResult<Integer> startMeal(@RequestBody TOrderMeal dto) { |
| | | dto.setShopId(tokenService.getLoginUser().getObjectId()); |
| | | orderMealService.startMeal(dto); |
| | | return AjaxResult.success(dto.getId()); |
| | | } |
| | | |
| | | /** |
| | | * 添加餐饮管理 |
| | | */ |
| | | @ApiOperation( value = "点菜接口") |
| | | @PostMapping(value = "/add") |
| | | public AjaxResult<Integer> add(@RequestBody TOrderMealDTO dto) { |
| | | dto.setShopId(tokenService.getLoginUser().getObjectId()); |
| | | orderMealService.add(dto); |
| | | return AjaxResult.success(dto.getId()); |
| | | } |