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