changes to model
This commit is contained in:
@@ -2,15 +2,16 @@ package model
|
||||
|
||||
type Company struct {
|
||||
ID int
|
||||
Name string
|
||||
Symbol string
|
||||
SharesOutstanding int
|
||||
Price float64
|
||||
CurrencyID int
|
||||
}
|
||||
|
||||
type CompanyInput struct {
|
||||
Name string `json:"name"`
|
||||
Symbol string `json:"symbol"`
|
||||
SharesOutstanding int `json:"shares_outstanding"`
|
||||
Price float64 `json:"price"`
|
||||
CurrencyID int `json:"currency_id"`
|
||||
CurrencyCode string `json:"currency_code"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user