Sfoglia il codice sorgente

Convert json names to lower case

master
Immanuel Onyeka 2 anni fa
parent
commit
a301645472
1 ha cambiato i file con 27 aggiunte e 24 eliminazioni
  1. +27
    -24
      skouter.go

+ 27
- 24
skouter.go Vedi File

@@ -26,33 +26,34 @@ type LoanType struct {
} }


type FeeTemplate struct { type FeeTemplate struct {
Id int Id int `json:"id"`
User int User int `json:"user"`
Branch int Branch int `json:"branch"`
Amount int Amount int `json:"amount"`
Perc int Perc int `json:"perc"`
Ftype string Ftype string `json:"type"`
Notes string Notes string `json:"notes"`
Name string Name string `json:"name"`
Category string Category string `json:"category"`
Auto bool Auto bool `json:"auto"`
} }


type Estimate struct { type Estimate struct {
user int Id int `json:"id"`
borrower int User int `json:"user"`
comparison int Borrower int `json:"borrower"`
transaction int Comparison int `json:"comparison"`
loanType LoanType Transaction int `json:"transaction"`
loanAmount int LoanType LoanType `json:"loanType"`
price int LoanAmount int `json:"loanAmount"`
property string Price int `json:"price"`
pud bool Property string `json:"property"`
term int Pud bool `json:"pud"`
interest int Term int `json:"term"`
hoi int Interest int `json:"interest"`
miName string Hoi int `json:"hoi"`
miAmount int MiName string `json:"miName"`
MiAmount int `json:"miAmount"`
} }


var ( var (
@@ -185,6 +186,8 @@ func getFees(db *sql.DB, user int) ([]FeeTemplate, error) {
return fees, nil return fees, nil
} }


func getMi(db *sql.DB, )

func route(w http.ResponseWriter, r *http.Request) { func route(w http.ResponseWriter, r *http.Request) {
var page Page var page Page
var args []string var args []string


||||||
x
 
000:0
Loading…
Annulla
Salva