fix user struct
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2024-01-04 15:41:14 +11:00
parent ead1340659
commit d6c082675e
2 changed files with 6 additions and 9 deletions

View File

@@ -5,16 +5,11 @@ export CGO_ENABLED=0
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
echo $now
pwd
ls -lah ~
go env
go env GOPATH
#GOCACHE=/tmp/cache
#export GOCACHE
#go env GOCACHE
#pwd
#ls -lah ~
#go env
echo "build commences"
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
echo "build complete"
sha256sum smt > smt_checksum.txt
ls -lah
find .

View File

@@ -15,6 +15,8 @@ type User struct {
RoleId int `db:"RoleId" json:"roleId"`
UserName string `db:"UserName" json:"userName"`
Password string `db:"Password" json:"-"`
LdapUser bool `db:"LdapUser" json:"ldapUser"`
LdapDn string `db:"LdapDN" json:"ldapDn"`
}
type UserRole struct {