init
This commit is contained in:
32
models/structs.go
Normal file
32
models/structs.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package models
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type Card struct {
|
||||
ID int `json:"id"`
|
||||
Number string `json:"number"`
|
||||
Name string `json:"name"`
|
||||
Attributes map[string]interface{} `json:"attributes"`
|
||||
}
|
||||
|
||||
type Auction struct {
|
||||
ID int `json:"id"`
|
||||
CardID int `json:"card_id"`
|
||||
Price float64 `json:"price"`
|
||||
Currency string `json:"currency"`
|
||||
Platform string `json:"platform"`
|
||||
DateSold string `json:"date_sold"`
|
||||
Link string `json:"link"`
|
||||
Attributes map[string]json.RawMessage `json:"attributes"`
|
||||
}
|
||||
|
||||
type Factors struct {
|
||||
GF float64
|
||||
RF float64
|
||||
EF float64
|
||||
ST float64
|
||||
DF float64
|
||||
AF float64
|
||||
MF float64
|
||||
TAF float64
|
||||
}
|
Reference in New Issue
Block a user