/* DESCRIPTION: Sample of a use-case that has fully CRUD functionality. User Id and the other things related to credentials are passed within the dto. */ package invokeauth import ( "net/http" ) func SomeFunc(w http.ResponseWriter, r *http.Request) { // if dto.User_Id > 0 { // query = query.Where("User_Id = ?", dto.User_Id) // } }