桌码绑定接口
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user