桌码绑定接口

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

@@ -0,0 +1,23 @@
package com.czg.account.dto.table;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
/**
* @author Administrator
*/
@Data
public class ShopTableBindDTO {
/**
* 台桌id
*/
@NotNull(message = "台桌id不为空")
private String id;
/**
* 桌码
*/
@NotEmpty(message = "桌码不为空")
private String tableCode;
}

View File

@@ -1,6 +1,7 @@
package com.czg.account.service;
import com.czg.account.dto.table.ShopTableAddDTO;
import com.czg.account.dto.table.ShopTableBindDTO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.czg.account.entity.ShopTable;
@@ -19,4 +20,7 @@ public interface ShopTableService extends IService<ShopTable> {
Boolean add(Long shopId, ShopTableAddDTO shopTableAddDTO);
void createQrCode(Long shopId, Integer num, HttpServletResponse response) throws IOException;
Boolean bind(Long shopId, ShopTableBindDTO shopTableBindDTO);
}