Documentation ¶
Index ¶
- Constants
- func SplitSharesForBillWrapper(tripId int64, planId int64, billAmount float64, currentMemberEmail string, ...) (string, float64, bool)
- func ValidateShares(sharesJson string, billAmount float64) (bool, string)
- type Member
- type PlanSuggestion
- func CreateIndividualSuggestionWrapper(tripId, planId int64, amount float64, notes string, created time.Time, ...) *PlanSuggestion
- func CreateTotalSuggestion(tripId int64, totalAmount float64, members []Member, currentMemberEmail string, ...) *PlanSuggestion
- func CreateTotalSuggestionWrapper(tripId int64, totalAmount float64, membersJson string, ...) *PlanSuggestion
- type Share
- type Suggestion
Constants ¶
View Source
const ( OpNotInvolved = -1 OpSettled = 0 OpGetsBack = 1 OpOwe = 2 //not needed OpPaid = 3 OpBoth = 4 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Member ¶
type Member struct { Tripid int64 Name string Email string Avatar string Created time.Time Updated int64 }
Member is the user who involved in the expense
type PlanSuggestion ¶
type PlanSuggestion struct { Tripid int64 Planid int64 Notes string Brief string Date string Amount float64 Operation int Suggestions []Suggestion }
PlanSuggestion is the wrapper above suggestions has all the suggestions/settlements
func CreateTotalSuggestion ¶
Click to show internal directories.
Click to hide internal directories.