feat(model): Card Models
This commit is contained in:
parent
670290b60b
commit
389922f22d
21
models/card.go
Normal file
21
models/card.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package models
|
||||||
|
|
||||||
|
type CardRequest struct {
|
||||||
|
Cards []Card `json:"card"`
|
||||||
|
Locale string `json:"locale" enums:"en,de"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type Card struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
Enabled bool `json:"enabled"`
|
||||||
|
Runner Runner `json:"runner"`
|
||||||
|
Code string `json:"code"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ContractTemplateOptions struct {
|
||||||
|
Cards []Card `json:"cards"`
|
||||||
|
EventName string `json:"event_name"`
|
||||||
|
CardSubtitle string `json:"card_subtitle"`
|
||||||
|
BarcodeFormat string `json:"barcode_format"`
|
||||||
|
BarcodePrefix string `json:"barcode_prefix"`
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user