Przeglądaj źródła

Convert json names to lower case

master
Immanuel Onyeka 2 lat temu
rodzic
commit
a301645472
1 zmienionych plików z 27 dodań i 24 usunięć
  1. +27
    -24
      skouter.go

+ 27
- 24
skouter.go Wyświetl plik

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


type FeeTemplate 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 { 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 ( 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


Ładowanie…
Anuluj
Zapisz