changes to model

This commit is contained in:
samantha42
2026-03-26 08:39:42 +01:00
parent ff7b41e2a8
commit 3f878c1dc0
15 changed files with 119 additions and 195 deletions

View File

@@ -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"`
}