refactor(models): Move options model to models
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"image/png"
|
||||
"strconv"
|
||||
|
||||
"git.odit.services/lfk/document-server/models"
|
||||
"github.com/boombuler/barcode"
|
||||
"github.com/boombuler/barcode/code128"
|
||||
"github.com/boombuler/barcode/ean"
|
||||
@@ -23,17 +22,6 @@ type Templater interface {
|
||||
type DefaultTemplater struct {
|
||||
}
|
||||
|
||||
type ContractTemplateOptions struct {
|
||||
Runners []models.Runner `json:"runners"`
|
||||
CurrencySymbol string `json:"currency_symbol"`
|
||||
Disclaimer string `json:"disclaimer"`
|
||||
ReceiptMinimumAmount int `json:"receipt_minimum_amount"`
|
||||
EventName string `json:"event_name"`
|
||||
SponsoringHeader string `json:"base_url"`
|
||||
BarcodeFormat string `json:"barcode_format"`
|
||||
BarcodePrefix string `json:"barcode_prefix"`
|
||||
}
|
||||
|
||||
func idToEan13(id int, prefix string) (string, error) {
|
||||
idStr := strconv.Itoa(id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user