remove all printlln
This commit is contained in:
parent
6accf3e4b9
commit
941a7ccc5e
|
@ -138,7 +138,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R
|
||||||
w.WriteHeader(http.StatusInternalServerError)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(resp.Group.Members)
|
|
||||||
|
|
||||||
var accounts = []any{}
|
var accounts = []any{}
|
||||||
|
|
||||||
|
@ -157,7 +156,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R
|
||||||
accounts = append(accounts, a)
|
accounts = append(accounts, a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println(accounts)
|
|
||||||
|
|
||||||
cacheid := uuid.NewString()
|
cacheid := uuid.NewString()
|
||||||
h.cache.PutWithTTL(cacheid, accounts, 1*time.Hour)
|
h.cache.PutWithTTL(cacheid, accounts, 1*time.Hour)
|
||||||
|
@ -198,12 +196,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("yeesssssssssssssssssssssssss")
|
|
||||||
fmt.Println(respbeneficiary.Account.Id)
|
|
||||||
fmt.Println("===================yeesssssssssssssssssssssssss")
|
|
||||||
fmt.Println(r.FormValue("beneficiaryid"))
|
|
||||||
fmt.Println("=====================yeesssssssssssssssssssssssss")
|
|
||||||
// }
|
|
||||||
http.Redirect(w, r, fmt.Sprintf("/app/group_module/groups/%s", resp.Group.ToStorageType().ID), http.StatusFound)
|
http.Redirect(w, r, fmt.Sprintf("/app/group_module/groups/%s", resp.Group.ToStorageType().ID), http.StatusFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
6
main.go
6
main.go
|
@ -109,17 +109,11 @@ func main() {
|
||||||
|
|
||||||
/********************Code Supprt Emailing************************/
|
/********************Code Supprt Emailing************************/
|
||||||
application.HandleFunc("/support/", applicationHandler.SupportSend)
|
application.HandleFunc("/support/", applicationHandler.SupportSend)
|
||||||
// application.HandleFunc("/group_module/", applicationHandler.GroupModule)
|
|
||||||
// application.HandleFunc("/group_module/create", applicationHandler.GroupModuleCreate)
|
|
||||||
/*********************** CODE GROUP **************************/
|
/*********************** CODE GROUP **************************/
|
||||||
appGroup := application.PathPrefix("/group_module").Subrouter()
|
appGroup := application.PathPrefix("/group_module").Subrouter()
|
||||||
appGroup.HandleFunc("/", applicationHandler.Groups)
|
appGroup.HandleFunc("/", applicationHandler.Groups)
|
||||||
appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule)
|
appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule)
|
||||||
//appGroup.HandleFunc("/createBeneficaire", applicationHandler.CreateGroupBeneficaire)
|
|
||||||
//appGroup.HandleFunc("/groups/{groupid}/createBeneficaire", applicationHandler.BeneficaireSearch)
|
|
||||||
//appGroup.HandleFunc("/groups/{groupid}/{beneficiaryid}", applicationHandler.DisplayGroupBeneficaire)
|
|
||||||
appGroup.HandleFunc("/groups/{groupid}", applicationHandler.DisplayGroupModule)
|
appGroup.HandleFunc("/groups/{groupid}", applicationHandler.DisplayGroupModule)
|
||||||
//appGroup.HandleFunc("/groups/{groupid}/invite-admin", applicationHandler.AdministrationGroupInviteAdmin)
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
|
||||||
//TODO Subrouters with middlewares checking security for each module ?
|
//TODO Subrouters with middlewares checking security for each module ?
|
||||||
|
|
|
@ -2,7 +2,6 @@ package renderer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
@ -72,12 +71,7 @@ func (renderer *Renderer) DisplayGroupModule(w http.ResponseWriter, r *http.Requ
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(beneficiary)
|
|
||||||
|
|
||||||
state.ViewState = viewstate
|
state.ViewState = viewstate
|
||||||
fmt.Println("èèèèèèèèèèèèèèèèèèèèèèèèèè")
|
|
||||||
fmt.Println(state.ViewState)
|
|
||||||
fmt.Println(group)
|
|
||||||
|
|
||||||
renderer.Render("beneficiaries_list", w, r, files, state)
|
renderer.Render("beneficiaries_list", w, r, files, state)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue