Skip to content

Commit b1bd17f

Browse files
committed
cleanup leftovers
1 parent 5ab8c87 commit b1bd17f

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/lbasis_api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
"log"
65
"net/http"
76
"reflect"
87

@@ -107,7 +106,7 @@ func (e mainEnv) listLegalBasisRecords(w http.ResponseWriter, r *http.Request, p
107106
utils.ReturnError(w, r, "internal error", 405, err, nil)
108107
return
109108
}
110-
log.Printf("Total count of rows: %d\n", numRecords)
109+
//log.Printf("Total count of rows: %d\n", numRecords)
111110
w.Header().Set("Content-Type", "application/json; charset=utf-8")
112111
w.WriteHeader(200)
113112
str := fmt.Sprintf(`{"status":"ok","total":%d,"rows":%s}`, numRecords, resultJSON)

src/lbasis_db.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ import (
1010
"go.mongodb.org/mongo-driver/bson"
1111
)
1212

13-
type legalBasis struct {
14-
Brief string `json:"brief" structs:"brief"`
15-
Status string `json:"status" structs:"status"`
16-
Module string `json:"module,omitempty" structs:"module,omitempty"`
17-
Shortdesc string `json:"shortdesc,omitempty" structs:"shortdesc,omitempty"`
18-
Fulldesc string `json:"fulldesc,omitempty" structs:"fulldesc,omitempty"`
19-
Basistype string `json:"basistype,omitempty" structs:"basistype"`
20-
Requiredmsg string `json:"requiredmsg,omitempty" structs:"requiredmsg,omitempty"`
21-
Usercontrol bool `json:"usercontrol" structs:"usercontrol"`
22-
Requiredflag bool `json:"requiredflag" structs:"requiredflag"`
23-
Creationtime int32 `json:"creationtime" structs:"creationtime"`
24-
}
25-
2613
func (dbobj dbcon) createLegalBasis(brief string, newbrief string, module string, shortdesc string,
2714
fulldesc string, basistype string, requiredmsg string, status string,
2815
usercontrol bool, requiredflag bool) (bool, error) {

0 commit comments

Comments
 (0)