Skip to content
Snippets Groups Projects
Select Git revision
  • 5f358b9860dc78cca896c9e991d6b5710c9bdfbc
  • master default protected
  • entra protected
  • kasszasch protected
  • radlaci97-modern-web
  • revert-8b053a7c
  • manifest-background-color
  • 18-ui-pimping protected
  • payout protected
  • v1.8.5 protected
  • v1.8.4 protected
  • v1.8.3 protected
  • v1.8.2 protected
  • v1.8.1 protected
  • v1.8.0 protected
  • v1.7.1 protected
  • v1.7.0 protected
  • v1.6.21 protected
  • v1.6.20 protected
  • v1.6.19 protected
  • v1.6.18 protected
  • v1.6.17 protected
  • v1.6.16 protected
  • v1.6.15 protected
  • v1.16.15 protected
  • v1.6.14 protected
  • v1.6.13 protected
  • v1.6.12 protected
  • v1.6.11 protected
29 results

model.go

Blame
  • blint's avatar
    Réthelyi Bálint authored
    The new structures ProductInPult and BoughtInPult in api/model.go file have been added. These implementations are designed to facilitate the handling of product and purchasing data. Adding these types will help to establish a structure for the data flowing in and out of the API endpoints, and thereby improve the general utility and manageability of our system.
    5f358b98
    History
    model.go 431 B
    package api
    
    import (
    	"git.sch.bme.hu/disappointment-industries/becskasszasch/db"
    	"time"
    )
    
    type ProductInPult struct {
    	Product *db.Product `json:"product"`
    	Amount  int64       `json:"amount"`
    }
    
    type BoughtInPult struct {
    	User           *db.User         `json:"user"`
    	ProductsInPult []*ProductInPult `json:"productsInPult"`
    	Date           time.Time        `json:"date"`
    	Pultosch       *db.User         `json:"pultosch"`
    }