feat(barcode): Baseline for barcode caching
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/boombuler/barcode/code128"
|
||||
"github.com/boombuler/barcode/ean"
|
||||
"github.com/boombuler/barcode/qr"
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
|
||||
type BarcodeService interface {
|
||||
@@ -18,6 +19,7 @@ type BarcodeService interface {
|
||||
}
|
||||
|
||||
type DefaultBarcodeService struct {
|
||||
RedisClient *redis.Client
|
||||
}
|
||||
|
||||
func (b *DefaultBarcodeService) GenerateBarcode(format string, content string, width int, height int) (bytes.Buffer, error) {
|
||||
|
||||
Reference in New Issue
Block a user