Documentation ¶ Index ¶ type Merchant type Transaction type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Merchant ¶ type Merchant struct { gorm.Model Name string `json:"name"` Email string `json:"email"` DiscountPercent float64 `json:"discount_percent"` } type Transaction ¶ type Transaction struct { gorm.Model Amount float64 `json:"amount"` UserID uint MerchantID uint AmountToService float64 `json:"amount_to_service"` } type User ¶ type User struct { gorm.Model Name string `json:"name"` Email string `json:"email"` CreditLimit float64 `json:"credit_limit"` Dues float64 `json:"dues"` } Source Files ¶ View all Source files structs.go Click to show internal directories. Click to hide internal directories.