Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClient ¶ added in v1.0.0
Delete client from DB
func ModifyClient ¶ added in v1.0.0
modify client in DB
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" json:"Text"` City string `bson:"City" json:"City"` State string `bson:"State" json:"State"` PostalCode string `bson:"PostalCode" json:"PostalCode"` Country string `bson:"Country" json:"Country"` }
type Client ¶
type Client struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"Id"` Name string `bson:"Name" json:"Name"` Contact Contact `bson:"Contact" json:"Contact"` GSTIN string `bson:"GSTIN" json:"GSTIN"` /* if shipping address is empty it means that * the billing address is also shipping address */ BillingAddress Address `bson:"BillingAddress" json:"BillingAddress"` ShippingAddresses []Address `bson:"ShippingAddresses,omitempty" json:"ShippingAddresses"` }
Click to show internal directories.
Click to hide internal directories.