/
tickets.go
37 lines (33 loc) · 922 Bytes
/
tickets.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package types
type PassItem interface {
GetName() string
GetSku() string
GetDesc() string
GetQuantity() uint
GetID() string
GetAmount() string
}
type TransferReq struct {
LineItemID string `json:"id" gorm:"primary_key"`
NewSKU string `json:"newsku" gorm:"primary_key"`
NewName string `json:"newname"`
OldSku string `json:"oldsku"`
}
type GiftCard struct {
ID string `json:"id" gorm:"primary_key"`
Initial string `json:"initial" gorm:"type:money"`
Balance float64 `json:"balance"`
PaymentID string `json:"-"`
Status string `json:"-"`
}
type Manual struct {
ProductID int `json:"productId"`
Timestamp string `json:"timestamp"`
EntryType string `json:"entry"`
TicketType string `json:"ticket"`
Quantity int `json:"quantity"`
Desc string `json:"desc"`
Name string `json:"name"`
Email string `json:"email"`
Phone string `json:"phone"`
}