Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` UserID primitive.ObjectID `json:"userId,omitempty" bson:"_userId,omitempty"` ProjectID primitive.ObjectID `json:"projectId,omitempty" bson:"projectId,omitempty"` Name string `json:"name" bson:"name,omitempty"` }
type CategorySummary ¶
type Expense ¶
type Expense struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` UserID primitive.ObjectID `json:"userId,omitempty" bson:"_userId,omitempty"` ProjectID primitive.ObjectID `json:"projectId,omitempty" bson:"projectId,omitempty"` CategoryID primitive.ObjectID `json:"categoryId,omitempty" bson:"_categoryId,omitempty"` Title string `json:"title,omitempty" bson:"title,omitempty"` Amount float64 `json:"amount,omitempty" bson:"amount,omitempty"` AddedDate time.Time `json:"addedDate,omitempty" bson:"addedDate,omitempty"` Category Category `json:"category,omitempty" bson:"-"` }
Expense model
type Project ¶
type Project struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` OwnerId primitive.ObjectID `json:"ownerId,omitempty" bson:"_ownerId,omitempty"` Name string `json:"name,omitempty" bson:"name,omitempty"` AddedDate time.Time `json:"addedDate,omitempty" bson:"addedDate,omitempty"` DisabledDate time.Time `json:"disabledDate,omitempty" bson:"disabledDate"` Disabled bool `json:"disabled" bson:"disabled"` AssignedUsers []UserDto `json:"assignedUsers" bson:"assignedUsers"` }
type ProjectUser ¶
Click to show internal directories.
Click to hide internal directories.