桌码绑定接口

This commit is contained in:
张松
2025-02-19 10:04:31 +08:00
parent 90b0a41e7a
commit 400515b641
4 changed files with 70 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package com.czg.controller.admin;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil;
import com.czg.account.dto.table.ShopTableAddDTO;
import com.czg.account.dto.table.ShopTableBindDTO;
import com.czg.account.dto.table.ShopTableDTO;
import com.czg.account.entity.ShopTable;
import com.czg.account.service.ShopTableService;
@@ -100,4 +101,15 @@ public class ShopTableController {
}
return CzgResult.success(shopTableService.add(StpKit.USER.getShopId(), shopTableAddDTO));
}
/**
* 台桌绑定
* 权限标识: shopTable:bind
* @return 是否成功
*/
@SaAdminCheckPermission("shopTable:bind")
@PostMapping("/bind")
public CzgResult<Boolean> bind(@RequestBody @Validated ShopTableBindDTO shopTableBindDTO) {
return CzgResult.success(shopTableService.bind(StpKit.USER.getShopId(), shopTableBindDTO));
}
}