mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
cleanup leftovers
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"reflect"
|
||||
|
||||
@@ -107,7 +106,7 @@ func (e mainEnv) listLegalBasisRecords(w http.ResponseWriter, r *http.Request, p
|
||||
utils.ReturnError(w, r, "internal error", 405, err, nil)
|
||||
return
|
||||
}
|
||||
log.Printf("Total count of rows: %d\n", numRecords)
|
||||
//log.Printf("Total count of rows: %d\n", numRecords)
|
||||
w.Header().Set("Content-Type", "application/json; charset=utf-8")
|
||||
w.WriteHeader(200)
|
||||
str := fmt.Sprintf(`{"status":"ok","total":%d,"rows":%s}`, numRecords, resultJSON)
|
||||
|
||||
@@ -10,19 +10,6 @@ import (
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
)
|
||||
|
||||
type legalBasis struct {
|
||||
Brief string `json:"brief" structs:"brief"`
|
||||
Status string `json:"status" structs:"status"`
|
||||
Module string `json:"module,omitempty" structs:"module,omitempty"`
|
||||
Shortdesc string `json:"shortdesc,omitempty" structs:"shortdesc,omitempty"`
|
||||
Fulldesc string `json:"fulldesc,omitempty" structs:"fulldesc,omitempty"`
|
||||
Basistype string `json:"basistype,omitempty" structs:"basistype"`
|
||||
Requiredmsg string `json:"requiredmsg,omitempty" structs:"requiredmsg,omitempty"`
|
||||
Usercontrol bool `json:"usercontrol" structs:"usercontrol"`
|
||||
Requiredflag bool `json:"requiredflag" structs:"requiredflag"`
|
||||
Creationtime int32 `json:"creationtime" structs:"creationtime"`
|
||||
}
|
||||
|
||||
func (dbobj dbcon) createLegalBasis(brief string, newbrief string, module string, shortdesc string,
|
||||
fulldesc string, basistype string, requiredmsg string, status string,
|
||||
usercontrol bool, requiredflag bool) (bool, error) {
|
||||
|
||||
Reference in New Issue
Block a user