diff --git a/skouter.go b/skouter.go index 22323a8..d1a34c9 100644 --- a/skouter.go +++ b/skouter.go @@ -26,33 +26,34 @@ type LoanType struct { } type FeeTemplate struct { - Id int - User int - Branch int - Amount int - Perc int - Ftype string - Notes string - Name string - Category string - Auto bool + Id int `json:"id"` + User int `json:"user"` + Branch int `json:"branch"` + Amount int `json:"amount"` + Perc int `json:"perc"` + Ftype string `json:"type"` + Notes string `json:"notes"` + Name string `json:"name"` + Category string `json:"category"` + Auto bool `json:"auto"` } type Estimate struct { - user int - borrower int - comparison int - transaction int - loanType LoanType - loanAmount int - price int - property string - pud bool - term int - interest int - hoi int - miName string - miAmount int + Id int `json:"id"` + User int `json:"user"` + Borrower int `json:"borrower"` + Comparison int `json:"comparison"` + Transaction int `json:"transaction"` + LoanType LoanType `json:"loanType"` + LoanAmount int `json:"loanAmount"` + Price int `json:"price"` + Property string `json:"property"` + Pud bool `json:"pud"` + Term int `json:"term"` + Interest int `json:"interest"` + Hoi int `json:"hoi"` + MiName string `json:"miName"` + MiAmount int `json:"miAmount"` } var ( @@ -185,6 +186,8 @@ func getFees(db *sql.DB, user int) ([]FeeTemplate, error) { return fees, nil } +func getMi(db *sql.DB, ) + func route(w http.ResponseWriter, r *http.Request) { var page Page var args []string