feat: init client
This commit is contained in:
34
models/set.go
Normal file
34
models/set.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
// Set represents the set.
|
||||
type Set struct {
|
||||
// Id Globally unique set ID.
|
||||
ID string `json:"id"`
|
||||
|
||||
// Name of the set.
|
||||
Name string `json:"name"`
|
||||
|
||||
// Logo incomplete URL.
|
||||
Logo string `json:"logo"`
|
||||
|
||||
// Symbol incomplete URL.
|
||||
Symbol string `json:"symbol"`
|
||||
|
||||
// Serie which the set is a part.
|
||||
Serie SerieResume `json:"serie"`
|
||||
|
||||
// TcgOnline code.
|
||||
TcgOnline string `json:"tcgOnline"`
|
||||
|
||||
// ReleaseDate of the set (yyyy-mm-dd).
|
||||
ReleaseDate string `json:"releaseDate"`
|
||||
|
||||
// Legal the set legality (won't indicate if a card is banned)
|
||||
Legal Legal `json:"legal"`
|
||||
|
||||
// CardCount the number of card in the set
|
||||
CardCount SetCardCount `json:"cardCount"`
|
||||
|
||||
// Cards contained in this set.
|
||||
Cards []CardResume `json:"cards"`
|
||||
}
|
||||
Reference in New Issue
Block a user