Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { /* "Text" means the actual address lines. * If address is 123, xyz colony, myCity, myState the Text * will be 123, xyz colony, and * State and City will be myCity and myState * * A multiline string is expected. */ Text string `bson:"Text"` City string `bson:"City"` State string `bson:"State"` PostalCode string `bson:"PostalCode"` Country string `bson:"Country"` }
type Client ¶
type Client struct { Id primitive.ObjectID `bson:"_id,omitempty"` Name string `bson:"Name"` Contact Contact `bson:"Contact"` GSTIN string `bson:"GSTIN"` /* if shipping address is empty it means that * the billing address is also shipping address */ BillingAddress Address `bson:"BillingAddress"` ShippingAddresses []Address `bson:"ShippingAddresses,omitempty"` }
func GetClients ¶ added in v0.0.2
GetClients queries the database and * returns clients based on the given filter * if filter is nil every client is returned
Click to show internal directories.
Click to hide internal directories.