Barcode generation with Boombuler
This commit is contained in:
@@ -207,6 +207,14 @@ func (p *TableProcessor) GetOccupiedTables(ctx context.Context, outletID uuid.UU
|
||||
return responses, nil
|
||||
}
|
||||
|
||||
func (p *TableProcessor) GetTokenByID(ctx context.Context, id uuid.UUID) (string, error) {
|
||||
table, err := p.tableRepo.GetByID(ctx, id)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return table.Token, nil
|
||||
}
|
||||
|
||||
func (p *TableProcessor) mapTableToResponse(table *entities.Table) *models.TableResponse {
|
||||
response := &models.TableResponse{
|
||||
ID: table.ID,
|
||||
|
||||
Reference in New Issue
Block a user